Changes in src/Parser/ParseNode.h [3e274ab:312029a]
- File:
-
- 1 edited
-
src/Parser/ParseNode.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
r3e274ab r312029a 10 10 // Created On : Sat May 16 13:28:16 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Feb 7 17:56:02 202013 // Update Count : 8 9112 // Last Modified On : Wed Dec 11 07:40:07 2019 13 // Update Count : 882 14 14 // 15 15 … … 28 28 #include "Common/UniqueName.h" // for UniqueName 29 29 #include "Common/utility.h" // for maybeClone, maybeBuild 30 #include " SynTree/LinkageSpec.h"// for Spec30 #include "Parser/LinkageSpec.h" // for Spec 31 31 #include "SynTree/Declaration.h" // for Aggregate 32 32 #include "SynTree/Expression.h" // for Expression, ConstantExpr (ptr only) … … 218 218 enum Length { Short, Long, LongLong, NoLength }; 219 219 static const char * lengthNames[]; 220 enum TypeClass { Otype, Dtype, Ftype, Ttype, NoTypeClass }; 221 static const char * typeClassNames[]; 220 222 enum BuiltinType { Valist, AutoType, Zero, One, NoBuiltinType }; 221 223 static const char * builtinTypeNames[]; … … 239 241 static DeclarationNode * newName( const std::string * ); 240 242 static DeclarationNode * newFromTypeGen( const std::string *, ExpressionNode * params ); 241 static DeclarationNode * newTypeParam( Type Decl::Kind, const std::string * );243 static DeclarationNode * newTypeParam( TypeClass, const std::string * ); 242 244 static DeclarationNode * newTrait( const std::string * name, DeclarationNode * params, DeclarationNode * asserts ); 243 245 static DeclarationNode * newTraitUse( const std::string * name, ExpressionNode * params ); … … 309 311 struct Variable_t { 310 312 // const std::string * name; 311 TypeDecl::KindtyClass;313 DeclarationNode::TypeClass tyClass; 312 314 DeclarationNode * assertions; 313 315 DeclarationNode * initializer; … … 449 451 * out++ = result; 450 452 } else { 451 SemanticError( cur->location, "type specifier declaration in forall clause is currently unimplemented.");453 assertf(false, "buildList unknown type"); 452 454 } // if 453 455 } catch( SemanticErrorException & e ) {
Note:
See TracChangeset
for help on using the changeset viewer.