Changes in src/AST/Decl.cpp [360b2e13:8a5530c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Decl.cpp
r360b2e13 r8a5530c 45 45 } 46 46 47 // --- FunctionDecl 48 49 const Type * FunctionDecl::get_type() const override { return type.get(); } 50 void FunctionDecl::set_type(Type * t) override { type = strict_dynamic_cast< FunctionType* >( t ); } 51 47 52 // --- TypeDecl 48 53 49 54 std::string TypeDecl::typeString() const { 50 55 static const std::string kindNames[] = { "object type", "function type", "tuple type" }; 51 assertf( sizeof(kindNames)/sizeof(kindNames[0]) == DeclarationNode::NoTypeClass-1, 56 assertf( sizeof(kindNames)/sizeof(kindNames[0]) == DeclarationNode::NoTypeClass-1, 52 57 "typeString: kindNames is out of sync." ); 53 58 assertf( kind < sizeof(kindNames)/sizeof(kindNames[0]), "TypeDecl's kind is out of bounds." );
Note: See TracChangeset
for help on using the changeset viewer.