rubinius-processor 3.0 → 3.1

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: 2440bbcd018eafb9a915da6f987a95be7921866d
4
- data.tar.gz: 3424dc7cdf76fbaa7e9232b1364da116757a25f0
3
+ metadata.gz: b0bdd37c7cc8ebb587384ab11f39ef24a18b19b3
4
+ data.tar.gz: 6f9f827c44675de247fd8a31e10cd037aa2e370d
5
5
  SHA512:
6
- metadata.gz: 519a50ecc7a7c2b01c7f61716e50cb20a63f9792366bdd2b135cee080d9bea3557bf673bebc93c016e525033b6acd3e139910d04537095f523b254bd76aba927
7
- data.tar.gz: d31b5f6f70cad14e07baa16136a75d9d14b34d57f52ff9d3e0bfed9fdf05163cae3f375bac2f81c0da63d7ed7e033d0f7c1d5a3c52b429ed807e84391381e955
6
+ metadata.gz: 54e17a3426de430dca889af31c76cb634ad589fda9f01f1cb7d04ec54b03c55ecfa6c680ba9ec9807e6b45ad2d26d3d998f843a0b91f5cf7245f45e2b827cf83
7
+ data.tar.gz: 7b7ebce4cfb3809a0763c449d19f9512b70d46f0fdff121541ef76c2ef3e0c2e2cd50a7878cb5220bd93f5eca208c0216944b7b15582db04281d83121ba07d4b
@@ -34,6 +34,10 @@ module CodeTools
34
34
  AST::And.new line, left, right
35
35
  end
36
36
 
37
+ def process_andattrasgn(line, receiver, name, arguments)
38
+ AST::AttributeAssignment.new line, receiver, name, arguments
39
+ end
40
+
37
41
  def process_args(line, required, optional, splat, post, kwargs, kwrest, block)
38
42
  AST::Parameters.new line, required, optional, splat, post, kwargs, kwrest, block
39
43
  end
@@ -106,6 +110,30 @@ module CodeTools
106
110
  node
107
111
  end
108
112
 
113
+ def process_qcall(line, receiver, name, arguments)
114
+ if arguments.kind_of? AST::BlockPass
115
+ block = arguments
116
+ arguments = block.arguments
117
+ block.arguments = nil
118
+ else
119
+ block = nil
120
+ end
121
+
122
+ if node = process_transforms(line, receiver, name, arguments)
123
+ node.block = block if block
124
+ return node
125
+ end
126
+
127
+ if arguments
128
+ node = AST::AndSendWithArguments.new line, receiver, name, arguments
129
+ else
130
+ node = AST::AndSend.new line, receiver, name
131
+ end
132
+
133
+ node.block = block
134
+ node
135
+ end
136
+
109
137
  def process_case(line, receiver, whens, else_body)
110
138
  if receiver
111
139
  AST::ReceiverCase.new line, receiver, whens, else_body
@@ -412,8 +440,12 @@ module CodeTools
412
440
  AST::OpAssignElement.new line, receiver, index, op, value
413
441
  end
414
442
 
415
- def process_op_asgn2(line, receiver, name, op, value)
416
- AST::OpAssignAttribute.new line, receiver, name, op, value
443
+ def process_op_asgn2(line, receiver, anddot, name, op, value)
444
+ if anddot
445
+ AST::AndOpAssignAttribute.new line, receiver, name, op, value
446
+ else
447
+ AST::OpAssignAttribute.new line, receiver, name, op, value
448
+ end
417
449
  end
418
450
 
419
451
  def process_op_asgn_and(line, var, value)
@@ -1,5 +1,5 @@
1
1
  module CodeTools
2
2
  class Processor
3
- VERSION = "3.0"
3
+ VERSION = "3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubinius-processor
3
3
  version: !ruby/object:Gem::Version
4
- version: '3.0'
4
+ version: '3.1'
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-01-29 00:00:00.000000000 Z
11
+ date: 2016-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -17,8 +17,8 @@ dependencies:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
- prerelease: false
21
20
  type: :development
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
@@ -31,8 +31,8 @@ dependencies:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
- prerelease: false
35
34
  type: :development
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"