Changeset 64ac636 for src/Parser


Ignore:
Timestamp:
Mar 17, 2017, 1:14:07 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
b2f5082
Parents:
1fbab5a
Message:

fix missing line numbers in some places, including member constructor generation

Location:
src/Parser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ExpressionNode.cc

    r1fbab5a r64ac636  
    254254Expression *build_pfieldSel( ExpressionNode *expr_node, Expression *member ) {
    255255        UntypedExpr *deref = new UntypedExpr( new NameExpr( "*?" ) );
     256        deref->location = expr_node->location;
    256257        deref->get_args().push_back( maybeMoveBuild< Expression >(expr_node) );
    257258        UntypedMemberExpr *ret = new UntypedMemberExpr( member, deref );
  • src/Parser/ParseNode.h

    r1fbab5a r64ac636  
    134134                        Expression * p = orig->build();
    135135                        p->set_extension( orig->get_extension() );
     136                        p->location = orig->location;
    136137                        return p;
    137138                } else {
Note: See TracChangeset for help on using the changeset viewer.