Skip to content

Commit 8f9546d

Browse files
authored
Add _noMetadata attribute (#817)
* Add _noMetadata attribute Adds the @_noMetadata attribute that is required for layout based pre-specializations * Generate gyb files for @_noMetadata
1 parent 643f3de commit 8f9546d

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Sources/SwiftParser/gyb_generated/DeclarationAttribute.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ extension Parser {
119119
case _spiOnly = "_spiOnly"
120120
case _documentation = "_documentation"
121121
case typeWrapperIgnored = "typeWrapperIgnored"
122+
case _noMetadata = "_noMetadata"
122123
case _spi_available = "_spi_available"
123124
}
124125
}

Sources/SwiftParser/gyb_generated/TypeAttribute.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ extension Parser {
2727
case unchecked = "unchecked"
2828
case _typeSequence = "_typeSequence"
2929
case _local = "_local"
30+
case _noMetadata = "_noMetadata"
3031
case _opaqueReturnTypeOf = "_opaqueReturnTypeOf"
3132
}
3233
}

Sources/generate-swift-syntax-builder/gyb_syntax_support/AttributeKinds.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def __init__(self, name, swift_name=None):
136136
TypeAttribute('unchecked'),
137137
TypeAttribute('_typeSequence'),
138138
TypeAttribute('_local'),
139+
TypeAttribute('_noMetadata'),
139140

140141
# Generated interface attributes
141142
TypeAttribute('_opaqueReturnTypeOf'),
@@ -690,6 +691,13 @@ def __init__(self, name, swift_name=None):
690691
OnVar,
691692
ABIStableToAdd, ABIStableToRemove, APIStableToAdd, APIStableToRemove,
692693
code=137),
694+
695+
SimpleDeclAttribute('_noMetadata', 'NoMetadata',
696+
OnGenericTypeParam,
697+
UserInaccessible,
698+
NotSerialized,
699+
ABIStableToAdd, ABIBreakingToRemove, APIStableToAdd, APIStableToRemove,
700+
code=138)
693701
]
694702

695703
# Schema for declaration modifiers:

0 commit comments

Comments
 (0)