Commit 92103a7
committed
[AST] Remove SourceFile::addImports
Temporarily replace with `SourceFile::setImports`
until import resolution is requestified. Now
imports are only set once for a given SourceFile.
Because we're now asserting in more places that
import resolution must have run before querying
imports, this commit also adds
`getCachedUnderlyingType` to TypeAliasDecl to stop
the ASTDumper from trying to query imports for a
-dump-parse invocation.1 parent b500f37 commit 92103a7
File tree
5 files changed
+25
-25
lines changed- include/swift/AST
- lib
- AST
- Sema
5 files changed
+25
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3032 | 3032 | | |
3033 | 3033 | | |
3034 | 3034 | | |
| 3035 | + | |
| 3036 | + | |
| 3037 | + | |
| 3038 | + | |
3035 | 3039 | | |
3036 | 3040 | | |
3037 | 3041 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
337 | 339 | | |
338 | 340 | | |
339 | 341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
634 | | - | |
| 634 | + | |
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1103 | 1103 | | |
1104 | 1104 | | |
1105 | 1105 | | |
1106 | | - | |
| 1106 | + | |
1107 | 1107 | | |
1108 | 1108 | | |
1109 | 1109 | | |
| |||
1408 | 1408 | | |
1409 | 1409 | | |
1410 | 1410 | | |
1411 | | - | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
1412 | 1415 | | |
1413 | 1416 | | |
1414 | 1417 | | |
| |||
2036 | 2039 | | |
2037 | 2040 | | |
2038 | 2041 | | |
2039 | | - | |
2040 | | - | |
2041 | | - | |
2042 | | - | |
2043 | | - | |
2044 | | - | |
2045 | | - | |
2046 | | - | |
2047 | | - | |
2048 | | - | |
2049 | | - | |
2050 | | - | |
2051 | | - | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
2052 | 2045 | | |
2053 | 2046 | | |
| 2047 | + | |
2054 | 2048 | | |
2055 | | - | |
| 2049 | + | |
2056 | 2050 | | |
2057 | 2051 | | |
2058 | 2052 | | |
| |||
2070 | 2064 | | |
2071 | 2065 | | |
2072 | 2066 | | |
2073 | | - | |
| 2067 | + | |
2074 | 2068 | | |
2075 | 2069 | | |
2076 | 2070 | | |
| |||
2112 | 2106 | | |
2113 | 2107 | | |
2114 | 2108 | | |
2115 | | - | |
| 2109 | + | |
2116 | 2110 | | |
2117 | 2111 | | |
2118 | 2112 | | |
| |||
2130 | 2124 | | |
2131 | 2125 | | |
2132 | 2126 | | |
2133 | | - | |
| 2127 | + | |
2134 | 2128 | | |
2135 | 2129 | | |
2136 | 2130 | | |
| |||
2147 | 2141 | | |
2148 | 2142 | | |
2149 | 2143 | | |
2150 | | - | |
| 2144 | + | |
2151 | 2145 | | |
2152 | 2146 | | |
2153 | 2147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| |||
0 commit comments