Documentation
¶
Overview ¶
Package analysis wires PawnKit preprocessing, parsing, and semantics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
URI source.URI
Includes preprocess.IncludeResolver
Names sema.Resolver
Predefined map[string]string
Revision string
RetainExpanded bool
}
Options configures one file analysis.
type Result ¶
type Result struct {
File source.FileID
Registry *source.Registry
Preprocess *preprocess.Result
Parse *parser.CompactFile
ExpandedParse *parser.CompactFile
Symbols *symbol.Table
ExpandedSymbols *symbol.Table
Semantics sema.Result
ControlFlow []sema.FunctionFlow
Diagnostics []diagnostic.Diagnostic
}
Result is one immutable file analysis.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cfg builds lightweight control-flow graphs for Pawn functions.
|
Package cfg builds lightweight control-flow graphs for Pawn functions. |
|
Package preprocess implements the Pawn preprocessor: directive parsing, object-like and function-like macro expansion, conditional-compilation branch tracking, and source maps from expanded tokens back to the original source.
|
Package preprocess implements the Pawn preprocessor: directive parsing, object-like and function-like macro expansion, conditional-compilation branch tracking, and source maps from expanded tokens back to the original source. |
|
Package query provides cached analysis over immutable document snapshots.
|
Package query provides cached analysis over immutable document snapshots. |
|
Package sema provides semantic checks over shared symbol tables.
|
Package sema provides semantic checks over shared symbol tables. |
|
Package symbol builds per-file Pawn symbol tables.
|
Package symbol builds per-file Pawn symbol tables. |
Click to show internal directories.
Click to hide internal directories.