Class javascript.ASTManager
Provides a shared AST.
Defined in: </jobs/genie.orion/orion-client-dev/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
javascript.ASTManager(esprima)
Provides a shared AST.
|
Method Attributes | Method Name and Description |
---|---|
getAST(editorContext)
|
|
onInputChanged(event)
Callback from the orion.edit.model service
|
|
onModelChanging(event)
Callback from the orion.edit.model service
|
Class Detail
javascript.ASTManager(esprima)
Provides a shared AST.
- Parameters:
- {Object} esprima
- The esprima parser that this ASTManager will use.
Method Detail
{orion.Promise}
getAST(editorContext)
- Parameters:
- {orion.editor.EditorContext} editorContext
- Returns:
- {orion.Promise} A promise resolving to the AST.
onInputChanged(event)
Callback from the orion.edit.model service
- Parameters:
- {Object} event
- An orion.edit.model event.
- See:
- https://wiki.eclipse.org/Orion/Documentation/Developer_Guide/Plugging_into_the_editor#orion.edit.model
onModelChanging(event)
Callback from the orion.edit.model service
- Parameters:
- {Object} event
- An orion.edit.model event.
- See:
- https://wiki.eclipse.org/Orion/Documentation/Developer_Guide/Plugging_into_the_editor#orion.edit.model