mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Some of the tests now depend on features provided by Swift Syntax, and will fail to pass if building without Swift Syntax support. This commits marks all the tests I know fail to pass when Swift Syntax is disabled. - #70281 modified `ASTGen/verify-parse.swift` - #70287 created `refactoring/SyntacticRename/operator.swift` and `SourceKit/RelatedIdents/operator.swift` - #70389 modified `SourceKit/Refactoring/basic.swift` and indirectly modified all `refactoring/ExtractFunction/*` tests.
20 lines
498 B
Swift
20 lines
498 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: split-file --leading-lines %s %t
|
|
|
|
// REQUIRES: swift_swift_parser
|
|
|
|
//--- a.swift
|
|
|
|
struct Foo {}
|
|
// RUN: %sourcekitd-test -req=related-idents -pos=%(line + 1):6 %t/a.swift -- %t/a.swift | %FileCheck %s
|
|
func +(x: Foo, y: Foo) {}
|
|
Foo() + Foo()
|
|
|
|
//--- dummy.swift
|
|
|
|
// CHECK: START RANGES
|
|
// CHECK: [[# @LINE - 6 ]]:6 - 1 - source.syntacticrename.definition
|
|
// CHECK: [[# @LINE - 6 ]]:7 - 1 - source.syntacticrename.call
|
|
// CHECK: END RANGES
|
|
// CHECK: NAME: +(_:_:)
|