Skip to content

Commit 4ec0070

Browse files
committed
Remove LambdaVar method from DSL and add new param to BlockVar
1 parent 19d8792 commit 4ec0070

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/syntax_tree/dsl.rb

+7-7
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,13 @@ def Binary(left, operator, right)
146146
end
147147

148148
# Create a new BlockVar node.
149-
def BlockVar(params, locals)
150-
BlockVar.new(params: params, locals: locals, location: Location.default)
149+
def BlockVar(params, locals, pipe)
150+
BlockVar.new(
151+
params: params,
152+
locals: locals,
153+
location: Location.default,
154+
pipe: pipe
155+
)
151156
end
152157

153158
# Create a new BlockArg node.
@@ -551,11 +556,6 @@ def Lambda(params, statements)
551556
)
552557
end
553558

554-
# Create a new LambdaVar node.
555-
def LambdaVar(params, locals)
556-
LambdaVar.new(params: params, locals: locals, location: Location.default)
557-
end
558-
559559
# Create a new LBrace node.
560560
def LBrace(value)
561561
LBrace.new(value: value, location: Location.default)

0 commit comments

Comments
 (0)