ParserContext
loreline.ParserContext (Class)
Instance Members
rootPath: StringThe path of the root script being parsed
path: StringThe path of the current script being parsed
imports: MapAvailable tokens mapped by import path.
All import paths should be either absolute or relative to rootPath
imported: MapMapping of paths that already have been imported (to prevent circular imports)
| Name | Type | Default | Description |
|---|---|---|---|
rootPath |
String | * The path of the root script being parsed | |
path |
String | * The path of the current script being parsed | |
imports |
Map | * Available tokens mapped by import path. All import paths should be either absolute or relative to rootPath |
|
imported |
Null<Map> | (optional) | * Mapping of paths that already have been imported (to prevent circular imports) |
Metadata
| Name | Parameters |
|---|---|
:structInit |
- |