Files
swift-mirror/test/IDE/print_set_accessor.swift
Ben Barham 1aee0af1d4 [SymbolGraph] Output custom attributes
Custom attributes were being skipped as their attribute name started
with a "_". Underscored attributes are typically unstable and thus
shouldn't be printed, but "_" is not being used for that purpose in the
case of "_custom".

Rather than checking for "_" or "__", just use `UserInaccessible`. This
property is used for attributes that shouldn't be shown to users in eg.
completion/printing/etc.

Resolves rdar://99029554.
2022-10-31 15:16:59 -07:00

7 lines
221 B
Swift

public struct SomeType {
public private(set) var privateSetter: Int
}
// CHECK: public private(set) var privateSetter: Int
// RUN: %target-swift-ide-test -print-swift-file-interface -source-filename %s | %FileCheck %s