@@ -43,7 +43,7 @@ final class SwiftFocusedCodeFinder_Selection_Tests: XCTestCase {
4343 . init(
4444 signature: " @ViewBuilder private func f(_ a: String) -> String " ,
4545 name: " f " ,
46- range: . init( startPair: ( 2 , 0 ) , endPair: ( 7 , 5 ) )
46+ range: . init( startPair: ( 1 , 4 ) , endPair: ( 7 , 5 ) )
4747 ) ,
4848 ] ) ,
4949 contextRange: . init( startPair: ( 0 , 0 ) , endPair: ( 8 , 1 ) ) ,
@@ -162,7 +162,7 @@ final class SwiftFocusedCodeFinder_Selection_Tests: XCTestCase {
162162 . init(
163163 signature: " public protocol A: Hashable " ,
164164 name: " A " ,
165- range: . init( startPair: ( 1 , 0 ) , endPair: ( 1 , 9 ) )
165+ range: . init( startPair: ( 0 , 0 ) , endPair: ( 6 , 1 ) )
166166 ) ,
167167 ] ) ,
168168 contextRange: . init( startPair: ( 0 , 0 ) , endPair: ( 6 , 1 ) ) ,
@@ -199,7 +199,7 @@ final class SwiftFocusedCodeFinder_Selection_Tests: XCTestCase {
199199 . init(
200200 signature: " private extension A: Equatable " ,
201201 name: " A " ,
202- range: . init( startPair: ( 1 , 0 ) , endPair: ( 1 , 9 ) )
202+ range: . init( startPair: ( 0 , 0 ) , endPair: ( 6 , 1 ) )
203203 ) ,
204204 ] ) ,
205205 contextRange: . init( startPair: ( 0 , 0 ) , endPair: ( 6 , 1 ) ) ,
@@ -237,7 +237,7 @@ final class SwiftFocusedCodeFinder_Selection_Tests: XCTestCase {
237237 . init(
238238 signature: " @gloablActor public actor A " ,
239239 name: " A " ,
240- range: . init( startPair: ( 2 , 0 ) , endPair: ( 2 , 9 ) )
240+ range: . init( startPair: ( 0 , 0 ) , endPair: ( 7 , 1 ) )
241241 ) ,
242242 ] ) ,
243243 contextRange: . init( startPair: ( 0 , 0 ) , endPair: ( 7 , 1 ) ) ,
@@ -276,7 +276,7 @@ final class SwiftFocusedCodeFinder_Selection_Tests: XCTestCase {
276276 . init(
277277 signature: " @MainActor public indirect enum A " ,
278278 name: " A " ,
279- range: . init( startPair: ( 3 , 0 ) , endPair: ( 3 , 9 ) )
279+ range: . init( startPair: ( 0 , 0 ) , endPair: ( 8 , 1 ) )
280280 ) ,
281281 ] ) ,
282282 contextRange: . init( startPair: ( 0 , 0 ) , endPair: ( 8 , 1 ) ) ,
@@ -315,12 +315,12 @@ final class SwiftFocusedCodeFinder_Selection_Tests: XCTestCase {
315315 . init(
316316 signature: " struct A " ,
317317 name: " A " ,
318- range: . init( startPair: ( 2 , 0 ) , endPair: ( 2 , 9 ) )
318+ range: . init( startPair: ( 0 , 0 ) , endPair: ( 8 , 1 ) )
319319 ) ,
320320 . init(
321321 signature: " @SomeWrapper public private(set) var a: Int " ,
322322 name: " a " ,
323- range: . init( startPair: ( 1 , 0 ) , endPair: ( 7 , 4 ) )
323+ range: . init( startPair: ( 1 , 4 ) , endPair: ( 7 , 5 ) )
324324 ) ,
325325 ] ) ,
326326 contextRange: . init( startPair: ( 0 , 0 ) , endPair: ( 8 , 1 ) ) ,
@@ -462,7 +462,7 @@ final class SwiftFocusedCodeFinder_FocusedCode_Tests: XCTestCase {
462462final class SwiftFocusedCodeFinder_Import_Tests : XCTestCase {
463463 func test_parsing_imports( ) {
464464 let code = """
465- import OpTop
465+ import OnTop
466466 import Second
467467 import Third
468468
0 commit comments