@@ -884,29 +884,6 @@ public struct LabeledExprListSyntax: SyntaxCollection, SyntaxHashable {
884
884
public static let syntaxKind = SyntaxKind . labeledExprList
885
885
}
886
886
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
-
910
887
/// ### Children
911
888
///
912
889
/// ``MemberBlockItemSyntax`` `*`
@@ -1675,7 +1652,7 @@ public struct TupleTypeElementListSyntax: SyntaxCollection, SyntaxHashable {
1675
1652
1676
1653
/// ### Children
1677
1654
///
1678
- /// ( ``SimpleTypeSpecifierSyntax`` | `LifetimeTypeSpecifierSyntax`) `*`
1655
+ /// ``SimpleTypeSpecifierSyntax`` `*`
1679
1656
///
1680
1657
/// ### Contained in
1681
1658
///
@@ -1684,46 +1661,28 @@ public struct TypeSpecifierListSyntax: SyntaxCollection, SyntaxHashable {
1684
1661
public enum Element : SyntaxChildChoices , SyntaxHashable {
1685
1662
/// A specifier that can be attached to a type to eg. mark a parameter as `inout` or `consuming`
1686
1663
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 )
1693
1664
1694
1665
public var _syntaxNode : Syntax {
1695
1666
switch self {
1696
1667
case . simpleTypeSpecifier( let node) :
1697
1668
return node. _syntaxNode
1698
- case . lifetimeTypeSpecifier( let node) :
1699
- return node. _syntaxNode
1700
1669
}
1701
1670
}
1702
1671
1703
1672
public init ( _ node: SimpleTypeSpecifierSyntax ) {
1704
1673
self = . simpleTypeSpecifier( node)
1705
1674
}
1706
1675
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
-
1715
1676
public init ? ( _ node: __shared some SyntaxProtocol ) {
1716
1677
if let node = node. as ( SimpleTypeSpecifierSyntax . self) {
1717
1678
self = . simpleTypeSpecifier( node)
1718
- } else if let node = node. as ( LifetimeTypeSpecifierSyntax . self) {
1719
- self = . lifetimeTypeSpecifier( node)
1720
1679
} else {
1721
1680
return nil
1722
1681
}
1723
1682
}
1724
1683
1725
1684
public static var structure : SyntaxNodeStructure {
1726
- return . choices( [ . node( SimpleTypeSpecifierSyntax . self) , . node ( LifetimeTypeSpecifierSyntax . self ) ] )
1685
+ return . choices( [ . node( SimpleTypeSpecifierSyntax . self) ] )
1727
1686
}
1728
1687
1729
1688
/// Checks if the current syntax node can be cast to ``SimpleTypeSpecifierSyntax``.
@@ -1747,40 +1706,6 @@ public struct TypeSpecifierListSyntax: SyntaxCollection, SyntaxHashable {
1747
1706
public func cast( _ syntaxType: SimpleTypeSpecifierSyntax . Type ) -> SimpleTypeSpecifierSyntax {
1748
1707
return self . as ( SimpleTypeSpecifierSyntax . self) !
1749
1708
}
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
- }
1784
1709
}
1785
1710
1786
1711
public let _syntaxNode : Syntax
0 commit comments