We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3569122 commit 6d611c7Copy full SHA for 6d611c7
lib/compiler/ast/control_flow.rb
@@ -32,6 +32,10 @@ def receiver_sexp
32
nil
33
end
34
35
+ def defined(g)
36
+ g.push_literal "expression"
37
+ end
38
+
39
def to_sexp
40
else_sexp = @else.kind_of?(NilLiteral) ? nil : @else.to_sexp
41
sexp = [:case, receiver_sexp]
@@ -328,6 +332,10 @@ def bytecode(g)
328
332
done.set!
329
333
330
334
335
336
337
338
331
339
340
341
[:if, @condition.to_sexp, @body.to_sexp, else_sexp]
@@ -405,6 +413,10 @@ def bytecode(g, use_gif=true)
405
413
g.pop_modifiers
406
414
407
415
416
417
418
419
408
420
def sexp_name
409
421
:while
410
422
0 commit comments