Files
swift-mirror/test/SourceKit/Refactoring/semantic-refactoring/line-col-conversion.swift
Nathan Hawes 44f4df49df [sourcekit] Fix line+column -> offset conversion when on the last line of a file with no terminating newline
This was causing local refactorings (which are line+column-based) to fail due to
the provided location being considered invalid, even though the available
refactorings request (which uses offset directly) reported them as available.
2018-09-20 18:25:45 -07:00

4 lines
122 B
Swift

// RUN: %sourcekitd-test -req=local-rename -pos=4:7 -name new_name %s -- %s
var Foo: Int {
var missingNewlineAtEndOfFile