-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TEIIDDES-2411: Fixes another issue with comments
* The teiid parser can get used more than once if a model contains more than one transformation. Consequently, comments cannot remain cached on the parser. * The teiid parser must remain stateless in the same manner as a factory or visitor * Since the parser can produce multiple different language object trees from different sql, it is absurd to reference the parser in the language objects. Therefore, decouple the parser from the language objects. * Analysis indicated that the 3 items required from the parser are the teiid version, data manager service and the ability to create new AST nodes. The latter 2 can be alternatively accessed while the teiid version can replace the parser as the single item being referenceable from the language objects. * Lots of classes modified to remove reference call to the teiid parser and replace them with code for the thing they do actually require. * Address the difficulty with comments by: * Parser maintains a comment cache which it fills with any comments * On creation of a new Language Object by the parser, assign it to the parser's current node field. * On assigning of the current node, also assign to the language object the comment cache. Thus, each node in the parsed tree shares the same comment collection. * On reset of the parser, the latter sets its reference to the comment cache to null, severing the connection to it. * Any language object in the hierarchy will return the same collection of comments.
- Loading branch information
Paul Richardson
committed
Oct 21, 2016
1 parent
6350835
commit d239c80
Showing
323 changed files
with
2,736 additions
and
2,675 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.