masamune-ast 2.0.0 → 2.0.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a219314a174623dc030d59985862865ef8fb957e9c8c1712a5575e4e2baed5c
|
4
|
+
data.tar.gz: 51ba23a068694f8f6bce90ec4fcf9b371356e89519ae84fb2d69187fee4ac25c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5cb612d6444c600c09e920240e0f1d975259d27689a28024908808185279746fd434e7cf01618c220fb6d738170abddb3f407a7030edfeef4fc8277309a0eca
|
7
|
+
data.tar.gz: 3b53a97766d360c6963a9e584ffa665e7e64266344cec9e350673434ed3d909356bade69a4bdbf54a10ff4f8202a4dfbf25d32c484d0f2c92ca55621c1196666
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [2.0.2] - 2023-10-19
|
4
|
+
|
5
|
+
- Get location information directly from comment object in #68
|
6
|
+
|
7
|
+
## [2.0.1] - 2023-10-18
|
8
|
+
|
9
|
+
- Fix results for the call node visitor #64.
|
10
|
+
|
3
11
|
## [2.0.0] - 2023-10-13
|
4
12
|
|
5
13
|
- Migrate to Prism by @gazayas in #60
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
masamune-ast (2.0.
|
4
|
+
masamune-ast (2.0.2)
|
5
5
|
activesupport
|
6
|
-
prism (>= 0.
|
6
|
+
prism (>= 0.14.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -19,7 +19,7 @@ GEM
|
|
19
19
|
concurrent-ruby (~> 1.0)
|
20
20
|
method_source (1.0.0)
|
21
21
|
minitest (5.18.0)
|
22
|
-
prism (0.
|
22
|
+
prism (0.14.0)
|
23
23
|
pry (0.14.2)
|
24
24
|
coderay (~> 1.1)
|
25
25
|
method_source (~> 1.0)
|
@@ -78,5 +78,10 @@ module Prism
|
|
78
78
|
def comment? = true
|
79
79
|
def token_location = location
|
80
80
|
def token_value = location.slice
|
81
|
+
def start_line = location.start_line
|
82
|
+
def start_column = location.start_column
|
83
|
+
def end_line = location.end_line
|
84
|
+
def end_column = location.end_column
|
85
|
+
def line_number = start_line
|
81
86
|
end
|
82
87
|
end
|
@@ -9,8 +9,9 @@ module Masamune
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def visit_call_node(node)
|
12
|
+
# TODO: We should probably replace this with unless node.variable_call?
|
12
13
|
if node.method_call?
|
13
|
-
results << node if token_value.nil? || token_value == node.name
|
14
|
+
results << node if token_value.nil? || token_value == node.name.to_s
|
14
15
|
end
|
15
16
|
super
|
16
17
|
end
|
data/lib/masamune/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: masamune-ast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriel Zayas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.14.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.14.0
|
41
41
|
description: A layer of abstraction on top of Ripper for handling Abstract Syntax
|
42
42
|
Trees in Ruby.
|
43
43
|
email:
|