Skip to content

Commit 436484c

Browse files
committed
Gardening: Fix spelling mistakes in */SourceKit
* about * and * answering * because * before * cancellation * clear * comment * complete * corresponding * cursor * custom * dependencies * doesn't * expression * extension * immediately * implementation * implicit * innovation * intentionally * occasionally * oldest * parameter * property * response * reuseastcontext * snapshot * sourcekit_swift_runtime_link_flags * synchronously * target * that * unlabeled * usefulness * work Signed-off-by: Josh Soref <[email protected]>
1 parent 804e3f0 commit 436484c

31 files changed

+65
-65
lines changed

test/SourceKit/CodeComplete/cancellation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Try and schedule the cancel the cancellation as fast as possible to cancel during the first pass
22
// RUN: not %sourcekitd-test -req=complete -pos 15:35 %s -id=complete -async -- %s == -cancel=complete 2>&1 | %FileCheck --check-prefix=CANCEL_NO_CACHE %s
33

4-
// Wait 1 second for the first pass to complet and try to cancel during the second pass. This relies on the fact that the expression in line 12 is slow to type check (rdar://80582770)
4+
// Wait 1 second for the first pass to complete and try to cancel during the second pass. This relies on the fact that the expression in line 12 is slow to type check (rdar://80582770)
55
// RUN: not %sourcekitd-test -req=complete -pos 15:35 %s -id=complete -async -- %s == -shell -- sleep 1 == -cancel=complete 2>&1 | %FileCheck --check-prefix=CANCEL_NO_CACHE %s
66

77
// Built an AST inside `fast(a:)` then complete the slow operation and try to cancel it.

test/SourceKit/CodeComplete/complete_build_session.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func test() {
5555
// CHECK_SYSTEM_2-NOT: fooHelperSubFunc(
5656

5757
// -----------------------------------------------------------------------------
58-
// Test that modifications for frameworks in '-F' are immidiately propagated
58+
// Test that modifications for frameworks in '-F' are immediately propagated
5959
// while modifications for frameworks in '-Fsystem' are not.
6060

6161
// RUN: %empty-directory(%t/ModuleCache)

test/SourceKit/CodeComplete/complete_sequence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func bar(arg: Bar) {
1515
_ = arg.
1616
}
1717

18-
// NOTE: Tests for 'key.codecomplete.reuseastcontex' option.
18+
// NOTE: Tests for 'key.codecomplete.reuseastcontext' option.
1919

2020
// Disabled.
2121
// RUN: %sourcekitd-test \

test/SourceKit/CodeComplete/complete_sequence_rdar75358153.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func test(val: E) {
2222
// rdar://75358153
2323
// Previously, completing inside single expression body, then completing inside
2424
// *non* single expression body in the same function caused a crash because the
25-
// "has single expression" flag didn't cleard. This file tests the scenario not
25+
// "has single expression" flag didn't clear. This file tests the scenario not
2626
// to regress again.
2727

2828
// RUN: %empty-directory(%t)

test/SourceKit/CodeExpand/code-expand-multiple-trailing-closures.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ withMulti2UnlabeledFirst(_: <#T##() -> ()#>, b: <#T##() -> ()#>)
2222
// CHECK-NEXT: }
2323

2424
// FIXME: we may ban second argument unlabeled.
25-
withMulti2Unlabled(_: <#T##() -> ()#>, _: <#T##() -> ()#>)
26-
// CHECK: withMulti2Unlabled {
25+
withMulti2Unlabeled(_: <#T##() -> ()#>, _: <#T##() -> ()#>)
26+
// CHECK: withMulti2Unlabeled {
2727
// CHECK-NEXT: <#code#>
2828
// CHECK-NEXT: } _: {
2929
// CHECK-NEXT: <#code#>
3030
// CHECK-NEXT: }
3131

3232
// FIXME: we may ban second argument unlabeled.
33-
withMulti2Unlabled(<#T##() -> ()#>, <#T##() -> ()#>)
34-
// CHECK: withMulti2Unlabled {
33+
withMulti2Unlabeled(<#T##() -> ()#>, <#T##() -> ()#>)
34+
// CHECK: withMulti2Unlabeled {
3535
// CHECK-NEXT: <#code#>
3636
// CHECK-NEXT: } _: {
3737
// CHECK-NEXT: <#code#>

test/SourceKit/CursorInfo/cursor_swiftinterface.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func test() {
1919
//
2020
// RUN: %target-swift-frontend -I %t -module-name SomeModule -emit-module-interface-path %t/SomeModule.swiftinterface -emit-module-doc-path %t/SomeModule.swiftdoc %S/Inputs/SomeModule.swift -emit-module -o /dev/null
2121

22-
// Actual test: Check the CusorInfo results of references to symbols in that
22+
// Actual test: Check the CursorInfo results of references to symbols in that
2323
// module, including the available refactoring actions, and associated doc
2424
// comments (from the .swiftdoc file).
2525
//

test/SourceKit/CursorInfo/cursor_symbol_graph_parents.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ struct Parent {
1111

1212
/// Something about variable member
1313
let member = 1
14-
/// Something aboout method
14+
/// Something about method
1515
func method() {}
1616

1717
func localContext() {

test/SourceKit/Diagnostics/diags.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func foo(y: String) {
1313
// We shouldn't build an AST for the syntactic open
1414
// CHECK: 0 {{.*}} source.statistic.num-ast-builds
1515

16-
// Retrieving diagnostics should workd
16+
// Retrieving diagnostics should work
1717
// CHECK: {
1818
// CHECK: key.diagnostics: [
1919
// CHECK: {
@@ -30,7 +30,7 @@ func foo(y: String) {
3030
// ... and we should have built an AST for it
3131
// CHECK: 1 {{.*}} source.statistic.num-ast-builds
3232

33-
// Retrieving diagnostics again should workd
33+
// Retrieving diagnostics again should work
3434
// CHECK: {
3535
// CHECK: key.diagnostics: [
3636
// CHECK: {

test/SourceKit/DocSupport/doc_generic_type_with_self_param.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public extension Proto {
1919
// extension for `AttributesSlice1`, we replace `Self` by
2020
// `AttributesSlice1<T>` but `S` remains an generic parameter. We thus
2121
// have a type that contains both an archetype (namely `T` as the generic
22-
// paramter of `AttributedSlice1<T>`) and an unbound generic paramters.
22+
// parameter of `AttributedSlice1<T>`) and an unbound generic parameters.
2323
// This used to cause issues when printing the type.
2424
func formatted<S>(width: ListFormatStyle<S, Self>.Width) -> String {
2525
// CHECK: func formatted<S>(width width: test.ListFormatStyle<S, test.AttributesSlice1<T>>.Width) -> String
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
//
2-
// DocComent 1
2+
// DocComment 1
33
//
4-
// DocComent 2
4+
// DocComment 2

0 commit comments

Comments
 (0)