Commit 6b89f1e
committed
[NFC] Parse: Contextualize accessor introducer.
To the routine that parses the introducer for an accessor whether it is
would be first accessor, pass whether it would be the first accessor;
from it, return whether the accessor is from an unavailable feature.
These both enable expected behavior when an experimental feature is
disabled: the former enables maintaining source compatibility with code
that uses the introducer name as a function name which is called with a
trailing closure as the first expression in an implicit getter. The
latter enables suppressing duplicative diagnostics.1 parent ecba5db commit 6b89f1e
1 file changed
+15
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7904 | 7904 | | |
7905 | 7905 | | |
7906 | 7906 | | |
7907 | | - | |
7908 | | - | |
| 7907 | + | |
| 7908 | + | |
| 7909 | + | |
7909 | 7910 | | |
7910 | 7911 | | |
7911 | 7912 | | |
| |||
8144 | 8145 | | |
8145 | 8146 | | |
8146 | 8147 | | |
8147 | | - | |
8148 | | - | |
| 8148 | + | |
| 8149 | + | |
| 8150 | + | |
8149 | 8151 | | |
8150 | 8152 | | |
8151 | 8153 | | |
| |||
8172 | 8174 | | |
8173 | 8175 | | |
8174 | 8176 | | |
8175 | | - | |
| 8177 | + | |
| 8178 | + | |
| 8179 | + | |
8176 | 8180 | | |
8177 | 8181 | | |
8178 | 8182 | | |
| |||
8246 | 8250 | | |
8247 | 8251 | | |
8248 | 8252 | | |
| 8253 | + | |
8249 | 8254 | | |
8250 | 8255 | | |
8251 | 8256 | | |
8252 | 8257 | | |
8253 | 8258 | | |
8254 | | - | |
| 8259 | + | |
| 8260 | + | |
8255 | 8261 | | |
8256 | 8262 | | |
8257 | 8263 | | |
8258 | 8264 | | |
8259 | 8265 | | |
8260 | 8266 | | |
| 8267 | + | |
| 8268 | + | |
| 8269 | + | |
8261 | 8270 | | |
8262 | 8271 | | |
8263 | 8272 | | |
| |||
0 commit comments