CompilerWithConfig
A compiler that uses Parsers to produce positioned ASTs. C
is the type of the
compiler configuration.
A compiler that uses Parsers to produce positioned ASTs. C
is the type of the
compiler configuration.
Type members
Inherited classlikes
A representation of a simple named code action that replaces a tree node with other text.
A representation of a simple named code action that replaces a tree node with other text.
- Inherited from
- CompilerBase
Value members
Concrete methods
Inherited methods
Clear any previously reported semantic messages. By default, do nothing.
Clear any previously reported semantic messages. By default, do nothing.
- Inherited from
- CompilerBase
Clear any previously reported semantic messages. By default, clear the servers's source and sourcetree products.
Clear any previously reported semantic messages. By default, clear the servers's source and sourcetree products.
- Inherited from
- CompilerBase
Compile input from a file. The character encoding of the
file is given by the encoding
argument (default: UTF-8).
Compile input from a file. The character encoding of the
file is given by the encoding
argument (default: UTF-8).
- Inherited from
- CompilerBase
Compile the given source by using makeast
to turn its contents into
an abstract syntax tree and then by process
which conducts arbitrary
processing on the AST. If makeast
produces messages, report them.
Compile the given source by using makeast
to turn its contents into
an abstract syntax tree and then by process
which conducts arbitrary
processing on the AST. If makeast
produces messages, report them.
- Inherited from
- CompilerBase
Create and initialise the configuration for a particular run of the compiler.
Default: call createConfig
and then initialise the resulting configuration.
Returns either the created configuration or an error message describing
why the configuration couldn't be created.
Create and initialise the configuration for a particular run of the compiler.
Default: call createConfig
and then initialise the resulting configuration.
Returns either the created configuration or an error message describing
why the configuration couldn't be created.
- Inherited from
- CompilerBase
Create the configuration for a particular run of the compiler. Override this if you have a custom configuration for your compiler.
Create the configuration for a particular run of the compiler. Override this if you have a custom configuration for your compiler.
- Inherited from
- CompilerBase
Command-line driver for this compiler. First, use the argument list to create a configuration for this execution. Then, use the configuration to run the file compilation in the appropriate way.
Command-line driver for this compiler. First, use the argument list to create a configuration for this execution. Then, use the configuration to run the file compilation in the appropriate way.
- Inherited from
- CompilerBase
Format an abstract syntax tree for printing. Default: return an empty document.
Format an abstract syntax tree for printing. Default: return an empty document.
- Inherited from
- CompilerBase
Return applicable code actions for the given position (if any). Each action is in terms of an old tree node and a new node that replaces it. Default is to return no actions.
Return applicable code actions for the given position (if any). Each action is in terms of an old tree node and a new node that replaces it. Default is to return no actions.
- Inherited from
- CompilerBase
Return the corresponding definition node for the given position (if any). Default is to never return anything.
Return the corresponding definition node for the given position (if any). Default is to never return anything.
- Inherited from
- CompilerBase
Return a formatted version of the whole of the given source.
By default, return None
meaning there is no formatter.
Return a formatted version of the whole of the given source.
By default, return None
meaning there is no formatter.
- Inherited from
- CompilerBase
Return markdown hover markup for the given position (if any). Default is to never return anything.
Return markdown hover markup for the given position (if any). Default is to never return anything.
- Inherited from
- CompilerBase
Return the corresponding reference nodes (uses) of the symbol
at the given position (if any). If includeDecl
is true, also
include the declaration of the symbol. Default is to never return
anything.
Return the corresponding reference nodes (uses) of the symbol
at the given position (if any). If includeDecl
is true, also
include the declaration of the symbol. Default is to never return
anything.
- Inherited from
- CompilerBase
Return the symbols frmo a compilation unit. Default is to return no symbols.
Return the symbols frmo a compilation unit. Default is to return no symbols.
- Inherited from
- CompilerBase
The name of the language that this compiler processes. The best choice is the extension used for files containing this language.
The name of the language that this compiler processes. The best choice is the extension used for files containing this language.
- Inherited from
- CompilerBase
- Inherited from
- ServerWithConfig
- Inherited from
- ServerWithConfig
Function to process the input that was parsed. source
is the input
text processed by the compiler. ast
is the abstract syntax tree
produced by the parser from that text. config
provides access to all
aspects of the configuration.
Function to process the input that was parsed. source
is the input
text processed by the compiler. ast
is the abstract syntax tree
produced by the parser from that text. config
provides access to all
aspects of the configuration.
- Inherited from
- CompilerBase
- Inherited from
- ServerWithConfig
- Inherited from
- ServerWithConfig
Output the messages in order of position to the configuration's output.
Output the messages in order of position to the configuration's output.
- Inherited from
- CompilerBase
Run the compiler given a configuration.
Run the compiler given a configuration.
- Inherited from
- CompilerBase
Inherited fields
The messaging facilitiy used by this compiler.
The messaging facilitiy used by this compiler.
- Inherited from
- CompilerBase
The position store used by this compiler.
The position store used by this compiler.
- Inherited from
- CompilerBase
The sources previously used by the semantic analysis phase of this compiler, indexed by source name.
The sources previously used by the semantic analysis phase of this compiler, indexed by source name.
- Inherited from
- CompilerBase