Open ahoppen opened 1 year ago
The following new test case reports results for cursor info but when trying to do local rename it fails with “cannot resolve location as name”
@resultBuilder struct ViewBuilder { public static func buildBlock() -> Int { 0 } public static func buildBlock(_ content: Int) -> Int { content } } @propertyWrapper struct State { var wrappedValue: Int } struct ValueModifier { @ViewBuilder func body() -> Int { // RUN: %sourcekitd-test -req=cursor -pos=%(line + 2):16 %s -- %s | %FileCheck %s --check-prefix CURSOR // RUN: %sourcekitd-test -req=refactoring.rename.local -pos=%(line + 1):16 %s -- %s @State var position } } // CURSOR: <Declaration>@<Type usr="s:4test5StateV">State</Type> var position: <<error type>> { get set }</Declaration>
rdar://105382720
The local refactoring action has been removed but the underlying issue probably still persists when getting local rename ranges.
The following new test case reports results for cursor info but when trying to do local rename it fails with “cannot resolve location as name”
rdar://105382720