rubinius-ast 1.0.2 → 1.1.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: ac87ac4174248617e6e83e7004f25a2644699b18
4
- data.tar.gz: 74109b5447f8d530845eaa1ce06d6a1fde79e7cc
3
+ metadata.gz: d9ef6922256fee486d23ce4a2af486742011337b
4
+ data.tar.gz: 8588d243f10255f1b37764251385f452b6631026
5
5
  SHA512:
6
- metadata.gz: caf74b3e99d76f455a18ce9ad55ecce867674d6cd7007127a7c29371ac10c593bb908a655c3d86304d2d1ab6c3ce8c3bb83446fa8889a226a5fd7782a4cc0297
7
- data.tar.gz: 8cdd2f236a365b1564a153acf6e07d501de7a30bf2da15b39bbe7b69f56a50914107a285a1ce966fd5460fffe27b23a663279dab8819d2789522065b71a95f35
6
+ metadata.gz: 4e0aadf5cf03a2fafc8d96fcc1049daa3bf372537b10bce802ee996f062e0c68ee7bd34af87ba7b1a389e4994b8bc9df9563f5106934bb96f7ff3a05d1f9b729
7
+ data.tar.gz: cab84fdedeac9bd453ba9d26b5275f50234db12a805aa0308434470c7074ad62ade7ab9179ace36a480644c921211d63cabed78a6d8f72470269d46ed44b45ec
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: us-ascii -*-
2
2
 
3
- module Rubinius::ToolSet.current::TS
3
+ module Rubinius::ToolSets.current::ToolSet
4
4
  module AST
5
5
 
6
6
  class TypeConstant < Node
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: us-ascii -*-
2
2
 
3
- module Rubinius::ToolSet.current::TS
3
+ module Rubinius::ToolSets.current::ToolSet
4
4
  module AST
5
5
  class Case < Node
6
6
  attr_accessor :whens, :else
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: us-ascii -*-
2
2
 
3
- module Rubinius::ToolSet.current::TS
3
+ module Rubinius::ToolSets.current::ToolSet
4
4
  module AST
5
5
  class EndData < Node
6
6
  attr_accessor :data
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: us-ascii -*-
2
2
 
3
- module Rubinius::ToolSet.current::TS
3
+ module Rubinius::ToolSets.current::ToolSet
4
4
  module AST
5
5
  class Alias < Node
6
6
  attr_accessor :to, :from
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: us-ascii -*-
2
2
 
3
- module Rubinius::ToolSet.current::TS
3
+ module Rubinius::ToolSets.current::ToolSet
4
4
  module AST
5
5
  class Encoding < Node
6
6
  attr_accessor :name
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: us-ascii -*-
2
2
 
3
- module Rubinius::ToolSet.current::TS
3
+ module Rubinius::ToolSets.current::ToolSet
4
4
  module AST
5
5
  class Begin < Node
6
6
  attr_accessor :rescue
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: us-ascii -*-
2
2
 
3
- module Rubinius::ToolSet.current::TS
3
+ module Rubinius::ToolSets.current::ToolSet
4
4
  module AST
5
5
  class File < Node
6
6
  def bytecode(g)
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: us-ascii -*-
2
2
 
3
- module Rubinius::ToolSet.current::TS
3
+ module Rubinius::ToolSets.current::ToolSet
4
4
  module AST
5
5
  class AsciiGrapher
6
6
  def initialize(ast, node_kind=Node)
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: us-ascii -*-
2
2
 
3
- module Rubinius::ToolSet.current::TS
3
+ module Rubinius::ToolSets.current::ToolSet
4
4
  module AST
5
5
  class ArrayLiteral < Node
6
6
  attr_accessor :body
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: us-ascii -*-
2
2
 
3
- module Rubinius::ToolSet.current::TS
3
+ module Rubinius::ToolSets.current::ToolSet
4
4
  module AST
5
5
  class Node
6
6
  attr_accessor :line
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: us-ascii -*-
2
2
 
3
- module Rubinius::ToolSet.current::TS
3
+ module Rubinius::ToolSets.current::ToolSet
4
4
  module AST
5
5
  class And < Node
6
6
  attr_accessor :left, :right
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: us-ascii -*-
2
2
 
3
- module Rubinius::ToolSet.current::TS
3
+ module Rubinius::ToolSets.current::ToolSet
4
4
  module AST
5
5
  class Self < Node
6
6
  def bytecode(g)
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: us-ascii -*-
2
2
 
3
- module Rubinius::ToolSet.current::TS
3
+ module Rubinius::ToolSets.current::ToolSet
4
4
  module AST
5
5
  class Send < Node
6
6
  attr_accessor :receiver, :name, :privately, :block, :variable, :vcall_style
@@ -1000,7 +1000,14 @@ module Rubinius::ToolSet.current::TS
1000
1000
  end
1001
1001
 
1002
1002
  def to_sexp
1003
- arguments_sexp :yield
1003
+ args = @arguments.to_sexp
1004
+ args << @block.to_sexp if @block
1005
+ if @argument_count == 1 and !@yield_splat and @arguments.splat.nil? and
1006
+ @arguments.array.first.kind_of? SplatValue
1007
+ [:yield, [:array] + args]
1008
+ else
1009
+ [:yield] + args
1010
+ end
1004
1011
  end
1005
1012
  end
1006
1013
 
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: us-ascii -*-
2
2
 
3
- module Rubinius::ToolSet.current::TS
3
+ module Rubinius::ToolSets.current::ToolSet
4
4
  module AST
5
5
  module Transforms
6
6
  def self.register(category, name, klass)
@@ -249,9 +249,6 @@ module Rubinius::ToolSet.current::TS
249
249
  class SendFastNew < SendWithArguments
250
250
  transform :default, :fast_new, "Fast SomeClass.new path"
251
251
 
252
- # FIXME duplicated from kernel/common/compiled_code.rb
253
- KernelMethodSerial = 47
254
-
255
252
  def self.match?(line, receiver, name, arguments, privately)
256
253
  # ignore vcall style
257
254
  return false if !arguments and privately
@@ -270,9 +267,9 @@ module Rubinius::ToolSet.current::TS
270
267
  g.dup
271
268
 
272
269
  if @privately
273
- g.check_serial_private :new, KernelMethodSerial
270
+ g.check_serial_private :new, Rubinius::CompiledCode::KernelMethodSerial
274
271
  else
275
- g.check_serial :new, KernelMethodSerial
272
+ g.check_serial :new, Rubinius::CompiledCode::KernelMethodSerial
276
273
  end
277
274
  g.gif slow
278
275
 
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: us-ascii -*-
2
2
 
3
- module Rubinius::ToolSet.current::TS
3
+ module Rubinius::ToolSets.current::ToolSet
4
4
  module AST
5
5
  class SplatValue < Node
6
6
  attr_accessor :value
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: us-ascii -*-
2
2
 
3
- module Rubinius::ToolSet.current::TS
3
+ module Rubinius::ToolSets.current::ToolSet
4
4
  module AST
5
5
  class BackRef < Node
6
6
  attr_accessor :kind
@@ -1,5 +1,5 @@
1
- module Rubinius::ToolSet.current::TS
1
+ module Rubinius::ToolSets.current::ToolSet
2
2
  module AST
3
- VERSION = "1.0.2"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
data/rubinius-ast.gemspec CHANGED
@@ -4,7 +4,7 @@ require './lib/rubinius/ast/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "rubinius-ast"
7
- spec.version = Rubinius::ToolSet.current::TS::AST::VERSION
7
+ spec.version = Rubinius::ToolSets.current::ToolSet::AST::VERSION
8
8
  spec.authors = ["Brian Shirai"]
9
9
  spec.email = ["brixen@gmail.com"]
10
10
  spec.description = %q{An Abstract Syntax Tree for Ruby.}
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: 1.0.2
4
+ version: 1.1.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: 2013-12-25 00:00:00.000000000 Z
11
+ date: 2014-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
- requirement: !ruby/object:Gem::Requirement
15
+ version_requirements: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
20
+ requirement: !ruby/object:Gem::Requirement
23
21
  requirements:
24
- - - ~>
22
+ - - "~>"
25
23
  - !ruby/object:Gem::Version
26
24
  version: '1.3'
25
+ prerelease: false
26
+ type: :development
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
- requirement: !ruby/object:Gem::Requirement
29
+ version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
34
+ requirement: !ruby/object:Gem::Requirement
37
35
  requirements:
38
- - - ~>
36
+ - - "~>"
39
37
  - !ruby/object:Gem::Version
40
38
  version: '10.0'
39
+ prerelease: false
40
+ type: :development
41
41
  description: An Abstract Syntax Tree for Ruby.
42
42
  email:
43
43
  - brixen@gmail.com
@@ -45,7 +45,7 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - .gitignore
48
+ - ".gitignore"
49
49
  - Gemfile
50
50
  - LICENSE
51
51
  - README.md
@@ -79,18 +79,19 @@ require_paths:
79
79
  - lib
80
80
  required_ruby_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - '>='
82
+ - - ">="
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
91
91
  rubyforge_project:
92
- rubygems_version: 2.0.7
92
+ rubygems_version: 2.2.2
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: An Abstract Syntax Tree for Ruby.
96
96
  test_files: []
97
+ has_rdoc: