Package org.openquark.cal.compiler.CompilerMessage

Examples of org.openquark.cal.compiler.CompilerMessage.Severity


        SourceModel.ModuleDefn moduleDefn = SourceModel.ModuleDefn.make(moduleName, new SourceModel.Import[] { SourceModel.Import.make(CAL_Prelude.MODULE_NAME) }, null);
        ModuleSourceDefinition moduleSourceDefn = new SourceModelModuleSource(moduleDefn);

        try {
            CompilerMessageLogger logger = new MessageLogger();
            Severity severity = workspaceManager.makeModule(moduleSourceDefn, logger);
           
            assertTrue(severity.compareTo(Severity.ERROR) < 0);

            //todo-jowong these assertions should be true, but are currently false because
            //            makeModule() doesn't register the newly created module with the workspace
            /*
            assertTrue(workspaceManager.containsModule(moduleName));
View Full Code Here


       
        ModuleSourceDefinitionGroup mdg = new ModuleSourceDefinitionGroup(moduleSourceDefns);

        try {
            CompilerMessageLogger logger = new MessageLogger();
            Severity severity = workspaceManager.makeModules(moduleNames, mdg, logger);
           
            assertTrue(severity.compareTo(Severity.ERROR) < 0);

            //todo-jowong these assertions should be true, but are currently false because
            //            makeModule() doesn't register the newly created module with the workspace
            /*
            assertTrue(workspaceManager.containsModule(moduleNames[0]));
View Full Code Here

        ModuleSourceDefinition[] moduleSourceDefns = { moduleSourceDefn1, moduleSourceDefn2 };
       
        ModuleSourceDefinitionGroup mdg = new ModuleSourceDefinitionGroup(moduleSourceDefns);

        CompilerMessageLogger logger = new MessageLogger();
        Severity severity = workspaceManager.makeModules(moduleNames, mdg, logger);
       
        assertTrue(severity.compareTo(Severity.ERROR) < 0);
       
        Status status = new Status("Removal of test modules");
        workspaceManager.removeModule(moduleNames[0], status);
       
        assertTrue(status.isOK());
View Full Code Here

       
        SourceModel.ModuleDefn moduleDefn = SourceModelUtilities.TextParsing.parseModuleDefnIntoSourceModel(myFunModule);
        ModuleSourceDefinition moduleSourceDefn = new SourceModelModuleSource(moduleDefn);
       
        CompilerMessageLogger logger = new MessageLogger();
        Severity severity = bcs.getWorkspaceManager().makeModule(moduleSourceDefn, logger);
        assertTrue(severity.compareTo(Severity.ERROR) < 0);
    }
View Full Code Here

TOP

Related Classes of org.openquark.cal.compiler.CompilerMessage.Severity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.