rubinius-ast 3.4 → 3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubinius/code/ast/sends.rb +6 -2
- data/lib/rubinius/code/ast/version.rb +1 -1
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c75c337e4e65b87670e62183252530329118d091
|
4
|
+
data.tar.gz: 640f7537ad2d01958c38a42c50e24683b7b389bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d3537443f9bbbad14036c85a2e041bb58686368605738c662d2d4ee7ec40f1c53aa76612ff2b17b417c931e03e0b3de84e30ff9e0e31f62e981b7c8ad0f01e1
|
7
|
+
data.tar.gz: 9d6f8ab36a677d7e1bddb00ccafd9d61785b028dbbb4dee51c399a3e66592c3dcc2cddf1bda02d71a04603af519756400e97236c4bb4ddfb44ddd60687731010
|
@@ -529,6 +529,10 @@ module CodeTools
|
|
529
529
|
@locals.include?(name) if @locals
|
530
530
|
end
|
531
531
|
|
532
|
+
def block_parameter?(name)
|
533
|
+
@arguments.block_arg.name == name if @arguments.block_arg
|
534
|
+
end
|
535
|
+
|
532
536
|
def module?
|
533
537
|
false
|
534
538
|
end
|
@@ -547,7 +551,7 @@ module CodeTools
|
|
547
551
|
if variable = variables[name]
|
548
552
|
variable.nested_reference
|
549
553
|
elsif block_local?(name)
|
550
|
-
|
554
|
+
new_nested_local name
|
551
555
|
elsif reference = @parent.search_local(name)
|
552
556
|
reference.depth += 1
|
553
557
|
reference
|
@@ -570,7 +574,7 @@ module CodeTools
|
|
570
574
|
def assign_local_reference(var)
|
571
575
|
if variable = variables[var.name]
|
572
576
|
var.variable = variable.reference
|
573
|
-
elsif block_local?(var.name) || var.placeholder?
|
577
|
+
elsif block_local?(var.name) || var.placeholder? || block_parameter?(var.name)
|
574
578
|
variable = new_local var.name
|
575
579
|
var.variable = variable.reference
|
576
580
|
elsif reference = @parent.search_local(var.name)
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubinius-ast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '3.
|
4
|
+
version: '3.5'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Shirai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
14
15
|
requirement: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
|
-
- -
|
17
|
+
- - ~>
|
17
18
|
- !ruby/object:Gem::Version
|
18
19
|
version: '1.3'
|
19
|
-
|
20
|
+
type: :development
|
20
21
|
prerelease: false
|
21
22
|
version_requirements: !ruby/object:Gem::Requirement
|
22
23
|
requirements:
|
23
|
-
- -
|
24
|
+
- - ~>
|
24
25
|
- !ruby/object:Gem::Version
|
25
26
|
version: '1.3'
|
26
|
-
type: :development
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
28
29
|
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - ~>
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '10.0'
|
33
|
-
|
34
|
+
type: :development
|
34
35
|
prerelease: false
|
35
36
|
version_requirements: !ruby/object:Gem::Requirement
|
36
37
|
requirements:
|
37
|
-
- -
|
38
|
+
- - ~>
|
38
39
|
- !ruby/object:Gem::Version
|
39
40
|
version: '10.0'
|
40
|
-
type: :development
|
41
41
|
description: An Abstract Syntax Tree for the Rubinius language platform.
|
42
42
|
email:
|
43
43
|
- brixen@gmail.com
|
@@ -73,17 +73,17 @@ require_paths:
|
|
73
73
|
- lib
|
74
74
|
required_ruby_version: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
|
-
- -
|
76
|
+
- - '>='
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: '0'
|
79
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - '>='
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
85
|
rubyforge_project:
|
86
|
-
rubygems_version: 2.
|
86
|
+
rubygems_version: 2.0.14.1
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: An Abstract Syntax Tree for the Rubinius language platform.
|