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
Remove Pull request numbers from previous Changelog entries
In new changes we won't know the PR-number up-front and thus can't put
it in the changelog until the PR is actually created. Requiring an amend
to the PR seems unfortunate, so let's just remove them.
Copy file name to clipboardExpand all lines: Changelog.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,15 @@ Note: This is in reverse chronological order, so newer entries are added to the
8
8
9
9
Use `is(ExprSyntaxProtocol.self)` etc. instead.
10
10
11
-
- Property `uniqueIdentifier` removed from syntax nodes and `SyntaxNode` ([#164](https://github.com/apple/swift-syntax/pull/164))
11
+
- Property `uniqueIdentifier` removed from syntax nodes and `SyntaxNode`
12
12
13
13
Use the newly added property `id` or the conformance to `Identifiable` instead.
14
14
15
-
- Syntax nodes and `SyntaxNode` conform to `Identifiable` ([#164](https://github.com/apple/swift-syntax/pull/164))
15
+
- Syntax nodes and `SyntaxNode` conform to `Identifiable`
16
16
17
17
`Identifiable` conformance has been added to all syntax nodes and the `SyntaxNode` type using `SyntaxIdentifier` as the identifier.
18
18
19
-
- The `walk` method on syntax nodes has been removed. ([#158](https://github.com/apple/swift-syntax/pull/158))
19
+
- The `walk` method on syntax nodes has been removed.
20
20
21
21
Instead, use the `walk` method on the `SyntaxVisitor`.
22
22
@@ -28,7 +28,7 @@ Note: This is in reverse chronological order, so newer entries are added to the
28
28
visitor.walk(tree)
29
29
```
30
30
31
-
-`SyntaxVisitor` and `SyntaxAnyVisitor` are a `class` and no longer a `protocol`. ([#158](https://github.com/apple/swift-syntax/pull/158))
31
+
-`SyntaxVisitor` and `SyntaxAnyVisitor` are a `class` and no longer a `protocol`.
32
32
33
33
For performance reasons the `SyntaxVisitor` and `SyntaxAnyVisitor` were migrated from being a protocol to being a class.
34
34
@@ -50,7 +50,7 @@ Note: This is in reverse chronological order, so newer entries are added to the
50
50
}
51
51
```
52
52
53
-
- A new type `SyntaxEnum` has been introduced ([#155](https://github.com/apple/swift-syntax/pull/155))
53
+
- A new type `SyntaxEnum` has been introduced
54
54
55
55
The new type `SyntaxEnum` allow exhaustive switching over all syntax types. It can be constructed by calling `asSyntaxEnum` on `Syntax`.
56
56
@@ -68,7 +68,7 @@ Note: This is in reverse chronological order, so newer entries are added to the
68
68
69
69
For increased performance, the modelling of the syntax node hierarchy has been switched from being `protocol`-based to being `struct`-based. This includes the following changes:
70
70
71
-
- The protocols `ExprSyntax`, `DeclSyntax`, `Syntax` etc. have been removed. ([#155](https://github.com/apple/swift-syntax/pull/155))
71
+
- The protocols `ExprSyntax`, `DeclSyntax`, `Syntax` etc. have been removed
72
72
73
73
For passing values of these types around, use the new type erasers `ExprSyntax`, `DeclSyntax`, `Syntax` etc. instead. To add computed properties or functions to all expression nodes, write an extension on `ExprSyntaxProtocol`. To add methods to all syntax nodes, extend `SyntaxProtcol`.
74
74
@@ -95,7 +95,7 @@ For increased performance, the modelling of the syntax node hierarchy has been s
95
95
```
96
96
97
97
98
-
- Checking a node's type can no longer be performed using the `is` operator. Use the `is(_: SyntaxProtocol)` method on any type eraser instead. ([#155](https://github.com/apple/swift-syntax/pull/155))
98
+
- Checking a node's type can no longer be performed using the `is` operator. Use the `is(_: SyntaxProtocol)` method on any type eraser instead.
99
99
100
100
```swift
101
101
// Before
@@ -115,7 +115,7 @@ For increased performance, the modelling of the syntax node hierarchy has been s
115
115
```
116
116
117
117
118
-
- Downcasting can no longer be performed using the `as` operator. For downcasting use the `as(_: SyntaxProtocol)` method on any type eraser. ([#155](https://github.com/apple/swift-syntax/pull/155))
118
+
- Downcasting can no longer be performed using the `as` operator. For downcasting use the `as(_: SyntaxProtocol)` method on any type eraser.
119
119
120
120
```swift
121
121
// Before
@@ -125,7 +125,7 @@ For increased performance, the modelling of the syntax node hierarchy has been s
125
125
exprSyntax.as(IdentifierExprSyntax.self)
126
126
```
127
127
128
-
- Upcasting needs to be performed explicitly. Use the designated initializers for this. ([#155](https://github.com/apple/swift-syntax/pull/155))
128
+
- Upcasting needs to be performed explicitly. Use the designated initializers for this.
0 commit comments