@@ -15,7 +15,6 @@ module NodeFind # :nodoc:
1515 # Find the node for the given callable or backtrace location.
1616 #--
1717 #: (Method | UnboundMethod | Proc | Thread::Backtrace::Location callable, bool rubyvm) -> Node?
18- #++
1918 def self . find ( callable , rubyvm )
2019 case callable
2120 when Proc
@@ -50,7 +49,6 @@ class Find
5049 # Parse the given file path, returning a ParseResult or nil.
5150 #--
5251 #: (String? file) -> ParseResult?
53-
5452 def parse_file ( file )
5553 return unless file && File . readable? ( file )
5654 result = Prism . parse_file ( file )
@@ -64,7 +62,6 @@ class RubyVMCallableFind < Find
6462 # Find the node for the given callable using the ISeq node_id.
6563 #--
6664 #: (Method | UnboundMethod | Proc callable) -> Node?
67-
6865 def find ( callable )
6966 return unless ( source_location = callable . source_location )
7067 return unless ( result = parse_file ( source_location [ 0 ] ) )
@@ -83,7 +80,6 @@ class RubyVMBacktraceLocationFind < Find
8380 # Find the node for the given backtrace location using node_id.
8481 #--
8582 #: (Thread::Backtrace::Location location) -> Node?
86-
8783 def find ( location )
8884 file = location . absolute_path || location . path
8985 return unless ( result = parse_file ( file ) )
@@ -101,7 +97,6 @@ class LineMethodFind < Find
10197 # Find the node for the given method by matching on name and line.
10298 #--
10399 #: (Method | UnboundMethod callable) -> Node?
104-
105100 def find ( callable )
106101 return unless ( source_location = callable . source_location )
107102 return unless ( result = parse_file ( source_location [ 0 ] ) )
@@ -128,7 +123,6 @@ class LineLambdaFind < Find
128123 # Find the node for the given lambda by matching on line.
129124 #--
130125 #: (Proc callable) -> Node?
131-
132126 def find ( callable )
133127 return unless ( source_location = callable . source_location )
134128 return unless ( result = parse_file ( source_location [ 0 ] ) )
@@ -154,7 +148,6 @@ class LineProcFind < Find
154148 # Find the node for the given proc by matching on line.
155149 #--
156150 #: (Proc callable) -> Node?
157-
158151 def find ( callable )
159152 return unless ( source_location = callable . source_location )
160153 return unless ( result = parse_file ( source_location [ 0 ] ) )
@@ -180,7 +173,6 @@ class LineBacktraceLocationFind < Find
180173 # Find the node for the given backtrace location by matching on line.
181174 #--
182175 #: (Thread::Backtrace::Location location) -> Node?
183-
184176 def find ( location )
185177 file = location . absolute_path || location . path
186178 return unless ( result = parse_file ( file ) )
0 commit comments