tan  0.0.1
typed.cpp
1 #include "ast/typed.h"
2 #include "ast/type.h"
3 
4 using namespace tanlang;
5 
6 Type *Typed::get_type() const { return _type; }
7 
8 void Typed::set_type(Type *type) {
9  TAN_ASSERT(type);
10  _type = type;
11 }
Type is immutable once created. The exception is StructType. Its information is updated in multiple s...
Definition: type.h:22