Skip to content

Commit 99715ca

Browse files
committed
Add UserInaccessible to attributes that should be hidden
1 parent 5e9dcce commit 99715ca

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

gyb_syntax_support/AttributeKinds.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ def __init__(self, name, swift_name=None):
289289
code=45),
290290
DeclAttribute('__raw_doc_comment', 'RawDocComment',
291291
OnAnyDecl,
292+
UserInaccessible,
292293
RejectByParser,
293294
NotSerialized,
294295
ABIStableToAdd, ABIStableToRemove, APIStableToAdd, APIStableToRemove,
@@ -300,6 +301,7 @@ def __init__(self, name, swift_name=None):
300301
code=50),
301302
DeclAttribute('__objc_bridged', 'ObjCBridged',
302303
OnClass,
304+
UserInaccessible,
303305
RejectByParser,
304306
NotSerialized,
305307
ABIStableToAdd, ABIStableToRemove, APIStableToAdd, APIStableToRemove,
@@ -315,6 +317,7 @@ def __init__(self, name, swift_name=None):
315317
code=53),
316318
DeclAttribute('__synthesized_protocol', 'SynthesizedProtocol',
317319
OnConcreteNominalType,
320+
UserInaccessible,
318321
RejectByParser,
319322
NotSerialized,
320323
ABIStableToAdd, ABIStableToRemove, APIStableToAdd, APIStableToRemove,
@@ -382,12 +385,15 @@ def __init__(self, name, swift_name=None):
382385
ABIStableToAdd, ABIStableToRemove, APIStableToAdd, APIStableToRemove,
383386
code=68),
384387
SimpleDeclAttribute('_staticInitializeObjCMetadata', 'StaticInitializeObjCMetadata',
385-
OnClass, LongAttribute, RejectByParser,
388+
OnClass,
389+
UserInaccessible,
390+
LongAttribute, RejectByParser,
386391
NotSerialized,
387392
ABIStableToAdd, ABIStableToRemove, APIStableToAdd, APIStableToRemove,
388393
code=69),
389394
DeclAttribute('_restatedObjCConformance', 'RestatedObjCConformance',
390395
OnProtocol,
396+
UserInaccessible,
391397
LongAttribute, RejectByParser,
392398
NotSerialized,
393399
ABIStableToAdd, ABIStableToRemove, APIStableToAdd, APIStableToRemove,
@@ -811,6 +817,7 @@ def __init__(self, name, swift_name=None):
811817
ContextualDeclAttributeAlias('open', 'AccessControl'),
812818
DeclAttribute('__setter_access', 'SetterAccess',
813819
OnVar, OnSubscript,
820+
UserInaccessible,
814821
DeclModifier, RejectByParser,
815822
NotSerialized,
816823
ABIStableToAdd, ABIStableToRemove, APIStableToAdd, APIStableToRemove,

0 commit comments

Comments
 (0)