Changeset 0b0a285 for src/Validate/GenericParameter.cpp
- Timestamp:
- Jun 21, 2023, 2:38:44 AM (11 months ago)
- Branches:
- master
- Children:
- c84dd61
- Parents:
- fec8bd1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/GenericParameter.cpp
rfec8bd1 r0b0a285 247 247 const ast::Expr * TranslateDimensionCore::postvisit( 248 248 const ast::TypeExpr * expr ) { 249 // Does nothing, except prevents matching ast::Expr (above). 249 if ( auto instType = dynamic_cast<const ast::EnumInstType *>( expr->type.get() ) ) { 250 const ast::EnumDecl * baseEnum = instType->base.get(); 251 return ast::ConstantExpr::from_int( expr->location, baseEnum->members.size() ); 252 } 250 253 return expr; 251 254 }
Note: See TracChangeset
for help on using the changeset viewer.