Files
swift-mirror/test/SymbolGraph/Symbols/DocumentationMetadata.swift
QuietMisdreavus f674b473ec introduce a @_documentation(...) attribute to influence SymbolGraphGen (#60242)
* add @_documentation(...) attribute to influence SymbolGraphGen

rdar://79049241
2022-09-06 14:12:42 -06:00

12 lines
553 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-build-swift %s -module-name DocumentationMetadata -emit-module -emit-module-path %t/
// RUN: %target-swift-symbolgraph-extract -module-name DocumentationMetadata -I %t -pretty-print -output-dir %t
// RUN: %FileCheck %s --input-file %t/DocumentationMetadata.symbols.json
// CHECK-DAG: "metadata": "cool_stuff"
@_documentation(metadata: cool_stuff) public class SomeClass {}
// CHECK-DAG: "metadata": "this is a longer string"
@_documentation(metadata: "this is a longer string") public class OtherClass {}