lib/steep/services/signature_help_provider.rb in steep-1.4.0 vs lib/steep/services/signature_help_provider.rb in steep-1.5.0.pre.1
- old
+ new
@@ -12,15 +12,10 @@
end
def initialize(source:, subtyping:)
@source = source
@subtyping = subtyping
-
- text =
- if source.node
- source.node.loc.expression.source
- end
- @buffer = RBS::Buffer.new(name: source.path, content: text || "")
+ @buffer = source.buffer
end
def run(line:, column:)
nodes = source.find_nodes(line: line, column: column)