Struct Typing¶
- Defined in File ASTNode.h
Inheritance Relationships¶
Base Type¶
public AST::ASTNode(Struct ASTNode)
Struct Documentation¶
-
struct
Typing: public AST::ASTNode¶ Public Functions
-
~Typing()¶
-
void
print_original_src(unsigned int indent_depth)¶
-
bool
check_initialize_before_use(InitializedList &inits, InitializedList *all_inits, bool is_method)¶ Helper function used to check if the specified type name actually exists.
- Return
- True if the type_name_ is a valid class.
- Parameters
type_name: Name of the type used
-
void
update_initialized_list(InitializedList &inits, bool is_constructor)¶ Used in an assignment statement to update the set of initialized variables.
- Parameters
inits: Set of initialized variables.is_constructor: True if the function is a constructor.
-
bool
update_inferred_type(TypeCheck::Settings &settings, Quack::Class *inferred_type, bool is_field)¶ Updates the symbol table and the nodes using an inferred type
- Return
- True if the update is successful
- Parameters
st: Symbol table for the methodinferred_type: Type inferred for updatingthis_class: Class type of the object
-