You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Changelog.md
-2
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,6 @@ Note: This is in reverse chronological order, so newer entries are added to the
4
4
5
5
## Swift 5.3
6
6
7
-
* Introduced `integerValue` and `floatingValue` properties to `IntegerLiteralExprSyntax` and `FloatLiteralExprSyntax`, respectively. Converted their `digits` and `floatingDigits` setters, respectively, into throwing functions.
8
-
9
7
* Introduced `FunctionCallExprSyntax.additionalTrailingClosures` property with type `MultipleTrailingClosureElementListSyntax?` for supporting [SE-0279 Multiple Trailing Closures](https://github.com/apple/swift-evolution/blob/master/proposals/0279-multiple-trailing-closures.md).
10
8
11
9
* Introduced `syntaxNodeType` property for all types conforming to `SyntaxProtocol`, which returns the underlying syntax node type. It is primarily intended as a debugging aid during development.
// We know that the SyntaxData is valid since we are walking a valid syntax tree and haven't modified the syntax data. Thus the initializer below will never return nil.
96
-
letnode= ${node.name}(data)!
97
-
%else:
98
94
letnode= ${node.name}(data)
99
-
% end
100
95
// Accessing _syntaxNode directly is faster than calling Syntax(node)
Copy file name to clipboardExpand all lines: Sources/SwiftSyntax/SyntaxVisitor.swift.gyb
-5
Original file line number
Diff line number
Diff line change
@@ -86,12 +86,7 @@ open class SyntaxVisitor {
86
86
}
87
87
visitPost(node)
88
88
%else:
89
-
% if node.must_uphold_invariant:
90
-
// We know that the SyntaxData is valid since we are walking a valid syntax tree and haven't modified the syntax data. Thus the initializer below will never return nil.
// We know that the SyntaxData is valid since we are walking a valid syntax tree and haven't modified the syntax data. Thus the initializer below will never return nil.
2139
-
letnode=FloatLiteralExprSyntax(data)!
2138
+
letnode=FloatLiteralExprSyntax(data)
2140
2139
// Accessing _syntaxNode directly is faster than calling Syntax(node)
2141
2140
visitPre(node._syntaxNode)
2142
2141
defer{visitPost(node._syntaxNode)}
@@ -2206,8 +2205,7 @@ open class SyntaxRewriter {
2206
2205
2207
2206
/// Implementation detail of visit(_:). Do not call directly.
// We know that the SyntaxData is valid since we are walking a valid syntax tree and haven't modified the syntax data. Thus the initializer below will never return nil.
2210
-
letnode=IntegerLiteralExprSyntax(data)!
2208
+
letnode=IntegerLiteralExprSyntax(data)
2211
2209
// Accessing _syntaxNode directly is faster than calling Syntax(node)
// We know that the SyntaxData is valid since we are walking a valid syntax tree and haven't modified the syntax data. Thus the initializer below will never return nil.
2882
-
letnode=FloatLiteralExprSyntax(data)!
2881
+
letnode=FloatLiteralExprSyntax(data)
2883
2882
letneedsChildren=(visit(node)==.visitChildren)
2884
2883
// Avoid calling into visitChildren if possible.
2885
2884
if needsChildren && node.raw.numberOfChildren >0{
@@ -2956,8 +2955,7 @@ open class SyntaxVisitor {
2956
2955
2957
2956
/// Implementation detail of doVisit(_:_:). Do not call directly.
// We know that the SyntaxData is valid since we are walking a valid syntax tree and haven't modified the syntax data. Thus the initializer below will never return nil.
0 commit comments