package com.redhat.ceylon.compiler.loader;

import java.util.Map;

import com.redhat.ceylon.compiler.typechecker.analyzer.ModuleManager;
import com.redhat.ceylon.compiler.typechecker.context.Context;
import com.redhat.ceylon.compiler.typechecker.util.ModuleManagerFactory;

/** ModuleManagerFactory for the JsModuleManager.
 * 
 * @author Enrique Zamudio
 */
public class JsModuleManagerFactory implements ModuleManagerFactory {

    private final Map<String, Object> clmod;

    public JsModuleManagerFactory() {
        clmod = null;
    }

    public JsModuleManagerFactory(Map<String, Object> jsonCL) {
        clmod = jsonCL;
    }

    @Override
    public ModuleManager createModuleManager(Context context) {
        return new JsModuleManager(context, clmod);
    }

}

@@ -467,16 +467,52 @@
 %3E clmod;
+%0A    private static boolean verbose;
 %0A%0A    pu
@@ -804,10 +804,160 @@
 %0A    %7D%0A%0A
+    public static void setVerbose(boolean flag) %7B%0A        verbose = flag;%0A    %7D%0A    public static boolean isVerbose() %7B%0A        return verbose;%0A    %7D%0A
 %7D%0A

add verbose flag