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.
Create the configuration for a particular run of the compiler.
Create the configuration for a particular run of the compiler. Override this if you have a custom configuration for your compiler.
Format an abstract syntax tree for printing.
Format an abstract syntax tree for printing. Default: return an empty document.
The name of the language that this compiler processes.
The name of the language that this compiler processes. The best choice is the extension used for files containing this language.
Parse a source, returning a parse result.
Function to process the input that was parsed.
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.
Clear any previously reported semantic messages.
Clear any previously reported semantic messages. By default, do nothing.
Clear any previously reported semantic messages.
Clear any previously reported semantic messages. By default, clear the servers's source and sourcetree products.
Compile input from a file.
Compile input from a file. The character encoding of the
file is given by the encoding
argument (default: UTF-8).
Compile the files one by one.
Compile the files one by one.
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.
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 input from a string.
Compile input from a string.
Create and initialise the configuration for a particular run of the compiler.
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.
Command-line driver for this compiler.
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.
Return applicable code actions for the given position (if any).
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 the corresponding definition node for the given position (if any).
Return the corresponding definition node for the given position (if any). Default is to never return anything.
Return a formatted version of the whole of the given source.
Return a formatted version of the whole of the given source.
By default, return None
meaning there is no formatter.
Return markdown hover markup for the given position (if any).
Return markdown hover markup for the given position (if any). Default is to never return anything.
Return the corresponding reference nodes (uses) of the symbol at the given position (if any).
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 symbols frmo a compilation unit.
Return the symbols frmo a compilation unit. Default is to return no symbols.
The entry point for this compiler.
The entry point for this compiler.
Make an AST by running the parser on the given source, returning messages instead if the parse fails.
Make an AST by running the parser on the given source, returning messages instead if the parse fails.
The messaging facilitiy used by this compiler.
The messaging facilitiy used by this compiler.
The position store used by this compiler.
The position store used by this compiler.
Profiler for this compiler.
Profiler for this compiler.
Output the messages in order of position to the configuration's output.
Output the messages in order of position to the configuration's output.
Run the compiler given a configuration.
Run the compiler given a configuration.
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.
A compiler that uses Parsers to produce positioned ASTs.
C
is the type of the compiler configuration.