Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Decl.cpp

    r360b2e13 r8a5530c  
    4545}
    4646
     47// --- FunctionDecl
     48
     49const Type * FunctionDecl::get_type() const override { return type.get(); }
     50void FunctionDecl::set_type(Type * t) override { type = strict_dynamic_cast< FunctionType* >( t ); }
     51
    4752// --- TypeDecl
    4853
    4954std::string TypeDecl::typeString() const {
    5055        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,
    5257                "typeString: kindNames is out of sync." );
    5358        assertf( kind < sizeof(kindNames)/sizeof(kindNames[0]), "TypeDecl's kind is out of bounds." );
Note: See TracChangeset for help on using the changeset viewer.