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

Difference between revisions of "JSDT/JSDT-DOM-and-bindings"

Line 2: Line 2:
  
 
This page explains: the ClosureCompiler AST, the DOM AST and the Bindings to the Eclipse IDE
 
This page explains: the ClosureCompiler AST, the DOM AST and the Bindings to the Eclipse IDE
 +
 +
Other JSDT Architectural information is reported in [https://wiki.eclipse.org/JSDT/Architecture JSDT/Architecture].
  
 
== ClosureCompiler AST ==
 
== ClosureCompiler AST ==
  
CC's only documentation is in code. We should look at the CC source and at the work done when moving JSDT to ClosureCompiler
+
CC's only documentation is in code.  
 +
To understand it, we should look at the CC source and at the work done when moving JSDT to ClosureCompiler.
 +
 
 +
* closure source clone URL: https://github.com/google/closure-compiler.git
 +
* switch to closure compiler for JSDT parsing: https://git.eclipse.org/r/#/c/92404/
  
 
== DOM AST ==  
 
== DOM AST ==  
 +
 +
The [http://help.eclipse.org/neon/topic/org.eclipse.wst.jsdt.doc/reference/api/org/eclipse/wst/jsdt/core/dom/AST.html AST] class
 +
The package [http://help.eclipse.org/neon/topic/org.eclipse.wst.jsdt.doc/reference/api/org/eclipse/wst/jsdt/core/dom/package-summary.html org.eclipse.wst.jsdt.core.dom] contains the class
 +
  
 
This is the AST used in JSDT core. It contains all the information needed to create outline, for content assist etc..
 
This is the AST used in JSDT core. It contains all the information needed to create outline, for content assist etc..

Revision as of 13:09, 5 April 2017

JSDT DOM and bindings

This page explains: the ClosureCompiler AST, the DOM AST and the Bindings to the Eclipse IDE

Other JSDT Architectural information is reported in JSDT/Architecture.

ClosureCompiler AST

CC's only documentation is in code. To understand it, we should look at the CC source and at the work done when moving JSDT to ClosureCompiler.

DOM AST

The AST class The package org.eclipse.wst.jsdt.core.dom contains the class


This is the AST used in JSDT core. It contains all the information needed to create outline, for content assist etc..

Bindings

This part is about the bindings needed to show the model in the outline, to provide content assist, indexing etc.

Other Notes

See commit https://git.eclipse.org/r/#/c/57504/ (M.Istria) to see the new outline

Back to the top