kbase / kb_sdk

Build and test new apps for the KBase platform
http://kbase.github.io/kb_sdk_docs
MIT License
27 stars 32 forks source link

Implement Visitor for parsed KIDL structure #157

Closed MrCreosote closed 8 years ago

MrCreosote commented 8 years ago

Implements the Visitor design pattern for the parsed KIDL class tree, and refactors the implementation of toJSON() for the tree into a JSONableVisitor class.

Requires minor changes to the workspace typeDB code shown here: https://github.com/mrcreosote/workspace_deluxe/compare/d46bd9016b70e131a4c541bef3291f3ed19305ed...6909f836d83c9db949f33d8ebf54b324db9581f2

Note that there's currently no need to update the kidl jar for workspace. The above just shows that it's easy.

MrCreosote commented 8 years ago

ignore the whitespace changes with https://github.com/kbase/kb_sdk/pull/157/files?w=1