We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d9227e commit 2d45da0Copy full SHA for 2d45da0
lib/syntax_tree/dsl.rb
@@ -347,16 +347,6 @@ def Else(keyword, statements)
347
)
348
end
349
350
- # Create a new Elsif node.
351
- def Elsif(predicate, statements, consequent)
352
- Elsif.new(
353
- predicate: predicate,
354
- statements: statements,
355
- consequent: consequent,
356
- location: Location.default
357
- )
358
- end
359
-
360
# Create a new EmbDoc node.
361
def EmbDoc(value)
362
EmbDoc.new(value: value, location: Location.default)
@@ -478,8 +468,9 @@ def Ident(value)
478
468
479
469
480
470
# Create a new IfNode node.
481
- def IfNode(predicate, statements, consequent)
471
+ def IfNode(keyword, predicate, statements, consequent)
482
472
IfNode.new(
473
+ keyword: keyword,
483
474
predicate: predicate,
484
475
statements: statements,
485
476
consequent: consequent,
0 commit comments