Changeset 312029a for src/Parser/DeclarationNode.cc
- Timestamp:
- Dec 11, 2019, 8:52:38 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 737c98a
- Parents:
- 98d6965d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
r98d6965d r312029a 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jul 25 22:17:10201913 // Update Count : 11 1612 // Last Modified On : Wed Dec 11 07:40:14 2019 13 // Update Count : 1123 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" };50 49 const char * DeclarationNode::typeClassNames[] = { "otype", "dtype", "ftype", "NoTypeClassNames" }; 51 50 const char * DeclarationNode::builtinTypeNames[] = { "__builtin_va_list", "__auto_type", "zero_t", "one_t", "NoBuiltinTypeNames" }; … … 267 266 } 268 267 269 DeclarationNode * DeclarationNode::newAggregate( Aggregate kind, const string * name, ExpressionNode * actuals, DeclarationNode * fields, bool body ) {268 DeclarationNode * DeclarationNode::newAggregate( AggregateDecl::Aggregate kind, const string * name, ExpressionNode * actuals, DeclarationNode * fields, bool body ) { 270 269 DeclarationNode * newnode = new DeclarationNode; 271 270 newnode->type = new TypeData( TypeData::Aggregate ); … … 328 327 newnode->type = new TypeData( TypeData::Aggregate ); 329 328 newnode->type->aggregate.name = name; 330 newnode->type->aggregate.kind = Trait;329 newnode->type->aggregate.kind = AggregateDecl::Trait; 331 330 newnode->type->aggregate.params = params; 332 331 newnode->type->aggregate.fields = asserts; … … 338 337 newnode->type = new TypeData( TypeData::AggregateInst ); 339 338 newnode->type->aggInst.aggregate = new TypeData( TypeData::Aggregate ); 340 newnode->type->aggInst.aggregate->aggregate.kind = Trait;339 newnode->type->aggInst.aggregate->aggregate.kind = AggregateDecl::Trait; 341 340 newnode->type->aggInst.aggregate->aggregate.name = name; 342 341 newnode->type->aggInst.params = params;
Note: See TracChangeset
for help on using the changeset viewer.