Changes between Version 25 and Version 26 of AST


Ignore:
Timestamp:
04/21/11 23:01:15 (15 years ago)
Author:
Stephen Siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AST

    v25 v26  
    6565== AST Nodes ==
    6666
    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.)
    7067
    7168ASTNodeIF extends SourceableIF
     
    7673
    7774The 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
    7890 * IdentifierNodeIF: wraps a string. represents an identifier occurrence in code.   Has 0 children, i.e., is a leaf node.
    7991    * methods