forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedits.swift
44 lines (43 loc) · 1.66 KB
/
edits.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// RUN: %sourcekitd-test -req=track-compiles \
// RUN: == -req=sema %s -- %s \
// RUN: == -req=edit %s -replace="" | %FileCheck %s -check-prefix=COMPILE_1
// COMPILE_1: {
// COMPILE_1: key.notification: source.notification.compile-will-start,
// COMPILE_1: key.compileid: [[CID1:".*"]]
// COMPILE_1: }
// COMPILE_1: {
// COMPILE_1: key.notification: source.notification.compile-did-finish,
// COMPILE_1: key.compileid: [[CID1]]
// COMPILE_1: }
// COMPILE_1-NOT: compile-will-start
// COMPILE_1-NOT: compile-did-finish
// RUN: %sourcekitd-test -req=track-compiles \
// RUN: == -req=sema %s -- %s \
// RUN: == -req=edit %s -replace="asdf" \
// RUN: == -req=edit %s -replace="//" | %FileCheck %s -check-prefix=COMPILE_3
// COMPILE_3: {
// COMPILE_3: key.notification: source.notification.compile-will-start,
// COMPILE_3: key.compileid: [[CID1:".*"]]
// COMPILE_3: }
// COMPILE_3: {
// COMPILE_3: key.notification: source.notification.compile-did-finish,
// COMPILE_3: key.compileid: [[CID1]]
// COMPILE_3: }
// COMPILE_3: {
// COMPILE_3: key.notification: source.notification.compile-will-start,
// COMPILE_3: key.compileid: [[CID2:".*"]]
// COMPILE_3: }
// COMPILE_3: {
// COMPILE_3: key.notification: source.notification.compile-did-finish,
// COMPILE_3: key.compileid: [[CID2]]
// COMPILE_3: }
// COMPILE_3: {
// COMPILE_3: key.notification: source.notification.compile-will-start,
// COMPILE_3: key.compileid: [[CID3:".*"]]
// COMPILE_3: }
// COMPILE_3: {
// COMPILE_3: key.notification: source.notification.compile-did-finish,
// COMPILE_3: key.compileid: [[CID3]]
// COMPILE_3: }
// COMPILE_3-NOT: compile-will-start
// COMPILE_3-NOT: compile-did-finish