Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ParseNode.h

    r3a5131ed re994912  
    1010// Created On       : Sat May 16 13:28:16 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Feb 16 13:15:55 2017
    13 // Update Count     : 661
     12// Last Modified On : Thu Feb  9 14:45:28 2017
     13// Update Count     : 658
    1414//
    1515
     
    3939//##############################################################################
    4040
    41 extern char* yyfilename;
    42 extern int yylineno;
    43 
    4441class ParseNode {
    4542  public:
     
    6865        ParseNode * next = nullptr;
    6966        std::string * name = nullptr;
    70         CodeLocation location = { yyfilename, yylineno };
    7167}; // ParseNode
    7268
     
    414410        while ( cur ) {
    415411                try {
     412//                      SynTreeType * result = dynamic_cast< SynTreeType * >( maybeBuild< typename std::result_of< decltype(&NodeType::build)(NodeType)>::type >( cur ) );
    416413                        SynTreeType * result = dynamic_cast< SynTreeType * >( maybeBuild< typename std::pointer_traits< decltype(cur->build())>::element_type >( cur ) );
    417414                        if ( result ) {
    418                                 result->location = cur->location;
    419415                                * out++ = result;
    420416                        } // if
    421417                } catch( SemanticError &e ) {
    422                         e.set_location( cur->location );
    423418                        errors.append( e );
    424419                } // try
     
    437432template< typename SynTreeType, typename NodeType >
    438433void buildMoveList( const NodeType * firstNode, std::list< SynTreeType * > &outputList ) {
    439         buildList( firstNode, outputList );
     434        buildList(firstNode, outputList);
    440435        delete firstNode;
    441436}
Note: See TracChangeset for help on using the changeset viewer.