Skip to content

Commit 21ddc5a

Browse files
committed
Remove LambdaVar method from DSL and add new param to BlockVar
1 parent b67b726 commit 21ddc5a

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.
@@ -539,11 +544,6 @@ def Lambda(params, statements)
539544
)
540545
end
541546

542-
# Create a new LambdaVar node.
543-
def LambdaVar(params, locals)
544-
LambdaVar.new(params: params, locals: locals, location: Location.default)
545-
end
546-
547547
# Create a new LBrace node.
548548
def LBrace(value)
549549
LBrace.new(value: value, location: Location.default)

0 commit comments

Comments
 (0)