Class Index | File Index

Classes


Class javascript.ASTManager

Provides a shared AST.
Defined in: </jobs/genie.orion/orion-client-dev/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/astManager.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
javascript.ASTManager(esprima, serviceRegistry)
Provides a shared AST.
Method Summary
Method Attributes Method Name and Description
 
getAST(editorContext)
 
Callback from the FileClient
 
Callback from the orion.edit.model service
 
Callback from the orion.edit.model service
Class Detail
javascript.ASTManager(esprima, serviceRegistry)
Provides a shared AST.
Parameters:
{Object} esprima
The esprima parser that this ASTManager will use.
{Object} serviceRegistry
The platform service registry
Method Detail
{orion.Promise} getAST(editorContext)
Parameters:
{orion.editor.EditorContext} editorContext
Returns:
{orion.Promise} A promise resolving to the AST.

onFileChanged(event)
Callback from the FileClient
Parameters:
{Object} event
a Changed event

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

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jun 22 2016 00:53:47 GMT-0400 (EDT)