sway_core::language

Module parsed

Source
Expand description

Contains all the code related to parsing Sway source code.

Re-exports§

pub use declaration::*;

Modules§

declaration

Structs§

AbiCastExpression
AmbiguousPathExpression
AmbiguousSuffix
ArrayExpression
ArrayIndexExpression
AstNode
A single AstNode represents a node in the parse tree. Note that AstNode is a recursive type and can contain other AstNode, thus populating the tree.
CodeBlock
DelineatedPathExpression
Expression
Represents a parsed, but not yet type checked, Expression.
ForLoopExpression
FunctionApplicationExpression
IfExpression
IncludeStatement
IntrinsicFunctionExpression
LazyOperatorExpression
MatchExpression
MethodApplicationExpression
ParseModule
A module and its submodules in the form of a tree.
ParseProgram
A parsed, but not yet type-checked, Sway program.
ParseSubmodule
A library module that was declared as a mod of another module.
ParseTree
Represents some exportable information that results from compiling some Sway source code.
QualifiedPathType
ReassignmentExpression
RefExpression
StorageAccessExpression
StructExpression
StructExpressionField
SubfieldExpression
TupleIndexExpression
UseStatement
A UseStatement is a statement that imports something from a module into the local namespace.
WhileLoopExpression

Enums§

AstNodeContent
Represents the various structures that constitute a Sway program.
ExpressionKind
ImportType
MethodName
OpVariant
ReassignmentTarget
Scrutinee
A Scrutinee is on the left-hand-side of a pattern, and dictates whether or not a pattern will succeed at pattern matching and what, if any, elements will need to be implemented in a desugared if expression.
StructScrutineeField
TreeType
A Sway program can be either a contract, script, predicate, or a library.

Type Aliases§

ModuleEvaluationOrder