Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Providing new DOM AST Nodes

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

Back to the top