Ignore:
Timestamp:
Feb 26, 2024, 3:49:23 AM (7 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
a4da45e
Parents:
c17dc80
Message:

Add EnumPosType? to type system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/Autogen.cpp

    rc17dc80 r0522ebe  
    206206        ast::FunctionDecl * genLabelProto() const;
    207207        ast::FunctionDecl * genValueProto() const;
     208        // ast::FunctionDecl * genValueProto2() const;
    208209};
    209210
     
    790791}
    791792
     793// ast::FunctionDecl * EnumFuncGenerator::genValueProto2() const {
     794//      return genProto( "valueE",
     795//              { new ast::ObjectDecl( getLocation(), "_i", new ast::EnumPosType( new ast::EnumInstType( decl ) ) )},
     796//              { new ast::ObjectDecl( getLocation(), "_ret", ast::deepCopy( decl->base ) ) } );
     797// }
     798
    792799void EnumFuncGenerator::genAttrFuncForward() { 
    793800        if ( decl->base ) {
    794801                ast::FunctionDecl *(EnumFuncGenerator::*attrProtos[3])() const = {
    795802                        &EnumFuncGenerator::genPosProto, &EnumFuncGenerator::genLabelProto,
    796                         &EnumFuncGenerator::genValueProto };
     803                        &EnumFuncGenerator::genValueProto
     804                        // , &EnumFuncGenerator::genValueProto2
     805                        };
    797806                for ( auto & generator : attrProtos ) {
    798807                        produceForwardDecl( (this->*generator)() );
Note: See TracChangeset for help on using the changeset viewer.