Changes between Version 25 and Version 26 of AST
- Timestamp:
- 04/21/11 23:01:15 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AST
v25 v26 65 65 == AST Nodes == 66 66 67 Shared things: types, functions, variables...anything with an identifier.68 69 Maybe IdentifierNodeIF has a kind (function, variable, typeName, unknown, ...) and then also a method to return the shared thing, but this is not considered a child. (Otherwise, you would not have a tree, but a directed graph.)70 67 71 68 ASTNodeIF extends SourceableIF … … 76 73 77 74 The following extend ASTNodeIF: 75 * ReferenceNodeIF 76 * has no children 77 * used to refer to another node u when u might be referenced from several places (shared) 78 * methods 79 * referent: ASTNodeIF 80 * identifier: string 81 * FunctionReferenceNodeIF extends ReferenceNodeIF 82 * methods 83 * referent: FunctionDeclarationNodeIF extends ReferenceNodeIF 84 * VariableReferenceNodeIF 85 * methods 86 * referent: VariableDeclarationNodeIF extends ReferenceNodeIF 87 * TypeReferenceNodeIF 88 * methods 89 * referent: TypeNodeIF 78 90 * IdentifierNodeIF: wraps a string. represents an identifier occurrence in code. Has 0 children, i.e., is a leaf node. 79 91 * methods
