Changes in src/Parser/ParseNode.h [3a5131ed:e994912]
- File:
-
- 1 edited
-
src/Parser/ParseNode.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
r3a5131ed re994912 10 10 // Created On : Sat May 16 13:28:16 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 16 13:15:55201713 // Update Count : 6 6112 // Last Modified On : Thu Feb 9 14:45:28 2017 13 // Update Count : 658 14 14 // 15 15 … … 39 39 //############################################################################## 40 40 41 extern char* yyfilename;42 extern int yylineno;43 44 41 class ParseNode { 45 42 public: … … 68 65 ParseNode * next = nullptr; 69 66 std::string * name = nullptr; 70 CodeLocation location = { yyfilename, yylineno };71 67 }; // ParseNode 72 68 … … 414 410 while ( cur ) { 415 411 try { 412 // SynTreeType * result = dynamic_cast< SynTreeType * >( maybeBuild< typename std::result_of< decltype(&NodeType::build)(NodeType)>::type >( cur ) ); 416 413 SynTreeType * result = dynamic_cast< SynTreeType * >( maybeBuild< typename std::pointer_traits< decltype(cur->build())>::element_type >( cur ) ); 417 414 if ( result ) { 418 result->location = cur->location;419 415 * out++ = result; 420 416 } // if 421 417 } catch( SemanticError &e ) { 422 e.set_location( cur->location );423 418 errors.append( e ); 424 419 } // try … … 437 432 template< typename SynTreeType, typename NodeType > 438 433 void buildMoveList( const NodeType * firstNode, std::list< SynTreeType * > &outputList ) { 439 buildList( firstNode, outputList);434 buildList(firstNode, outputList); 440 435 delete firstNode; 441 436 }
Note:
See TracChangeset
for help on using the changeset viewer.