mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When enabled, send a notification before/after every "compilation", which for now means `performSema`. This piggy-backs and modifies some existing code that we had for "tracing" operations in sourcekitd that unfortunately was untested. At least now some of the basic parts are tested via the new notifications. Part of rdar://38438512
12 lines
559 B
Swift
12 lines
559 B
Swift
// RUN: %sourcekitd-test -req=track-compiles == -req=complete %s -offset=0 -- %s | %FileCheck %s -check-prefix=COMPILE_1
|
|
// COMPILE_1: {
|
|
// COMPILE_1: key.notification: source.notification.compile-will-start,
|
|
// COMPILE_1: key.filepath: "SOURCE_DIR{{.*}}code-completion.swift",
|
|
// 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 |