Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CandidateFinder.cpp

    r525f7ad r85855b0  
    696696                void postvisit( const ast::UntypedInitExpr * initExpr );
    697697                void postvisit( const ast::QualifiedNameExpr * qualifiedExpr );
    698                 void postvisit( const ast::CountExpr * countExpr );
    699698
    700699                const ast::Expr * makeEnumOffsetCast( const ast::EnumInstType * src,
     
    15281527                        addCandidate( *choice, new ast::SizeofExpr{ sizeofExpr->location, choice->expr } );
    15291528                }
    1530         }
    1531 
    1532         void Finder::postvisit( const ast::CountExpr * countExpr ) {
    1533                 assert( countExpr->type );
    1534                 auto enumInst = countExpr->type.as<ast::EnumInstType>();
    1535                 if ( !enumInst ) {
    1536                         SemanticError( countExpr, "Count Expression only supports Enum Type as operand: ");
    1537                 }
    1538                 addCandidate( ast::ConstantExpr::from_ulong(countExpr->location, enumInst->base->members.size()), tenv );
    15391529        }
    15401530
Note: See TracChangeset for help on using the changeset viewer.