@@ -884,29 +884,6 @@ public struct LabeledExprListSyntax: SyntaxCollection, SyntaxHashable {
884884 public static let syntaxKind = SyntaxKind . labeledExprList
885885}
886886
887- /// - Note: Requires experimental feature `nonescapableTypes`.
888- ///
889- /// ### Children
890- ///
891- /// `LifetimeSpecifierArgumentSyntax` `*`
892- #if compiler(>=5.8)
893- @_spi ( ExperimentalLanguageFeatures)
894- #endif
895- public struct LifetimeSpecifierArgumentListSyntax : SyntaxCollection , SyntaxHashable {
896- public typealias Element = LifetimeSpecifierArgumentSyntax
897-
898- public let _syntaxNode : Syntax
899-
900- public init ? ( _ node: some SyntaxProtocol ) {
901- guard node. raw. kind == . lifetimeSpecifierArgumentList else {
902- return nil
903- }
904- self . _syntaxNode = node. _syntaxNode
905- }
906-
907- public static let syntaxKind = SyntaxKind . lifetimeSpecifierArgumentList
908- }
909-
910887/// ### Children
911888///
912889/// ``MemberBlockItemSyntax`` `*`
@@ -1675,7 +1652,7 @@ public struct TupleTypeElementListSyntax: SyntaxCollection, SyntaxHashable {
16751652
16761653/// ### Children
16771654///
1678- /// ( ``SimpleTypeSpecifierSyntax`` | `LifetimeTypeSpecifierSyntax`) `*`
1655+ /// ``SimpleTypeSpecifierSyntax`` `*`
16791656///
16801657/// ### Contained in
16811658///
@@ -1684,46 +1661,28 @@ public struct TypeSpecifierListSyntax: SyntaxCollection, SyntaxHashable {
16841661 public enum Element : SyntaxChildChoices , SyntaxHashable {
16851662 /// A specifier that can be attached to a type to eg. mark a parameter as `inout` or `consuming`
16861663 case simpleTypeSpecifier( SimpleTypeSpecifierSyntax )
1687- /// A specifier that specifies function parameter on whose lifetime a type depends
1688- /// - Note: Requires experimental feature `nonescapableTypes`.
1689- #if compiler(>=5.8)
1690- @_spi ( ExperimentalLanguageFeatures)
1691- #endif
1692- case lifetimeTypeSpecifier( LifetimeTypeSpecifierSyntax )
16931664
16941665 public var _syntaxNode : Syntax {
16951666 switch self {
16961667 case . simpleTypeSpecifier( let node) :
16971668 return node. _syntaxNode
1698- case . lifetimeTypeSpecifier( let node) :
1699- return node. _syntaxNode
17001669 }
17011670 }
17021671
17031672 public init ( _ node: SimpleTypeSpecifierSyntax ) {
17041673 self = . simpleTypeSpecifier( node)
17051674 }
17061675
1707- /// - Note: Requires experimental feature `nonescapableTypes`.
1708- #if compiler(>=5.8)
1709- @_spi ( ExperimentalLanguageFeatures)
1710- #endif
1711- public init ( _ node: LifetimeTypeSpecifierSyntax ) {
1712- self = . lifetimeTypeSpecifier( node)
1713- }
1714-
17151676 public init ? ( _ node: __shared some SyntaxProtocol ) {
17161677 if let node = node. as ( SimpleTypeSpecifierSyntax . self) {
17171678 self = . simpleTypeSpecifier( node)
1718- } else if let node = node. as ( LifetimeTypeSpecifierSyntax . self) {
1719- self = . lifetimeTypeSpecifier( node)
17201679 } else {
17211680 return nil
17221681 }
17231682 }
17241683
17251684 public static var structure : SyntaxNodeStructure {
1726- return . choices( [ . node( SimpleTypeSpecifierSyntax . self) , . node ( LifetimeTypeSpecifierSyntax . self ) ] )
1685+ return . choices( [ . node( SimpleTypeSpecifierSyntax . self) ] )
17271686 }
17281687
17291688 /// Checks if the current syntax node can be cast to ``SimpleTypeSpecifierSyntax``.
@@ -1747,40 +1706,6 @@ public struct TypeSpecifierListSyntax: SyntaxCollection, SyntaxHashable {
17471706 public func cast( _ syntaxType: SimpleTypeSpecifierSyntax . Type ) -> SimpleTypeSpecifierSyntax {
17481707 return self . as ( SimpleTypeSpecifierSyntax . self) !
17491708 }
1750-
1751- /// Checks if the current syntax node can be cast to `LifetimeTypeSpecifierSyntax`.
1752- ///
1753- /// - Returns: `true` if the node can be cast, `false` otherwise.
1754- /// - Note: Requires experimental feature `nonescapableTypes`.
1755- #if compiler(>=5.8)
1756- @_spi ( ExperimentalLanguageFeatures)
1757- #endif
1758- public func `is`( _ syntaxType: LifetimeTypeSpecifierSyntax . Type ) -> Bool {
1759- return self . as ( syntaxType) != nil
1760- }
1761-
1762- /// Attempts to cast the current syntax node to `LifetimeTypeSpecifierSyntax`.
1763- ///
1764- /// - Returns: An instance of `LifetimeTypeSpecifierSyntax`, or `nil` if the cast fails.
1765- /// - Note: Requires experimental feature `nonescapableTypes`.
1766- #if compiler(>=5.8)
1767- @_spi ( ExperimentalLanguageFeatures)
1768- #endif
1769- public func `as`( _ syntaxType: LifetimeTypeSpecifierSyntax . Type ) -> LifetimeTypeSpecifierSyntax ? {
1770- return LifetimeTypeSpecifierSyntax . init ( self )
1771- }
1772-
1773- /// Force-casts the current syntax node to `LifetimeTypeSpecifierSyntax`.
1774- ///
1775- /// - Returns: An instance of `LifetimeTypeSpecifierSyntax`.
1776- /// - Warning: This function will crash if the cast is not possible. Use `as` to safely attempt a cast.
1777- /// - Note: Requires experimental feature `nonescapableTypes`.
1778- #if compiler(>=5.8)
1779- @_spi ( ExperimentalLanguageFeatures)
1780- #endif
1781- public func cast( _ syntaxType: LifetimeTypeSpecifierSyntax . Type ) -> LifetimeTypeSpecifierSyntax {
1782- return self . as ( LifetimeTypeSpecifierSyntax . self) !
1783- }
17841709 }
17851710
17861711 public let _syntaxNode : Syntax
0 commit comments