rubinius-ast 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubinius/ast/control_flow.rb +20 -0
- data/lib/rubinius/ast/sends.rb +9 -0
- data/lib/rubinius/ast/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbc92034ccb2ad50de44ce82fec2d33cd3aff30c
|
4
|
+
data.tar.gz: 5101ad9a2d5c03520105d9a77baaa1b40db51d44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40a073041c986b2131d519ed10cd03d6fac33d57ca2da6e69822842b10f002621e33d712518664f430609bba78709f92a547b410d26169036e246ad9687c12c7
|
7
|
+
data.tar.gz: 4d63a8b26ed32cd1937a60d38142638b40111d597eadb77a70be1580dd1430eb6df5efd85a8b661cf6621ff9f9cde60066a402301f0b05ac32516186d7c76ca1
|
@@ -28,6 +28,10 @@ module Rubinius::ToolSets.current::ToolSet
|
|
28
28
|
done.set!
|
29
29
|
end
|
30
30
|
|
31
|
+
def defined(g)
|
32
|
+
g.push :nil
|
33
|
+
end
|
34
|
+
|
31
35
|
def receiver_sexp
|
32
36
|
nil
|
33
37
|
end
|
@@ -328,6 +332,10 @@ module Rubinius::ToolSets.current::ToolSet
|
|
328
332
|
done.set!
|
329
333
|
end
|
330
334
|
|
335
|
+
def defined(g)
|
336
|
+
g.push :nil
|
337
|
+
end
|
338
|
+
|
331
339
|
def to_sexp
|
332
340
|
else_sexp = @else.kind_of?(NilLiteral) ? nil : @else.to_sexp
|
333
341
|
[:if, @condition.to_sexp, @body.to_sexp, else_sexp]
|
@@ -405,6 +413,10 @@ module Rubinius::ToolSets.current::ToolSet
|
|
405
413
|
g.pop_modifiers
|
406
414
|
end
|
407
415
|
|
416
|
+
def defined(g)
|
417
|
+
g.push :nil
|
418
|
+
end
|
419
|
+
|
408
420
|
def sexp_name
|
409
421
|
:while
|
410
422
|
end
|
@@ -551,6 +563,10 @@ module Rubinius::ToolSets.current::ToolSet
|
|
551
563
|
end
|
552
564
|
end
|
553
565
|
|
566
|
+
def defined(g)
|
567
|
+
g.push :nil
|
568
|
+
end
|
569
|
+
|
554
570
|
def sexp_name
|
555
571
|
:break
|
556
572
|
end
|
@@ -687,6 +703,10 @@ module Rubinius::ToolSets.current::ToolSet
|
|
687
703
|
end
|
688
704
|
end
|
689
705
|
|
706
|
+
def defined(g)
|
707
|
+
g.push :nil
|
708
|
+
end
|
709
|
+
|
690
710
|
def to_sexp
|
691
711
|
sexp = [:return]
|
692
712
|
sexp << @value.to_sexp if @value
|
data/lib/rubinius/ast/sends.rb
CHANGED
@@ -65,6 +65,11 @@ module Rubinius::ToolSets.current::ToolSet
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def defined(g)
|
68
|
+
if @block.kind_of? For
|
69
|
+
@block.defined(g)
|
70
|
+
return
|
71
|
+
end
|
72
|
+
|
68
73
|
if @vcall_style and check_local_reference(g)
|
69
74
|
g.push_literal "local-variable"
|
70
75
|
return
|
@@ -804,6 +809,10 @@ module Rubinius::ToolSets.current::ToolSet
|
|
804
809
|
var.variable = reference
|
805
810
|
end
|
806
811
|
|
812
|
+
def defined(g)
|
813
|
+
g.push_literal "expression"
|
814
|
+
end
|
815
|
+
|
807
816
|
def sexp_name
|
808
817
|
:for
|
809
818
|
end
|
data/lib/rubinius/ast/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubinius-ast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Shirai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|