Class CompilationUnit
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/compilationUnit.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
CompilationUnit(sourceblocks, metadata, editorContext)
Creates a new CompilationUint instance.
|
Class Detail
CompilationUnit(sourceblocks, metadata, editorContext)
Creates a new CompilationUint instance. These instances should not be cached as they do
not respond to model change events.
- Parameters:
-
{Array.
} sourceblocks - The blocks of source to combine into one unit
- {Object} metadata
- The metadata describing the file this unit represents
- {Object} editorContext
- The original editor context that can be delegated to for setting the text
- Since:
- 8.0
- Returns:
- {CompilationUnit} The new CompiationUnit instance