mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
11 lines
585 B
Swift
11 lines
585 B
Swift
// RUN: %empty-directory(%t)
|
|
// 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
|
|
// RUN: %FileCheck %s --input-file %t/BatchMode.symbols.json
|
|
|
|
// changes to the doc comment cache created situations where building in batch mode caused symbol
|
|
// graphs to lose source range information for individual doc comment lines.
|
|
|
|
// CHECK: "range":{"start":{"line":[[# @LINE]],"character":4},"end":{"line":[[# @LINE]],"character":22}}
|
|
/// This is some func.
|
|
public func someFunc() {}
|