@@ -610,7 +610,7 @@ public struct TypeSyntax: TypeSyntaxProtocol, SyntaxHashable {
610610
611611 public init ? < S: SyntaxProtocol > ( _ node: S ) {
612612 switch node. raw. kind {
613- case . arrayType, . attributedType, . classRestrictionType, . compositionType, . constrainedSugarType, . dictionaryType, . functionType, . implicitlyUnwrappedOptionalType, . memberTypeIdentifier, . metatypeType, . missingType, . namedOpaqueReturnType, . optionalType, . packExpansionType, . packReferenceType, . simpleTypeIdentifier, . tupleType:
613+ case . arrayType, . attributedType, . classRestrictionType, . compositionType, . constrainedSugarType, . dictionaryType, . functionType, . implicitlyUnwrappedOptionalType, . memberTypeIdentifier, . metatypeType, . missingType, . namedOpaqueReturnType, . optionalType, . packExpansionType, . packReferenceType, . simpleTypeIdentifier, . suppressedType , . tupleType:
614614 self . _syntaxNode = node. _syntaxNode
615615 default :
616616 return nil
@@ -622,7 +622,7 @@ public struct TypeSyntax: TypeSyntaxProtocol, SyntaxHashable {
622622 /// is undefined.
623623 internal init ( _ data: SyntaxData ) {
624624 switch data. raw. kind {
625- case . arrayType, . attributedType, . classRestrictionType, . compositionType, . constrainedSugarType, . dictionaryType, . functionType, . implicitlyUnwrappedOptionalType, . memberTypeIdentifier, . metatypeType, . missingType, . namedOpaqueReturnType, . optionalType, . packExpansionType, . packReferenceType, . simpleTypeIdentifier, . tupleType:
625+ case . arrayType, . attributedType, . classRestrictionType, . compositionType, . constrainedSugarType, . dictionaryType, . functionType, . implicitlyUnwrappedOptionalType, . memberTypeIdentifier, . metatypeType, . missingType, . namedOpaqueReturnType, . optionalType, . packExpansionType, . packReferenceType, . simpleTypeIdentifier, . suppressedType , . tupleType:
626626 break
627627 default :
628628 preconditionFailure ( " Unable to create TypeSyntax from \( data. raw. kind) " )
@@ -674,6 +674,7 @@ public struct TypeSyntax: TypeSyntaxProtocol, SyntaxHashable {
674674 . node( PackExpansionTypeSyntax . self) ,
675675 . node( PackReferenceTypeSyntax . self) ,
676676 . node( SimpleTypeIdentifierSyntax . self) ,
677+ . node( SuppressedTypeSyntax . self) ,
677678 . node( TupleTypeSyntax . self)
678679 ] )
679680 }
@@ -910,6 +911,7 @@ extension Syntax {
910911 . node( SubscriptDeclSyntax . self) ,
911912 . node( SubscriptExprSyntax . self) ,
912913 . node( SuperRefExprSyntax . self) ,
914+ . node( SuppressedTypeSyntax . self) ,
913915 . node( SwitchCaseLabelSyntax . self) ,
914916 . node( SwitchCaseListSyntax . self) ,
915917 . node( SwitchCaseSyntax . self) ,
0 commit comments