Changeset 8315947 for src/Validate/GenericParameter.cpp
- Timestamp:
- Jul 13, 2024, 3:29:22 PM (2 months ago)
- Branches:
- master
- Children:
- 2e6b2a0
- Parents:
- 76b507d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/GenericParameter.cpp
r76b507d r8315947 301 301 const ast::Expr * TranslateDimensionCore::postvisit( 302 302 const ast::TypeExpr * expr ) { 303 if ( auto instType = dynamic_cast<const ast::EnumInstType *>( expr->type.get() ) ) {304 const ast::EnumDecl * baseEnum = instType->base.get();305 return ast::ConstantExpr::from_int( expr->location, baseEnum->members.size() );306 }303 // if ( auto instType = dynamic_cast<const ast::EnumInstType *>( expr->type.get() ) ) { 304 // const ast::EnumDecl * baseEnum = instType->base.get(); 305 // return ast::ConstantExpr::from_int( expr->location, baseEnum->members.size() ); 306 // } 307 307 return expr; 308 308 }
Note: See TracChangeset
for help on using the changeset viewer.