Commit 66ef66b
[analyzer] Remove CompilationUnitMemberTest._updateBeginToken.
The sole purpose of this method was in parser recovery tests, to
adjust `CompilationUnit.beginToken` after parser recovery, to work
around the fact that a mismatch in begin tokens caused
`ResultComparator` to report a failure in parser recovery.
Now that `ResultComparator` doesn't examine
`CompilationUnit.beginToken` (see
https://dart-review.googlesource.com/c/sdk/+/419521), this is
unnecessary.
Removing this logic allows `CompilationUnit.beginToken` to be changed
to a final field.
Change-Id: Ic2528b5ff9dd9f1aec0fade4499b78ff165eff02
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/419680
Commit-Queue: Paul Berry <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>1 parent f05baf5 commit 66ef66b
File tree
2 files changed
+5
-10
lines changed- pkg/analyzer
- lib/src/dart/ast
- test/src/fasta/recovery
2 files changed
+5
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3476 | 3476 | | |
3477 | 3477 | | |
3478 | 3478 | | |
3479 | | - | |
| 3479 | + | |
3480 | 3480 | | |
3481 | 3481 | | |
3482 | 3482 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | 197 | | |
203 | 198 | | |
204 | 199 | | |
| |||
0 commit comments