sway_ast/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
pub mod assignable;
pub mod attribute;
pub mod brackets;
pub mod expr;
pub mod generics;
pub mod intrinsics;
mod item;
pub mod keywords;
pub mod literal;
pub mod module;
pub mod path;
pub mod pattern;
mod priv_prelude;
pub mod punctuated;
pub mod statement;
pub mod submodule;
pub mod token;
pub mod ty;
pub mod where_clause;

pub use crate::{
    assignable::Assignable,
    attribute::AttributeDecl,
    brackets::{AngleBrackets, Braces, Parens},
    expr::{
        asm::{AsmBlock, AsmRegisterDeclaration},
        op_code::Instruction,
        AbiCastArgs, CodeBlockContents, Expr, ExprArrayDescriptor, ExprStructField,
        ExprTupleDescriptor, IfCondition, IfExpr, MatchBranch, MatchBranchKind,
    },
    generics::{GenericArgs, GenericParams},
    intrinsics::*,
    item::{
        item_abi::ItemAbi,
        item_configurable::{ConfigurableField, ItemConfigurable},
        item_const::ItemConst,
        item_enum::ItemEnum,
        item_fn::ItemFn,
        item_impl::{ItemImpl, ItemImplItem},
        item_storage::{ItemStorage, StorageEntry, StorageField},
        item_struct::ItemStruct,
        item_trait::{ItemTrait, ItemTraitItem, Traits},
        item_type_alias::ItemTypeAlias,
        item_use::{ItemUse, UseTree},
        FnArg, FnArgs, FnSignature, Item, ItemKind, TraitType, TypeField,
    },
    keywords::{CommaToken, DoubleColonToken, PubToken},
    literal::{LitInt, LitIntType, Literal},
    module::{Module, ModuleKind},
    path::{PathExpr, PathExprSegment, PathType, PathTypeSegment, QualifiedPathRoot},
    pattern::{Pattern, PatternStructField},
    punctuated::Punctuated,
    statement::{Statement, StatementLet},
    submodule::Submodule,
    ty::Ty,
    where_clause::{WhereBound, WhereClause},
};