mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
remove unnecessary constructor argument
This commit is contained in:
parent
34f780d747
commit
67be2df174
3 changed files with 4 additions and 4 deletions
|
|
@ -111,7 +111,7 @@ TEST_F(ValuePrintingTests, vLambda)
|
||||||
auto posIdx = state.positions.add(origin, 0);
|
auto posIdx = state.positions.add(origin, 0);
|
||||||
auto body = ExprInt(0);
|
auto body = ExprInt(0);
|
||||||
|
|
||||||
ExprLambda eLambda(state.mem.exprs.alloc, posIdx, createSymbol("a"), &body);
|
ExprLambda eLambda(posIdx, createSymbol("a"), &body);
|
||||||
|
|
||||||
Value vLambda;
|
Value vLambda;
|
||||||
vLambda.mkLambda(&env, &eLambda);
|
vLambda.mkLambda(&env, &eLambda);
|
||||||
|
|
@ -500,7 +500,7 @@ TEST_F(ValuePrintingTests, ansiColorsLambda)
|
||||||
auto posIdx = state.positions.add(origin, 0);
|
auto posIdx = state.positions.add(origin, 0);
|
||||||
auto body = ExprInt(0);
|
auto body = ExprInt(0);
|
||||||
|
|
||||||
ExprLambda eLambda(state.mem.exprs.alloc, posIdx, createSymbol("a"), &body);
|
ExprLambda eLambda(posIdx, createSymbol("a"), &body);
|
||||||
|
|
||||||
Value vLambda;
|
Value vLambda;
|
||||||
vLambda.mkLambda(&env, &eLambda);
|
vLambda.mkLambda(&env, &eLambda);
|
||||||
|
|
|
||||||
|
|
@ -551,7 +551,7 @@ public:
|
||||||
std::ranges::copy(formals.formals, formalsStart);
|
std::ranges::copy(formals.formals, formalsStart);
|
||||||
};
|
};
|
||||||
|
|
||||||
ExprLambda(std::pmr::polymorphic_allocator<char> & alloc, PosIdx pos, Symbol arg, Expr * body)
|
ExprLambda(PosIdx pos, Symbol arg, Expr * body)
|
||||||
: pos(pos)
|
: pos(pos)
|
||||||
, arg(arg)
|
, arg(arg)
|
||||||
, hasFormals(false)
|
, hasFormals(false)
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@ expr: expr_function;
|
||||||
|
|
||||||
expr_function
|
expr_function
|
||||||
: ID ':' expr_function
|
: ID ':' expr_function
|
||||||
{ auto me = new ExprLambda(state->alloc, CUR_POS, state->symbols.create($1), $3);
|
{ auto me = new ExprLambda(CUR_POS, state->symbols.create($1), $3);
|
||||||
$$ = me;
|
$$ = me;
|
||||||
SET_DOC_POS(me, @1);
|
SET_DOC_POS(me, @1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue