Jump to: navigation, search

Providing new DOM AST Nodes

Revision as of 06:13, 26 January 2009 by Spektom.gmail.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Here is a checklist for adding a new DOM AST node:

  • Add new AST node class to the org.eclipse.php.internal.core.ast.nodes package.
  • Add new AST node type to the org.eclipse.php.internal.core.ast.nodes.ASTNode class.
  • Modify org.eclipse.php.internal.core.ast.nodes.ASTNode.nodeClassForType(int) method.
  • Fix the following AST visitor classes and interfaces:
  • org.eclipse.php.internal.core.ast.visitor.Visitor
  • org.eclipse.php.internal.core.ast.rewrite.ASTRewriteAnalyzer
  • org.eclipse.php.internal.core.ast.rewrite.ASTRewriteFlattener
  • org.eclipse.php.internal.core.ast.visitor.AbstractVisitor
  • org.eclipse.php.internal.core.ast.visitor.ApplyAll
  • Add new match method to the org.eclipse.php.internal.core.ast.match.PHPASTMatcher class.
  • Add Unit tests to the following pacakges:
  • org.eclipse.php.test.headless.core.ast
  • org.eclipse.php.test.headless.core.ast.rewrite