Skip to content

Module

graph BT
N1["Module"] -->|inherits| N2["AST"];
N2["AST"] -->|inherits| N3["Stringable"];
N3["Stringable"] -->|inherits| N4["Any"];

Characteristics

Quality Value
Inherits AST
Extends N/A
Decorators N/A
Is enum false
Is sealed false
Is extern false
Is abstract false
Is generator false
Has value semantics false
Has stored properties true
Should register destructor true
Has atomic memory false
Is copy assignable false
Is zero initializable false

Functions

parse

parse (source String) -> strictly Module?, CompileError?

Methods

construct

construct (s strictly @Self, ast_ptr: Pointer = Pointer(), owner: Bool = true) -> Self

get_errors

get_errors (s nom @Self) -> List[CompileError]

num_errors

num_errors (s nom @Self) -> Int64

num_warnings

num_warnings (s nom @Self) -> Int64

get_warnings

get_warnings (s nom @Self) -> List[CompileError]

get_functions

#strict
get_functions (s nom @Self, include_composed: Bool = false) -> List[nom Function]

get_type_definitions

#strict
get_type_definitions (s nom @Self, include_composed: Bool = false) -> List[nom TypeDefinition]

Properties

file_path (computed)

file_path String

name (computed)

name String

terminates_on_exception (computed)

terminates_on_exception Bool

block (computed)

block nom BlockExpression

doc_string (computed)

doc_string String

decorators (computed)

decorators nom DecoratorList?

status (computed)

status UInt32

sets and returns the ast status code defined by the compiler


__ast_ptr

__ast_ptr Pointer

__is_owner

__is_owner Bool