Files
swift-mirror/test/SymbolGraph/Symbols/Kinds/Function.swift
Ashley Garland 72715eaf71 SymbolGraph: Add more granular kinds
This is necessary to disambiguate some symbols with the same path components
and makes the data clearer to debug.

rdar://problem/59841727
2020-03-02 12:34:03 -08:00

11 lines
424 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-build-swift %s -module-name Function -emit-module -emit-module-path %t/
// RUN: %target-swift-symbolgraph-extract -module-name Function -I %t -pretty-print -output-dir %t
// RUN: %FileCheck %s --input-file %t/Function.symbols.json
// CHECK: "identifier": "swift.func"
// CHECK-NEXT: "displayName": "Function"
// CHECK: pathComponents
// CHECK-NEXT: "foo()"
public func foo() {}