parser_node_ext 0.9.1 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/Gemfile.lock +3 -5
- data/lib/parser_node_ext/version.rb +1 -1
- data/lib/parser_node_ext.rb +3 -0
- data/sig/parser_node_ext.rbs +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 935089d050b6cfa37cb4b2b73aa2f2b29fc82b6e355354a46184f20434a331e2
|
4
|
+
data.tar.gz: d1667479f06fb825d9abe9479dbc4eacc64a234e72c792709f6735fab02e56c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcdf61c369ee2486b3eb276714f38ad53a75e022732fdfcbd9d38f0d05615efd4268813d675e9548e5ba27c8b020f8a5c88e472b48ad317c558c23c2e566f824
|
7
|
+
data.tar.gz: b98d563672fab7af70592839603b7ac7a3d0315710d11b2a071a9b66a84f9d5744df3682277ed9a997f172f84031c4417112ca38e7be267f1383b6a21e8bbaf9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.11.0 (2023-02-12)
|
4
|
+
|
5
|
+
* Support `self` node
|
6
|
+
|
7
|
+
## 0.10.0 (2023-02-01)
|
8
|
+
|
9
|
+
* Support `erange` and `irange` nodes
|
10
|
+
|
3
11
|
## 0.9.1 (2023-02-01)
|
4
12
|
|
5
13
|
* Fix `module` node `body` method
|
@@ -56,4 +64,4 @@
|
|
56
64
|
|
57
65
|
## 0.1.0 (2022-06-26)
|
58
66
|
|
59
|
-
* Abstract from synvert-core
|
67
|
+
* Abstract from synvert-core
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
parser_node_ext (0.
|
4
|
+
parser_node_ext (0.11.0)
|
5
5
|
parser
|
6
6
|
|
7
7
|
GEM
|
@@ -9,7 +9,7 @@ GEM
|
|
9
9
|
specs:
|
10
10
|
ast (2.4.2)
|
11
11
|
diff-lcs (1.5.0)
|
12
|
-
parser (3.2.
|
12
|
+
parser (3.2.1.0)
|
13
13
|
ast (~> 2.4.1)
|
14
14
|
rake (13.0.6)
|
15
15
|
rspec (3.11.0)
|
@@ -27,9 +27,7 @@ GEM
|
|
27
27
|
rspec-support (3.11.0)
|
28
28
|
|
29
29
|
PLATFORMS
|
30
|
-
|
31
|
-
x86_64-darwin-22
|
32
|
-
x86_64-linux
|
30
|
+
ruby
|
33
31
|
|
34
32
|
DEPENDENCIES
|
35
33
|
parser_node_ext!
|
data/lib/parser_node_ext.rb
CHANGED
@@ -26,6 +26,7 @@ module ParserNodeExt
|
|
26
26
|
def: %i[name arguments body],
|
27
27
|
defined?: %i[arguments],
|
28
28
|
defs: %i[self name arguments body],
|
29
|
+
erange: %i[begin end],
|
29
30
|
false: [],
|
30
31
|
find_pattern: %i[elements],
|
31
32
|
float: %i[value],
|
@@ -35,6 +36,7 @@ module ParserNodeExt
|
|
35
36
|
if_guard: %i[expression],
|
36
37
|
int: %i[value],
|
37
38
|
in_pattern: %i[expression guard body],
|
39
|
+
irange: %i[begin end],
|
38
40
|
ivasgn: %i[left_value right_value],
|
39
41
|
ivar: %i[name],
|
40
42
|
lvar: %i[name],
|
@@ -53,6 +55,7 @@ module ParserNodeExt
|
|
53
55
|
pair: %i[key value],
|
54
56
|
pin: %i[variable],
|
55
57
|
restarg: %i[name],
|
58
|
+
self: [],
|
56
59
|
send: %i[receiver message arguments],
|
57
60
|
str: %i[value],
|
58
61
|
super: %i[arguments],
|
data/sig/parser_node_ext.rbs
CHANGED
@@ -4,10 +4,12 @@ module ParserNodeExt
|
|
4
4
|
|
5
5
|
def arguments: () -> Array[Parser::AST::Node]
|
6
6
|
def arguments_count: () -> Integer
|
7
|
+
def begin: () -> Parser::AST::Node
|
7
8
|
def body: () -> Array[Parser::AST::Node]
|
8
9
|
def caller: () -> Parser::AST::Node
|
9
10
|
def elements: () -> Array[Parser::AST::Node]
|
10
11
|
def else_statement: () -> Parser::AST::Node
|
12
|
+
def end: () -> Parser::AST::Node
|
11
13
|
def expression: () -> Parser::AST::Node
|
12
14
|
def if_statement: () -> Parser::AST::Node
|
13
15
|
def in_statements: () -> Array[Parser::AST::Node]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parser_node_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Huang
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|