Ignore:
Timestamp:
Oct 2, 2017, 4:53:32 PM (7 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:
d29fa5f
Parents:
50377a4
git-author:
Rob Schluntz <rschlunt@…> (10/02/17 16:53:28)
git-committer:
Rob Schluntz <rschlunt@…> (10/02/17 16:53:32)
Message:

Remove argName from Expression.

If named arguments are ever considered again, they should be added in UntypedExpr? (and maybe also ApplicationExpr?) to avoid unnecessary fields in every Expression. Like designators on initializers, it should be much easier to work with argument names at the call expression level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ExpressionNode.cc

    r50377a4 rbf4b4cf  
    8787                } else {
    8888                        assertf( false, "internal error, bad integral length %s", str.c_str() );
    89                 } // if         
     89                } // if
    9090                posn += 1;
    9191        } // if
     
    396396
    397397NameExpr * build_varref( const string * name ) {
    398         NameExpr * expr = new NameExpr( *name, nullptr );
     398        NameExpr * expr = new NameExpr( *name );
    399399        delete name;
    400400        return expr;
     
    487487        list< Expression * > args;
    488488        buildMoveList( expr_node, args );
    489         return new UntypedExpr( maybeMoveBuild< Expression >(function), args, nullptr );
     489        return new UntypedExpr( maybeMoveBuild< Expression >(function), args );
    490490} // build_func
    491491
Note: See TracChangeset for help on using the changeset viewer.