Changes in src/Parser/DeclarationNode.cc [312029a:033ff37]
- File:
-
- 1 edited
-
src/Parser/DeclarationNode.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
r312029a r033ff37 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Dec 11 07:40:14201913 // Update Count : 11 2312 // Last Modified On : Thu Jul 25 22:17:10 2019 13 // Update Count : 1116 14 14 // 15 15 … … 47 47 const char * DeclarationNode::signednessNames[] = { "signed", "unsigned", "NoSignednessNames" }; 48 48 const char * DeclarationNode::lengthNames[] = { "short", "long", "long long", "NoLengthNames" }; 49 const char * DeclarationNode::aggregateNames[] = { "struct", "union", "trait", "coroutine", "monitor", "thread", "NoAggregateNames" }; 49 50 const char * DeclarationNode::typeClassNames[] = { "otype", "dtype", "ftype", "NoTypeClassNames" }; 50 51 const char * DeclarationNode::builtinTypeNames[] = { "__builtin_va_list", "__auto_type", "zero_t", "one_t", "NoBuiltinTypeNames" }; … … 266 267 } 267 268 268 DeclarationNode * DeclarationNode::newAggregate( Aggregate Decl::Aggregatekind, const string * name, ExpressionNode * actuals, DeclarationNode * fields, bool body ) {269 DeclarationNode * DeclarationNode::newAggregate( Aggregate kind, const string * name, ExpressionNode * actuals, DeclarationNode * fields, bool body ) { 269 270 DeclarationNode * newnode = new DeclarationNode; 270 271 newnode->type = new TypeData( TypeData::Aggregate ); … … 327 328 newnode->type = new TypeData( TypeData::Aggregate ); 328 329 newnode->type->aggregate.name = name; 329 newnode->type->aggregate.kind = AggregateDecl::Trait;330 newnode->type->aggregate.kind = Trait; 330 331 newnode->type->aggregate.params = params; 331 332 newnode->type->aggregate.fields = asserts; … … 337 338 newnode->type = new TypeData( TypeData::AggregateInst ); 338 339 newnode->type->aggInst.aggregate = new TypeData( TypeData::Aggregate ); 339 newnode->type->aggInst.aggregate->aggregate.kind = AggregateDecl::Trait;340 newnode->type->aggInst.aggregate->aggregate.kind = Trait; 340 341 newnode->type->aggInst.aggregate->aggregate.name = name; 341 342 newnode->type->aggInst.params = params;
Note:
See TracChangeset
for help on using the changeset viewer.