Structs

struct NodeExceptionHandler

Aliases

alias __del__is_trivial

alias __moveinit__is_trivial

Fields

var node_name: String

var function_name: String

var verbose: Bool

Functions

fn __init__(out self, node_name: String, function_name: String)

fn __enter__(mut self) -> ref [__origin_of(*[0,0])] Self

fn __exit__(mut self)

fn __exit__(mut self, e: Error) -> Bool

struct NodeToStringContext

Aliases

alias __del__is_trivial

alias __moveinit__is_trivial

alias __copyinit__is_trivial

Fields

var node_name: String

var verbose: Bool

Functions

fn __init__(out self, node_name: String)

fn __enter__(mut self) -> ref [__origin_of(*[0,0])] Self

fn write_context(self, var in_string: String, out new_string: String)

struct AstNode

Aliases

alias name

alias type

alias __del__is_trivial

alias __moveinit__is_trivial

alias __copyinit__is_trivial

Functions

fn __init__(out self, var node: Variant[AnonymousDeclarationNode, TranslationUnitDeclNode, VariadicArgsNode, PointerTypeNode, SignNode, ClangSimdNode, ReturnDeclNode, TypedefDeclNode, FunctionProtoTypeNode, BuiltinTypeNode, QualTypeNode, RecordTypeNode, ConstantArrayTypeNode, RecordDeclNode, ElaboratedTypeNode, FunctionDeclNode, TypedefTypeNode, ModeAttrNode, VarDeclNode, EnumDeclNode, ParmVarDeclNode, EnumConstantDeclNode, ConstantExprNode, ParagraphCommentNode, FullCommentNode, TextCommentNode, BinaryOperatorNode, IntegerLiteralNode, EnumTypeNode, FieldDeclNode, IndirectFieldDeclNode, ParamCommandCommentNode, VisibilityAttrNode, FormatAttrNode, NoThrowAttrNode, PureAttrNode, ErrorAttrNode, NonNullAttrNode, BuiltinAttrNode, CompoundStmtNode, WarnUnusedResultAttrNode, RestrictAttrNode, AllocAlignAttrNode, DeprecatedAttrNode, ConstAttrNode, AsmLabelAttrNode, SectionAttrNode, ColdAttrNode, AlwaysInlineAttrNode, ParenTypeNode, AllocSizeAttrNode, AlignedAttrNode, BlockCommandCommentNode, VerbatimBlockLineCommentNode, VerbatimBlockCommentNode, VerbatimLineCommentNode, PackedAttrNode, InlineCommandCommentNode, StaticAssertDeclNode, ReturnsTwiceAttrNode, UnusedAttrNode, WeakAttrNode, AtomicTypeNode, SugaredTypeNode, PlaceHolderNode, ExampleNode])

fn __copyinit__(out self, other: Self)

fn __getitem__[T: AnyType](ref self) -> ref [MutableAnyOrigin] T

fn isa[T: AnyType](self) -> Bool

fn is_in[*V: Copyable & Movable](self) -> Bool

fn name(self) -> String

fn accept_create_from(json_object: Object, level: Int) -> Self

fn impute(mut json_object: Object)

Used for update the json ast with missing nodes or fleshing out the ast.

fn to_string(self, just_code: Bool) -> String

fn set_symbol_name(self, symbol_name: String)

fn get_symbol_name(self) -> String

fn get_subset_name(self) -> StringSlice[StaticConstantOrigin]

fn set_disabled(self, disabled: Bool = True)

fn get_disabled(self) -> Bool

fn children[mut: Bool, //, origin: Origin[mut]](ref [origin] self) -> ref [MutableAnyOrigin] List[AstNode]