Commit e815644
[cfe] Split FragmentFactory from FragmentFactoryResult
This adds NativeMethodRegistry and CompilationUnitRegistry to decouple
the FragmentFactoryImpl from FragmentFactoryResult. FragmentFactoryResult
is removed and instead NativeMethodRegistry and CompilationUnitRegistry
is passed to the FragmentFactoryImpl to collect data during outline
building. This also avoids the need for storing the FragmentFactory
inside the SourceCompilationUnitImpl.
Change-Id: I58c475f22e6596d908cb4982716b7ed01dbbba62
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/438160
Reviewed-by: Chloe Stefantsova <[email protected]>
Commit-Queue: Johnni Winther <[email protected]>1 parent 856e0ba commit e815644
File tree
8 files changed
+234
-230
lines changed- pkg/front_end
- lib/src
- builder
- source
- test
8 files changed
+234
-230
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
152 | | - | |
| 151 | + | |
153 | 152 | | |
154 | 153 | | |
155 | 154 | | |
| |||
172 | 171 | | |
173 | 172 | | |
174 | 173 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | 174 | | |
179 | 175 | | |
180 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
| |||
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
27 | | - | |
28 | | - | |
29 | 25 | | |
30 | 26 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 27 | | |
61 | 28 | | |
62 | 29 | | |
| |||
0 commit comments