File tree 4 files changed +15
-8
lines changed
4 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -4,4 +4,6 @@ source 'https://rubygems.org'
4
4
5
5
gemspec name : 'mutant'
6
6
7
+ gem 'unparser' , path : '../unparser'
8
+
7
9
eval_gemfile 'Gemfile.shared'
Original file line number Diff line number Diff line change
1
+ PATH
2
+ remote: ../unparser
3
+ specs:
4
+ unparser (0.7.0 )
5
+ diff-lcs (~> 1.3 )
6
+ parser (>= 3.3.0 )
7
+
1
8
PATH
2
9
remote: .
3
10
specs:
6
13
parser (~> 3.3.0 )
7
14
regexp_parser (~> 2.9.0 )
8
15
sorbet-runtime (~> 0.5.0 )
9
- unparser (~> 0.6.14 )
16
+ unparser (~> 0.7.0 )
10
17
11
18
GEM
12
19
remote: https://rubygems.org/
57
64
sorbet-runtime (0.5.11422 )
58
65
strscan (3.1.0 )
59
66
unicode-display_width (2.5.0 )
60
- unparser (0.6.14 )
61
- diff-lcs (~> 1.3 )
62
- parser (>= 3.3.0 )
63
67
64
68
PLATFORMS
65
69
ruby
@@ -70,6 +74,7 @@ DEPENDENCIES
70
74
rspec-core (~> 3.10 )
71
75
rspec-its (~> 1.3.0 )
72
76
rubocop (~> 1.7 )
77
+ unparser !
73
78
74
79
BUNDLED WITH
75
80
2.5.6
Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ def call(path)
24
24
private
25
25
26
26
def parse ( source )
27
- node , comments = Unparser . parse_with_comments ( source )
27
+ ast = Unparser . parse_ast_either ( source ) . from_right
28
28
29
29
AST . new (
30
- node : ,
31
- comment_associations : :: Parser :: Source :: Comment . associate_by_identity ( node , comments )
30
+ comment_associations : :: Parser :: Source :: Comment . associate_by_identity ( ast . node , ast . comments ) ,
31
+ node : ast . node
32
32
)
33
33
end
34
34
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Gem::Specification.new do |gem|
29
29
gem . add_runtime_dependency ( 'parser' , '~> 3.3.0' )
30
30
gem . add_runtime_dependency ( 'regexp_parser' , '~> 2.9.0' )
31
31
gem . add_runtime_dependency ( 'sorbet-runtime' , '~> 0.5.0' )
32
- gem . add_runtime_dependency ( 'unparser' , '~> 0.6.14 ' )
32
+ gem . add_runtime_dependency ( 'unparser' , '~> 0.7.0 ' )
33
33
34
34
gem . add_development_dependency ( 'rspec' , '~> 3.10' )
35
35
gem . add_development_dependency ( 'rspec-core' , '~> 3.10' )
You can’t perform that action at this time.
0 commit comments