Changes in src/Parser/parser.yy [119889f:597ddfeb]
- File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r119889f r597ddfeb 3132 3132 // | type_specifier identifier_parameter_declarator 3133 3133 | assertion_list 3134 // Invent a placeholder type to wrap these bare assertions. Rely on buildFunctionDecl to remove the placeholder. 3135 { $$ = DeclarationNode::newTypeParam( ast::TypeDecl::Dtype, new string( "" ) )->addAssertions( $1 ); } 3134 { $$ = DeclarationNode::newTypeParam( ast::TypeDecl::Dtype, new string( DeclarationNode::anonymous.newName() ) )->addAssertions( $1 ); } 3136 3135 | ENUM '(' identifier_or_type_name ')' identifier_or_type_name new_type_class type_initializer_opt assertion_list_opt 3137 3136 {
Note:
See TracChangeset
for help on using the changeset viewer.