Class javascript.ASTManager
Provides a shared AST.
Defined in: </jobs/genie.eclipse.orion/orion-client/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/astManager.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
javascript.ASTManager(esprima)
Provides a shared AST.
|
Method Attributes | Method Name and Description |
---|---|
getAST(editorContext)
|
|
updated(event)
Notifies the AST manager of a change to the model.
|
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:
- {Object} editorContext
- Returns:
- {orion.Promise} A promise resolving to the AST.
updated(event)
Notifies the AST manager of a change to the model.
- Parameters:
- {Object} event