class
SyntaxTreeStatic methods
- def fromBuffer(…)
- def fromBuffers(…)
- def fromFile(path: str) -> SyntaxTree
- def fromFile(path: str, sourceManager: SourceManager, options: Bag = ...) -> SyntaxTree
- def fromFileInMemory(text: str, sourceManager: SourceManager, name: str = 'source', path: str = '', options: Bag = ...) -> SyntaxTree
- def fromFiles(paths: span[str]) -> SyntaxTree
- def fromFiles(paths: span[str], sourceManager: SourceManager, options: Bag = ...) -> SyntaxTree
- def fromLibraryMapBuffer(buffer: SourceBuffer, sourceManager: SourceManager, options: Bag = ...) -> SyntaxTree
- def fromLibraryMapFile(path: str, sourceManager: SourceManager, options: Bag = ...) -> SyntaxTree
- def fromLibraryMapText(text: str, sourceManager: SourceManager, name: str = 'source', path: str = '', options: Bag = ...) -> SyntaxTree
- def fromText(text: str, name: str = 'source', path: str = '') -> SyntaxTree
- def fromText(text: str, sourceManager: SourceManager, name: str = 'source', path: str = '', options: Bag = ..., library: SourceLibrary = None) -> SyntaxTree
- def getDefaultSourceManager() -> SourceManager
Properties
- diagnostics: Diagnostics get
- isLibraryUnit: bool get
- options: Bag get
- root: SyntaxNode get
- sourceLibrary: SourceLibrary get
- sourceManager: SourceManager get