src/AstProgram.cpp
void AstProgram::addType(std::unique_ptr<AstType> type) {
    auto& cur = types[type->getName()];
    assert(!cur && "Redefinition of type!");
    cur = std::move(type);
}
/* Add a new type to the program */
Add a new type to the program
Add a new type to the program
void AstProgram::addType(std::unique_ptr<AstType> type) {
    auto& cur = types[type->getName()];
    assert(!cur && "Redefinition of type!");
    cur = std::move(type);
}
void AstProgram :: addType ( std :: unique_ptr < AstType > type ) { auto & cur = types [ type -> getName ( ) ] ; assert ( ! cur && " " ) ; cur = std :: move ( type ) ; }
Add a new type to the program
Add a new type to the program