JS: support inlining in new pipeline

This commit is contained in:
Alexey Andreev
2017-02-10 19:31:52 +03:00
parent a414cd64c5
commit 83140bc5f7
15 changed files with 157 additions and 62 deletions
@@ -17,6 +17,7 @@ public class JsProgramFragment {
private final JsGlobalBlock initializerBlock = new JsGlobalBlock();
private final List<JsNameBinding> nameBindings = new ArrayList<JsNameBinding>();
private final Map<JsName, JsClassModel> classes = new LinkedHashMap<JsName, JsClassModel>();
private final Map<String, JsExpression> inlineModuleMap = new LinkedHashMap<String, JsExpression>();
public JsProgramFragment(@NotNull JsScope scope) {
this.scope = scope;
@@ -61,4 +62,9 @@ public class JsProgramFragment {
public Map<JsName, JsClassModel> getClasses() {
return classes;
}
@NotNull
public Map<String, JsExpression> getInlineModuleMap() {
return inlineModuleMap;
}
}