Commit 4ddb83e
[parser] Dot shorthands: Remove synthetic token in parser.
Context:
A while back, I inserted a synthetic token in the parser to allow us to parse without crashing the analyzer while I worked on the CFE. Now that both implementations are up and working, we can remove this synthetic token and allow the parser to parse as if we had enabled dot shorthands by default, and produce an error if the experiment isn't enabled.
This change allows a bunch of different language tests to start passing since they were blocked on the weird synthetic token messing up the parsing stream.
Bug: #59758
Change-Id: I792e3b917a76241b04ee708de06f670bbde64036
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/423563
Reviewed-by: Chloe Stefantsova <[email protected]>
Commit-Queue: Kallen Tu <[email protected]>1 parent 16d6594 commit 4ddb83e
File tree
6 files changed
+25
-39
lines changed- pkg
- front_end
- lib/src/kernel
- parser_testcases/dot_shorthands
- tests/language
- dot_shorthands/simple
6 files changed
+25
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5844 | 5844 | | |
5845 | 5845 | | |
5846 | 5846 | | |
5847 | | - | |
5848 | | - | |
5849 | | - | |
5850 | | - | |
5851 | | - | |
5852 | | - | |
5853 | | - | |
5854 | | - | |
| 5847 | + | |
5855 | 5848 | | |
5856 | 5849 | | |
5857 | 5850 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10033 | 10033 | | |
10034 | 10034 | | |
10035 | 10035 | | |
10036 | | - | |
10037 | 10036 | | |
10038 | 10037 | | |
10039 | 10038 | | |
| |||
10055 | 10054 | | |
10056 | 10055 | | |
10057 | 10056 | | |
10058 | | - | |
10059 | | - | |
10060 | | - | |
10061 | | - | |
10062 | | - | |
10063 | 10057 | | |
10064 | 10058 | | |
10065 | 10059 | | |
10066 | 10060 | | |
10067 | | - | |
10068 | | - | |
10069 | | - | |
10070 | | - | |
10071 | | - | |
10072 | | - | |
10073 | | - | |
10074 | | - | |
10075 | | - | |
10076 | | - | |
10077 | | - | |
10078 | | - | |
| 10061 | + | |
| 10062 | + | |
| 10063 | + | |
| 10064 | + | |
10079 | 10065 | | |
10080 | | - | |
10081 | | - | |
| 10066 | + | |
| 10067 | + | |
| 10068 | + | |
| 10069 | + | |
| 10070 | + | |
| 10071 | + | |
| 10072 | + | |
| 10073 | + | |
10082 | 10074 | | |
10083 | 10075 | | |
10084 | 10076 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | 107 | | |
109 | 108 | | |
110 | 109 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
6 | | - | |
| 4 | + | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
13 | | - | |
| 11 | + | |
14 | 12 | | |
15 | 13 | | |
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
| 254 | + | |
253 | 255 | | |
254 | 256 | | |
255 | 257 | | |
| |||
258 | 260 | | |
259 | 261 | | |
260 | 262 | | |
| 263 | + | |
| 264 | + | |
261 | 265 | | |
262 | 266 | | |
263 | 267 | | |
| |||
0 commit comments