class Stacklang::Type::Struct
- Stacklang::Type::Struct
- Stacklang::Type::Any
- Reference
- Object
Defined in:
stacklang/compiler/types.crConstructors
Instance Method Summary
- #ast : Stacklang::AST::Struct
- #fields : Array(Field)
- #fields=(fields : Array(Field))
- #name : String
- #name=(name : String)
- #size : UInt16
-
#solve(other_types : Hash(String, Type::Struct), stack : Array(Type::Any) = [] of Type::Any)
Compute the size and fields of the structures.
- #to_s(io)
Instance methods inherited from class Stacklang::Type::Any
size
size
Class methods inherited from class Stacklang::Type::Any
solve_constraint(ast : AST::Type, types : Hash(String, Type::Struct), stack : Array(Type::Any) = [] of Type::Any) : Type::Any
solve_constraint
Constructor Detail
Instance Method Detail
Compute the size and fields of the structures. It needs all other structure types to be given.