Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1c5d78f

Browse files
committed
Update prism version
1 parent 625bcc7 commit 1c5d78f

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
source "https://rubygems.org"
44

55
gemspec
6+
7+
gem "prism"

Gemfile.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ GEM
99
remote: https://rubygems.org/
1010
specs:
1111
prettier_print (1.2.1)
12-
prism (0.24.0)
12+
prism (0.30.0)
1313

1414
PLATFORMS
1515
arm64-darwin-22
1616
arm64-darwin-23
1717

1818
DEPENDENCIES
19+
prism
1920
syntax_tree-prism!
2021

2122
BUNDLED WITH

lib/syntax_tree/prism.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@
44
require "prism"
55

66
module Prism
7-
class Location
8-
def leading_comments
9-
comments.select { |comment| comment.location.start_offset < start_offset }
10-
end
11-
12-
def trailing_comments
13-
comments.select { |comment| comment.location.start_offset > start_offset }
14-
end
15-
end
16-
177
class Format < PrettierPrint
188
COMMENT_PRIORITY = 1
199
HEREDOC_PRIORITY = 2

0 commit comments

Comments
 (0)