Commit ffc3079
committed
ImportManager: importing module should be in cache as well
Suppose we have this situation:
* circular1.egl imports circular2.egl.
* circular2.egl imports circular1.egl.
* We load and parse circular1.egl as the root module.
In this scenario, we want circular1.egl to be in the ImportManager
cache before parsing circular2.egl, so that it will be reused when
parsing circular2.egl.
This prevents the creation of a throwaway EglModule while parsing
circular2.egl (which is not used anyway, due to the loop over the
ancestors which is done in Import::load).1 parent 9a0b5f0 commit ffc3079
File tree
1 file changed
+6
-1
lines changed- plugins/org.eclipse.epsilon.eol.engine/src/org/eclipse/epsilon/eol
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| |||
0 commit comments