Skip to main content

Module facts

Module facts 

Source
Expand description

Language-neutral facts a structural pass extracts from a token stream.

These are the shapes repository intelligence actually consumes. Anything a consumer cannot use - operator precedence, expression trees, type inference - is deliberately absent, which is what keeps extraction linear in the token count.

Structs§

Contract
A named contract element and its exact source location.
Declaration
A named declaration and where it was written.
Facts
Everything one structural pass found in one file.
Import
A module this file pulls in.
ImportBinding
A module this file pulls in.
ParseDiagnostic
A fail-closed diagnostic emitted instead of guessed structural facts.
Reference
One name mentioning another.
Span
Position of a fact in its source file.

Enums§

ContractKind
A typed API-contract fact.
DeclarationKind
What a declared name is.
GraphqlOperation
The GraphQL root operation a field exposes or an executable document calls.
GraphqlType
The schema role of a GraphQL named type.
ReferenceKind
Why one name mentions another.