Module ast_nodes

Source
Expand description

Crate that implement an abstraction of all the AST nodes like struct, fields, FielsTypes

Each implementation contains information regarding the position in KDiagnostic.

Structs§

AttributeToken
Inner attribute is the simplest attribute that you can find inside the sintax, in fact this kind of struct contains information regarding the attribute itself.
CondAttributeToken
An attribute is a general, free-form metadatum that is interpreted according to name, convention, language, and compiler version. Attributes are modeled on Attributes in ECMA-335, with the syntax coming from ECMA-334 (C#).
FieldToken
struct filed token allow to decode the struct fields defined as described in https://doc.rust-lang.org/stable/reference/items/structs.html
GenericParams
Generic Parameters token allow to decode stream of token defined as described in https://doc.rust-lang.org/stable/reference/items/generics.html
ImplToken
AST Token to store information about an impl block.
LifetimeParam
’a: ’static
MethodDeclToken
AST token to store the information about the a function or method declaration
StructToken
Strung token that allow to decode a struct block.
TraitToken
AST token to store information about a Trait.
TyToken
parsing the type of the filed, where this will be defined with the following grammar https://doc.rust-lang.org/stable/reference/types.html#type-expressions
TypeParam

Enums§

AssociatedItem
Enum that contans all the Associated Items supported by the parser.
AttrToken
Bound
GenericParam
TopLevelNode
TyKind
TyKidn definition for the Rust language.

Traits§

TopLevelAST

Type Aliases§

FnDeclTok
from a parser point of view this should not change much because it is missing just a self param