api
ASTBuilder.ch
Declarations in ASTBuilder.ch
143 declarationscompiler
Declarations
Public only
FuncDeclAttributesCBI#
Publicstruct
struct FuncDeclAttributesCBI {
var specifier : AccessSpecifier
var is_comptime : bool
var is_compiler_decl : bool
var inline_strategy : int
var is_extern : bool
var is_cpp_mangle : bool
var deprecated : bool
var is_implicit : bool
var is_noReturn : bool
var is_constructor_fn : bool
var is_copy_fn : bool
var is_delete_fn : bool
var is_unsafe : bool
var is_override : bool
var has_usage : bool
var no_mangle : bool
var is_generated : bool
var std_call : bool
var dll_import : bool
var dll_export : bool
}
InterfaceDefinitionAttrsCBI#
Publicstruct
struct InterfaceDefinitionAttrsCBI {
var specifier : AccessSpecifier
var has_implementation : bool
var deprecated : bool
var is_static : bool
var is_no_mangle : bool
var is_extern : bool
}
TypealiasDeclAttributesCBI#
Publicstruct
struct TypealiasDeclAttributesCBI {
var specifier : AccessSpecifier
var is_comptime : bool
var deprecated : bool
var is_no_mangle : bool
var is_inlined : bool
}
IntNTypeKind#
Publicenum
enum IntNTypeKind {
Char,
Short,
Int,
Long,
LongLong,
Int128,
I8,
I16,
I32,
I64,
UChar,
UShort,
UInt,
ULong,
ULongLong,
UInt128,
U8,
U16,
U32,
U64
}
The Base Structs
DynamicType#
Publicstruct
struct DynamicType : BaseType
getChildType#
Publicfunction
make#
functionConstructor
func make() : DynamicType
FunctionType#
Publicstruct
struct FunctionType : BaseType
get_params#
Publicfunction
getReturnType#
Publicfunction
make#
functionConstructor
func make() : FunctionType
GenericType#
Publicstruct
struct GenericType : BaseType
getLinkedType#
Publicfunction
getArgumentCount#
Publicfunction
func getArgumentCount(self : &GenericType) : size_t
getArgumentType#
Publicfunction
getArgumentLocation#
Publicfunction
func getArgumentLocation(self : &GenericType, index : size_t) : u64
make#
functionConstructor
func make() : GenericType
LinkedType#
Publicstruct
struct LinkedType : BaseType
getLinkedNode#
Publicfunction
make#
functionConstructor
func make() : LinkedType
LinkedValueType#
Publicstruct
struct LinkedValueType : BaseType
make#
functionConstructor
func make() : LinkedValueType
LiteralType#
Publicstruct
struct LiteralType : BaseType
getChildType#
Publicfunction
make#
functionConstructor
func make() : LiteralType
LongLongType#
Publicstruct
struct LongLongType : IntNType
make#
functionConstructor
func make() : LongLongType
PointerType#
Publicstruct
struct PointerType : BaseType
getChildType#
Publicfunction
make#
functionConstructor
func make() : PointerType
ReferenceType#
Publicstruct
struct ReferenceType : BaseType
getChildType#
Publicfunction
make#
functionConstructor
func make() : ReferenceType
UBigIntType#
Publicstruct
struct UBigIntType : IntNType
make#
functionConstructor
func make() : UBigIntType
UInt128Type#
Publicstruct
struct UInt128Type : IntNType
make#
functionConstructor
func make() : UInt128Type
ULongLongType#
Publicstruct
struct ULongLongType : IntNType
make#
functionConstructor
func make() : ULongLongType
ValueWrapperNode#
Publicstruct
struct ValueWrapperNode : ASTNode
make#
functionConstructor
func make() : ValueWrapperNode
AccessChainNode#
Publicstruct
struct AccessChainNode : ASTNode
make#
functionConstructor
func make() : AccessChainNode
FunctionCallNode#
Publicstruct
struct FunctionCallNode : ASTNode
get_args#
Publicfunction
add_generic_arg#
Publicfunction
make#
functionConstructor
func make() : FunctionCallNode
ReferenceOfValue#
Publicstruct
struct ReferenceOfValue : Value
make#
functionConstructor
func make() : ReferenceOfValue
ArrayValue#
Publicstruct
struct ArrayValue : Value
get_values#
Publicfunction
make#
functionConstructor
func make() : ArrayValue
DereferenceValue#
Publicstruct
struct DereferenceValue : Value
make#
functionConstructor
func make() : DereferenceValue
ExpressiveString#
Publicstruct
struct ExpressiveString : Value
getValues#
Publicfunction
make#
functionConstructor
func make() : ExpressiveString
FunctionCall#
Publicstruct
struct FunctionCall : Value
get_args#
Publicfunction
add_generic_arg#
Publicfunction
make#
functionConstructor
func make() : FunctionCall
PatternMatchIdentifier#
Publicstruct
struct PatternMatchIdentifier : ASTNode
make#
functionConstructor
func make() : PatternMatchIdentifier
PatternMatchExpr#
Publicstruct
struct PatternMatchExpr : Value
set_expression#
Publicfunction
set_else_unreachable#
Publicfunction
func set_else_unreachable(self : &PatternMatchExpr) : void
add_param_name#
Publicfunction
func add_param_name(self : &PatternMatchExpr, builder : *ASTBuilder, name : &string_view, location : u64) : *PatternMatchIdentifier
make#
functionConstructor
func make() : PatternMatchExpr
PatternMatchExprNode#
Publicstruct
struct PatternMatchExprNode : ASTNode
make#
functionConstructor
func make() : PatternMatchExprNode
IndexOperator#
Publicstruct
struct IndexOperator : Value
get_idx_ptr#
Publicfunction
make#
functionConstructor
func make() : IndexOperator
get_idx#
PublicfunctionExtension
LambdaFunction#
Publicstruct
struct LambdaFunction : Value
get_params#
Publicfunction
get_capture_list#
Publicfunction
get_body#
Publicfunction
make#
functionConstructor
func make() : LambdaFunction
NegativeValue#
Publicstruct
struct NegativeValue : Value
make#
functionConstructor
func make() : NegativeValue
OffsetOfValue#
Publicstruct
struct OffsetOfValue : Value
make#
functionConstructor
func make() : OffsetOfValue
StringValue#
Publicstruct
struct StringValue : Value
getValue#
Publicfunction
make#
functionConstructor
func make() : StringValue
StructValue#
Publicstruct
struct StructValue : Value
add_value#
Publicfunction
make#
functionConstructor
func make() : StructValue
BlockValue#
Publicstruct
struct BlockValue : Value
get_body#
Publicfunction
setCalculatedValue#
Publicfunction
make#
functionConstructor
func make() : BlockValue
UBigIntValue#
Publicstruct
struct UBigIntValue : Value
make#
functionConstructor
func make() : UBigIntValue
UInt128Value#
Publicstruct
struct UInt128Value : Value
make#
functionConstructor
func make() : UInt128Value
ModuleScope#
Publicstruct
struct ModuleScope : ASTNode
getScopeName#
Publicfunction
getModuleName#
Publicfunction
make#
functionConstructor
func make() : ModuleScope
VariableIdentifier#
Publicstruct
struct VariableIdentifier : Value
make#
functionConstructor
func make() : VariableIdentifier
EmbeddedValue#
Publicstruct
struct EmbeddedValue : Value
getDataPtr#
Publicfunction
func getDataPtr(self : &EmbeddedValue) : *void
make#
functionConstructor
func make() : EmbeddedValue
BaseDefMember#
Publicstruct
struct BaseDefMember : ASTNode
The ASTNodes
StructMemberInitializer#
Publicstruct
struct StructMemberInitializer : ASTNode
make#
functionConstructor
func make() : StructMemberInitializer
CapturedVariable#
Publicstruct
struct CapturedVariable : ASTNode
make#
functionConstructor
func make() : CapturedVariable
VariantCase#
Publicstruct
struct VariantCase : ASTNode
add_variable#
Publicfunction
make#
functionConstructor
func make() : VariantCase
VariantCaseVariable#
Publicstruct
struct VariantCaseVariable : ASTNode
make#
functionConstructor
func make() : VariantCaseVariable
AssignStatement#
Publicstruct
struct AssignStatement : ASTNode
make#
functionConstructor
func make() : AssignStatement
BreakStatement#
Publicstruct
struct BreakStatement : ASTNode
make#
functionConstructor
func make() : BreakStatement
ContinueStatement#
Publicstruct
struct ContinueStatement : ASTNode
make#
functionConstructor
func make() : ContinueStatement
DestructStmt#
Publicstruct
struct DestructStmt : ASTNode
make#
functionConstructor
func make() : DestructStmt
ReturnStatement#
Publicstruct
struct ReturnStatement : ASTNode
make#
functionConstructor
func make() : ReturnStatement
TypealiasStatement#
Publicstruct
struct TypealiasStatement : ASTNode
getActualType#
Publicfunction
getName#
Publicfunction
getAttributes#
Publicfunction
make#
functionConstructor
func make() : TypealiasStatement
VarInitStatement#
Publicstruct
struct VarInitStatement : ASTNode
make#
functionConstructor
func make() : VarInitStatement
LoopASTNode#
Publicstruct
struct LoopASTNode : ASTNode
make#
functionConstructor
func make() : LoopASTNode
DoWhileLoop#
Publicstruct
struct DoWhileLoop : LoopASTNode
get_body#
Publicfunction
make#
functionConstructor
func make() : DoWhileLoop
EnumDeclaration#
Publicstruct
struct EnumDeclaration : ASTNode
getName#
Publicfunction
add_member#
Publicfunction
getMembers#
Publicfunction
make#
functionConstructor
func make() : EnumDeclaration
EnumMember#
Publicstruct
struct EnumMember : ASTNode
getName#
Publicfunction
make#
functionConstructor
func make() : EnumMember
ForLoop#
Publicstruct
struct ForLoop : LoopASTNode
SwitchStatement#
Publicstruct
struct SwitchStatement
make#
functionConstructor
func make() : SwitchStatement
FunctionDeclaration#
Publicstruct
struct FunctionDeclaration : ASTNode
getName#
Publicfunction
get_params#
Publicfunction
add_body#
Publicfunction
getReturnType#
Publicfunction
getAttributes#
Publicfunction
setAttributes#
Publicfunction
setAccessSpecifier#
Publicfunction
isExtensionFn#
Publicfunction
func isExtensionFn(self : &FunctionDeclaration) : bool
make#
functionConstructor
func make() : FunctionDeclaration
FunctionParam#
Publicstruct
struct FunctionParam : ASTNode
BaseGenericDecl#
Publicstruct
struct BaseGenericDecl : ASTNode
getGenericParams#
Publicfunction
make#
functionConstructor
func make() : BaseGenericDecl
GenericStructDecl#
Publicstruct
struct GenericStructDecl : BaseGenericDecl
getMasterImpl#
Publicfunction
make#
functionConstructor
func make() : GenericStructDecl
GenericFuncDecl#
Publicstruct
struct GenericFuncDecl : BaseGenericDecl
getMasterImpl#
Publicfunction
make#
functionConstructor
func make() : GenericFuncDecl
GenericVariantDecl#
Publicstruct
struct GenericVariantDecl : BaseGenericDecl
getMasterImpl#
Publicfunction
make#
functionConstructor
func make() : GenericVariantDecl
GenericUnionDecl#
Publicstruct
struct GenericUnionDecl : BaseGenericDecl
getMasterImpl#
Publicfunction
make#
functionConstructor
func make() : GenericUnionDecl
GenericInterfaceDecl#
Publicstruct
struct GenericInterfaceDecl : BaseGenericDecl
getMasterImpl#
Publicfunction
make#
functionConstructor
func make() : GenericInterfaceDecl
GenericTypeParameter#
Publicstruct
struct GenericTypeParameter : ASTNode
getName#
Publicfunction
getDefaultType#
Publicfunction
make#
functionConstructor
func make() : GenericTypeParameter
IfStatement#
Publicstruct
struct IfStatement : ASTNode
get_body#
Publicfunction
add_else_body#
Publicfunction
add_else_if#
Publicfunction
make#
functionConstructor
func make() : IfStatement
ImplDefinition#
Publicstruct
struct ImplDefinition : ASTNode
add_function#
Publicfunction
func add_function(self : &ImplDefinition, builder : *ASTBuilder, decl : *FunctionDeclaration) : void
make#
functionConstructor
func make() : ImplDefinition
InterfaceDefinition#
Publicstruct
struct InterfaceDefinition : VariablesContainer
getName#
Publicfunction
add_function#
Publicfunction
func add_function(self : &InterfaceDefinition, builder : *ASTBuilder, decl : *FunctionDeclaration) : void
getFunctions#
Publicfunction
getAttributes#
Publicfunction
VariablesContainer#
Publicstruct
struct VariablesContainer : ASTNode
getInheritedCount#
Publicfunction
func getInheritedCount(self : &VariablesContainer) : size_t
getInheritedType#
Publicfunction
make#
functionConstructor
func make() : VariablesContainer
StructDefinition#
Publicstruct
struct StructDefinition : VariablesContainer
getName#
Publicfunction
add_member#
Publicfunction
add_function#
Publicfunction
func add_function(self : &StructDefinition, builder : *ASTBuilder, decl : *FunctionDeclaration) : void
getMembers#
Publicfunction
getFunctions#
Publicfunction
make#
functionConstructor
func make() : StructDefinition
StructMember#
Publicstruct
struct StructMember : BaseDefMember
getType#
Publicfunction
make#
functionConstructor
func make() : StructMember
UnionDef#
Publicstruct
struct UnionDef : VariablesContainer
UnsafeBlock#
Publicstruct
struct UnsafeBlock : ASTNode
get_body#
Publicfunction
make#
functionConstructor
func make() : UnsafeBlock
WhileLoop#
Publicstruct
struct WhileLoop : LoopASTNode
VariantDefinition#
Publicstruct
struct VariantDefinition : VariablesContainer
VariantMember#
Publicstruct
struct VariantMember : ASTNode
add_param#
Publicfunction
make#
functionConstructor
func make() : VariantMember
EmbeddedNode#
Publicstruct
struct EmbeddedNode : ASTNode
getDataPtr#
Publicfunction
func getDataPtr(self : &EmbeddedNode) : *void
make#
functionConstructor
func make() : EmbeddedNode
VariantMemberParam#
Publicstruct
struct VariantMemberParam : ASTNode
make#
functionConstructor
func make() : VariantMemberParam
EmbeddedNodeKnownTypeFunc#
Publictypealias
EmbeddedNodeChildResolutionFunc#
Publictypealias
CrossModuleSymbolDeclarerFn#
Publictypealias
CrossModuleSymbolDeclarerProxyFn#
Publictypealias
type CrossModuleSymbolDeclarerProxyFn = func(*void, *EmbeddedNode, CrossModuleSymbolDeclarerFn, AccessSpecifier) : void
ASTBuilder#
Publicstruct
allocate_with_cleanup#
Publicfunction
func allocate_with_cleanup(self : &ASTBuilder, obj_size : size_t, alignment : size_t, cleanup_fn : func(*void) : void) : *void
store_cleanup#
Publicfunction
func store_cleanup(self : &ASTBuilder, obj : *void, cleanup_fn : func(*void) : void) : void
createType#
Publicfunction
make_embedded_node#
Publicfunction
func make_embedded_node(self : &ASTBuilder, spec : AccessSpecifier, name : &string_view, data_ptr : *void, known_type_fn : EmbeddedNodeKnownTypeFunc, child_res_fn : EmbeddedNodeChildResolutionFunc, chemical_nodes : span<*ASTNode>, chemical_values : span<*Value>, parent_node : *ASTNode, location : u64) : *EmbeddedNode
make_top_level_embedded_node#
Publicfunction
func make_top_level_embedded_node(self : &ASTBuilder, spec : AccessSpecifier, name : &string_view, data_ptr : *void, known_type_fn : EmbeddedNodeKnownTypeFunc, child_res_fn : EmbeddedNodeChildResolutionFunc, cmsdpf : CrossModuleSymbolDeclarerProxyFn, chemical_nodes : span<*ASTNode>, chemical_values : span<*Value>, parent_node : *ASTNode, location : u64) : *EmbeddedNode
make_embedded_value#
Publicfunction
func make_embedded_value(self : &ASTBuilder, name : &string_view, data_ptr : *void, type : *BaseType, chemical_nodes : span<*ASTNode>, chemical_values : span<*Value>, location : u64) : *EmbeddedValue
make_any_type#
Publicfunction
make_array_type#
Publicfunction
func make_array_type(self : &ASTBuilder, elem_type : *BaseType, array_size : int, location : u64) : *ArrayType
get_i16_type#
Publicfunction
get_i32_type#
Publicfunction
get_i64_type#
Publicfunction
get_i128_type#
Publicfunction
get_u8_type#
Publicfunction
chemical integer types (unsigned)
get_u16_type#
Publicfunction
get_u32_type#
Publicfunction
get_u64_type#
Publicfunction
get_u128_type#
Publicfunction
get_short_type#
Publicfunction
get_int_type#
Publicfunction
get_long_type#
Publicfunction
get_longlong_type#
Publicfunction
get_uchar_type#
Publicfunction
c like integer types (unsigned)
get_ushort_type#
Publicfunction
get_uint_type#
Publicfunction
get_ulong_type#
Publicfunction
get_ulonglong_type#
Publicfunction
make_double_type#
Publicfunction
make_dynamic_type#
Publicfunction
make_float_type#
Publicfunction
make_func_type#
Publicfunction
func make_func_type(self : &ASTBuilder, returnType : *BaseType, isVariadic : bool, isCapturing : bool, parent : *ASTNode, location : u64) : *FunctionType
make_generic_type#
Publicfunction
make_generic_type_with_args#
Publicfunction
func make_generic_type_with_args(self : &ASTBuilder, linkedType : *LinkedType, args : span<*BaseType>, locs : span<u64>) : *GenericType
make_linked_type#
Publicfunction
func make_linked_type(self : &ASTBuilder, type : &string_view, linked : *ASTNode, location : u64) : *LinkedType
make_linked_value_type#
Publicfunction
make_literal_type#
Publicfunction
make_long_type#
Publicfunction
make_ptr_type#
Publicfunction
func make_ptr_type(self : &ASTBuilder, child_type : *BaseType, is_mutable : bool, location : u64) : *PointerType
make_reference_type#
Publicfunction
func make_reference_type(self : &ASTBuilder, child_type : *BaseType, is_mutable : bool, location : u64) : *ReferenceType
make_string_type#
Publicfunction
make_void_type#
Publicfunction
make_access_chain#
Publicfunction
make_access_chain_node#
Publicfunction
func make_access_chain_node(self : &ASTBuilder, values : &span<*Value>, parent_node : *ASTNode, location : u64) : *AccessChainNode
make_value_wrapper#
Publicfunction
func make_value_wrapper(self : &ASTBuilder, value : *Value, parent_node : *ASTNode) : *ValueWrapperNode
make_addr_of_value#
Publicfunction
func make_addr_of_value(self : &ASTBuilder, value : *Value, is_mutable : bool, location : u64) : *AddrOfValue
make_reference_of_value#
Publicfunction
func make_reference_of_value(self : &ASTBuilder, value : *Value, is_mutable : bool, location : u64) : *ReferenceOfValue
make_array_value#
Publicfunction
make_bigint_value#
Publicfunction
make_bool_value#
Publicfunction
make_casted_value#
Publicfunction
func make_casted_value(self : &ASTBuilder, value : *Value, type : *BaseType, location : u64) : *CastedValue
make_char_value#
Publicfunction
make_dereference_value#
Publicfunction
func make_dereference_value(self : &ASTBuilder, value : *Value, type : *BaseType, location : u64) : *DereferenceValue
make_double_value#
Publicfunction
make_expression_value#
Publicfunction
func make_expression_value(self : &ASTBuilder, first : *Value, second : *Value, op : Operation, type : *BaseType, location : u64) : *Expression
make_float_value#
Publicfunction
make_pattern_match_expr#
Publicfunction
func make_pattern_match_expr(self : &ASTBuilder, is_const : bool, destructure_by_name : bool, name : &string_view, location : u64) : *PatternMatchExpr
make_pattern_match_node#
Publicfunction
func make_pattern_match_node(self : &ASTBuilder, expr : *PatternMatchExpr, parent_node : *ASTNode, location : u64) : *PatternMatchExprNode
make_function_call_value#
Publicfunction
func make_function_call_value(self : &ASTBuilder, parent_val : *Value, location : u64) : *FunctionCall
make_function_call_node#
Publicfunction
func make_function_call_node(self : &ASTBuilder, parent_val : *Value, parent_node : *ASTNode, location : u64) : *FunctionCallNode
make_index_op_value#
Publicfunction
make_int128_value#
Publicfunction
make_int_value#
Publicfunction
make_is_value#
Publicfunction
func make_is_value(self : &ASTBuilder, value : *Value, type : *BaseType, is_negating : bool, location : u64) : *IsValue
make_lambda_function#
Publicfunction
func make_lambda_function(self : &ASTBuilder, value : *Value, type : *BaseType, isVariadic : bool, parent_node : *ASTNode, location : u64) : *LambdaFunction
make_captured_variable#
Publicfunction
func make_captured_variable(self : &ASTBuilder, name : &string_view, index : uint, capture_by_ref : bool, mutable_ref : bool, value : long, location : u64) : *CapturedVariable
make_long_value#
Publicfunction
make_negative_value#
Publicfunction
make_not_value#
Publicfunction
make_bitwise_not#
Publicfunction
make_null_value#
Publicfunction
make_number_value#
Publicfunction
make_short_value#
Publicfunction
make_sizeof_value#
Publicfunction
make_offsetof_value#
Publicfunction
func make_offsetof_value(self : &ASTBuilder, type : *BaseType, member_name : &string_view, location : u64) : *OffsetOfValue
make_string_value#
Publicfunction
make_struct_value#
Publicfunction
the node can be a struct decl, union decl
make_ubigint_value#
Publicfunction
make_uchar_value#
Publicfunction
make_uint128_value#
Publicfunction
make_uint_value#
Publicfunction
make_ulong_value#
Publicfunction
make_ushort_value#
Publicfunction
make_block_value#
Publicfunction
make_value_node#
Publicfunction
func make_value_node(self : &ASTBuilder, value : *Value, parent_node : *ASTNode, location : u64) : *ValueNode
make_identifier#
Publicfunction
func make_identifier(self : &ASTBuilder, value : &string_view, linked : *ASTNode, is_ns : bool, location : u64) : *VariableIdentifier
make_variant_case#
Publicfunction
func make_variant_case(self : &ASTBuilder, mem : *VariantMember, stmt : *SwitchStatement, location : u64) : *VariantCase
make_variant_case_variable#
Publicfunction
func make_variant_case_variable(self : &ASTBuilder, name : &string_view, param : *VariantMemberParam, stmt : *SwitchStatement, location : u64) : *VariantCaseVariable
make_assignment_stmt#
Publicfunction
func make_assignment_stmt(self : &ASTBuilder, lhs : *Value, rhs : *Value, op : Operation, parent_node : *ASTNode, location : u64) : *AssignStatement
make_break_stmt#
Publicfunction
func make_break_stmt(self : &ASTBuilder, loop_node : *LoopASTNode, parent_node : *ASTNode, location : u64) : *BreakStatement
make_continue_stmt#
Publicfunction
func make_continue_stmt(self : &ASTBuilder, loop_node : *LoopASTNode, parent_node : *ASTNode, location : u64) : *ContinueStatement
make_destruct_stmt#
Publicfunction
func make_destruct_stmt(self : &ASTBuilder, array_value : *Value, ptr_value : *Value, is_array : bool, parent_node : *ASTNode, location : u64) : *DestructStmt
make_return_stmt#
Publicfunction
func make_return_stmt(self : &ASTBuilder, value : *Value, parent_node : *ASTNode, location : u64) : *ReturnStatement
make_typealias_stmt#
Publicfunction
func make_typealias_stmt(self : &ASTBuilder, identifier : &string_view, actual_type : *BaseType, specifier : AccessSpecifier, parent_node : *ASTNode, location : u64) : *TypealiasStatement
SwitchStatement* ASTBuildermake_return_stmt(CSTConverter* converter, Value* value, FunctionType* decl, ASTNode* parent_node, location : ubigint);
make_using_stmt#
Publicfunction
func make_using_stmt(self : &ASTBuilder, chain : *AccessChain, parent_node : *ASTNode, is_namespace : bool, location : u64) : *UsingStmt
make_varinit_stmt#
Publicfunction
func make_varinit_stmt(self : &ASTBuilder, is_const : bool, is_reference : bool, identifier : &string_view, type : *BaseType, value : *Value, specifier : AccessSpecifier, parent_node : *ASTNode, location : u64) : *VarInitStatement
make_scope#
Publicfunction
make_do_while_loop#
Publicfunction
func make_do_while_loop(self : &ASTBuilder, condition : *Value, parent_node : *ASTNode, location : u64) : *DoWhileLoop
make_enum_decl#
Publicfunction
func make_enum_decl(self : &ASTBuilder, name : &string_view, underlying_type : *IntNType, specifier : AccessSpecifier, parent_node : *ASTNode, location : u64) : *EnumDeclaration
make_enum_member#
Publicfunction
func make_enum_member(self : &ASTBuilder, name : &string_view, index : uint, init_value : *Value, parent_node : *EnumDeclaration, location : u64) : *EnumMember
make_for_loop#
Publicfunction
func make_for_loop(self : &ASTBuilder, initializer : *VarInitStatement, conditionExpr : *Value, incrementerExpr : *ASTNode, parent_node : *ASTNode, location : u64) : *ForLoop
make_function#
Publicfunction
func make_function(self : &ASTBuilder, name : &string_view, returnType : *BaseType, isVariadic : bool, parent_node : *ASTNode, location : u64) : *FunctionDeclaration
make_function_param#
Publicfunction
func make_function_param(self : &ASTBuilder, name : &string_view, type : *BaseType, index : uint, value : *Value, implicit : bool, parent_node : *ASTNode, location : u64) : *FunctionParam
make_generic_param#
Publicfunction
func make_generic_param(self : &ASTBuilder, name : &string_view, def_type : *BaseType, parent_node : *ASTNode, index : uint, location : u64) : *GenericTypeParameter
make_if_stmt#
Publicfunction
func make_if_stmt(self : &ASTBuilder, condition : *Value, parent_node : *ASTNode, location : u64) : *IfStatement
make_impl_def#
Publicfunction
func make_impl_def(self : &ASTBuilder, interface_type : *BaseType, struct_type : *BaseType, parent_node : *ASTNode, location : u64) : *ImplDefinition
make_interface_def#
Publicfunction
func make_interface_def(self : &ASTBuilder, name : &string_view, specifier : AccessSpecifier, parent_node : *ASTNode, location : u64) : *InterfaceDefinition
make_namespace#
Publicfunction
func make_namespace(self : &ASTBuilder, name : &string_view, specifier : AccessSpecifier, parent_node : *ASTNode, location : u64) : *Namespace
make_struct_def#
Publicfunction
func make_struct_def(self : &ASTBuilder, name : &string_view, specifier : AccessSpecifier, parent_node : *ASTNode, location : u64) : *StructDefinition
make_struct_member#
Publicfunction
func make_struct_member(self : &ASTBuilder, name : &string_view, type : *BaseType, defValue : *Value, isConst : bool, specifier : AccessSpecifier, parent_node : *ASTNode, location : u64) : *StructMember
make_union_def#
Publicfunction
func make_union_def(self : &ASTBuilder, name : &string_view, specifier : AccessSpecifier, parent_node : *ASTNode, location : u64) : *UnionDef
make_unsafe_block#
Publicfunction
make_while_loop#
Publicfunction
func make_while_loop(self : &ASTBuilder, condition : *Value, node : *ASTNode, location : u64) : *WhileLoop
make_variant_def#
Publicfunction
func make_variant_def(self : &ASTBuilder, name : &string_view, specifier : AccessSpecifier, node : *ASTNode, location : u64) : *VariantDefinition
make_variant_member#
Publicfunction
func make_variant_member(self : &ASTBuilder, name : &string_view, parent_node : *VariantDefinition, location : u64) : *VariantMember
make_variant_member_param#
Publicfunction
func make_variant_member_param(self : &ASTBuilder, name : &string_view, index : uint, is_const : bool, type : *BaseType, defValue : *Value, parent_node : *VariantMember, location : u64) : *VariantMemberParam
allocate_size#
PublicfunctionExtension
func allocate_size(builder : &ASTBuilder, obj_size : size_t, alignment : size_t) : *char
allocate_str_size#
PublicfunctionExtension
func allocate_str_size(builder : &ASTBuilder, size : size_t) : *char
adds +1 to size to accomodate for the last null terminator \0 in string
allocate_str#
PublicfunctionExtension
func allocate_str(builder : &ASTBuilder, data : *char, size : size_t) : *char
allocate_view#
PublicfunctionExtension
allocate#
PublicfunctionExtension
func allocate<T>(builder : &ASTBuilder) : *T