Skip to content

Commit 3761d4c

Browse files
update BatchMode test to fully match the source range data
1 parent fc38880 commit 3761d4c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/SymbolGraph/Symbols/DocComment/BatchMode.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift %s -module-name BatchMode -emit-module-path %t/BatchMode.swiftmodule -emit-symbol-graph -emit-symbol-graph-dir %t -O -enable-batch-mode -incremental
2+
// RUN: %target-build-swift %s -module-name BatchMode -emit-module-path %t/BatchMode.swiftmodule -emit-symbol-graph -emit-symbol-graph-dir %t -O -enable-batch-mode
33
// RUN: %FileCheck %s --input-file %t/BatchMode.symbols.json
44

5+
// changes to the doc comment cache created situations where building in batch mode caused symbol
6+
// graphs to lose source range information for individual doc comment lines.
7+
8+
// CHECK: "range":{"start":{"line":[[# @LINE]],"character":4},"end":{"line":[[# @LINE]],"character":22}}
59
/// This is some func.
610
public func someFunc() {}
7-
8-
// CHECK: range

0 commit comments

Comments
 (0)