diff options
author | Adrian Thurston <thurston@complang.org> | 2015-06-06 14:15:00 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-06-06 14:15:00 -0400 |
commit | c158a685a7bad2c4d06b4c160704b6913f5e70bf (patch) | |
tree | 5df6fc5983a0957b0acd327bf6516ccab69d2d56 /src/parser.cc | |
parent | 5a5cf0547b01d3c95dfa00b8f36f93a5143e25a7 (diff) | |
download | colm-c158a685a7bad2c4d06b4c160704b6913f5e70bf.tar.gz |
some nameing cleanup around list and list el
Diffstat (limited to 'src/parser.cc')
-rw-r--r-- | src/parser.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parser.cc b/src/parser.cc index 21e7652b..5d4775aa 100644 --- a/src/parser.cc +++ b/src/parser.cc @@ -57,7 +57,7 @@ void BaseParser::listElDef( String name ) String id = curStruct()->objectDef->name; RepeatType repeatType = RepeatNone; TypeRef *objTr = TypeRef::cons( InputLoc(), nspaceQual, id, repeatType ); - TypeRef *elTr = TypeRef::cons( InputLoc(), TypeRef::ListEl, 0, objTr, 0 ); + TypeRef *elTr = TypeRef::cons( InputLoc(), TypeRef::ListPtrs, 0, objTr, 0 ); ObjectField *of = ObjectField::cons( InputLoc(), ObjectField::GenericElementType, elTr, name ); @@ -88,7 +88,7 @@ void BaseParser::mapElDef( String name, TypeRef *keyType ) NamespaceQual *nspaceQual = NamespaceQual::cons( curNspace() ); String id = curStruct()->objectDef->name; TypeRef *objTr = TypeRef::cons( InputLoc(), nspaceQual, id, RepeatNone ); - TypeRef *elTr = TypeRef::cons( InputLoc(), TypeRef::MapEl, 0, objTr, keyType ); + TypeRef *elTr = TypeRef::cons( InputLoc(), TypeRef::MapPtrs, 0, objTr, keyType ); ObjectField *of = ObjectField::cons( InputLoc(), ObjectField::GenericElementType, elTr, name ); @@ -452,7 +452,7 @@ void BaseParser::addArgvList() emptyNspaceQual(), name ); pd->argvTypeRef = TypeRef::cons( internal, - TypeRef::ValueList, 0, elType, valType ); + TypeRef::List, 0, elType, valType ); } ObjectDef *BaseParser::blockOpen() |