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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d9ef6922256fee486d23ce4a2af486742011337b
4
- data.tar.gz: 8588d243f10255f1b37764251385f452b6631026
3
+ metadata.gz: cbc92034ccb2ad50de44ce82fec2d33cd3aff30c
4
+ data.tar.gz: 5101ad9a2d5c03520105d9a77baaa1b40db51d44
5
5
  SHA512:
6
- metadata.gz: 4e0aadf5cf03a2fafc8d96fcc1049daa3bf372537b10bce802ee996f062e0c68ee7bd34af87ba7b1a389e4994b8bc9df9563f5106934bb96f7ff3a05d1f9b729
7
- data.tar.gz: cab84fdedeac9bd453ba9d26b5275f50234db12a805aa0308434470c7074ad62ade7ab9179ace36a480644c921211d63cabed78a6d8f72470269d46ed44b45ec
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
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Rubinius::ToolSets.current::ToolSet
2
2
  module AST
3
- VERSION = "1.1.1"
3
+ VERSION = "1.1.2"
4
4
  end
5
5
  end
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.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-15 00:00:00.000000000 Z
11
+ date: 2014-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler