Crate move_syn

Source
Expand description

Move syntax parsing using unsynn.

Re-exports§

pub use unsynn;
pub use unsynn;

Modules§

kw
Move keywords.

Structs§

Attribute
An attribute like #[test_only], #[allow(...)], doc comment (/// ...), etc.
BracedStruct
Braced structs have their abilities declared before their fields.
Const
Enum
EnumVariant
Function
Generic
A generic type declaration.
Generics
The generics of a datatype or function.
Import
Item
A Move language item.
LabeledModule
A single module defined with a top-level label.
MacroFun
Module
A Move module declaration.
NamedField
Named datatype field.
NamedFields
Brace group containing comma-delimited named fields.
NativeFun
PositionalFields
Parenthesis group containing comma-delimited unnamed fields.
Struct
A Move struct.
TupleStruct
Tuple structs have their abilities declared after their fields, with a trailing semicolon if so.
Type
Non-reference type, used in datatype fields.
TypeArgs
Angle bracket group (<...>) containing comma-delimited types.
UnnamedField
Unnamed datatype field.
UseFun

Enums§

Ability
Ability keywords.
FieldsKind
Kinds of fields for a Move enum.
File
ItemKind
All Move item types.
StructKind
The kinds of structs; either a braced or tuple one.
TypePath
Path to a type.

Functions§

sanitize_for_tokenizer
Process raw Move code so that it can be used as input to Rust’s tokenizer.