Package ceylon.language.meta.declaration

Examples of ceylon.language.meta.declaration.Module


    private Declaration module(String version) {
        String moduleName = moduleName();
        if (moduleName == null || moduleName.isEmpty()) {
            throw parseError("Missing module name");
        }
        Module module = makeModule(moduleName, version);
        if (atEnd()) {
            return module;
        }
        return package_(module);
       
View Full Code Here


   
    protected Module makeModule(String moduleName, String version) {
        if (version == null) {
            throw metamodelError("Runtime versions not yet supported");
        }
        Module module = ceylon.language.meta.modules_.get_().find(moduleName, version);
        if (module == null) {
            throw metamodelNotFound("Could not find module: " + moduleName + ", version: " + version);
        }
        return module;
    }
View Full Code Here

TOP

Related Classes of ceylon.language.meta.declaration.Module

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.