Examples of addUsageWarning()


Examples of com.redhat.ceylon.compiler.typechecker.tree.Tree.ImportPath.addUsageWarning()

                else if (name.size()==1 && initialName.equals("ceylon")) {
                    importPath.addError("reserved module name: 'ceylon'");
                }
                else {
                    if (initialName.equals("ceylon")) {
                        importPath.addUsageWarning(Warning.ceylonNamespace,
                                "discouraged module name: this namespace is used by Ceylon platform modules");
                    }
                    else if (initialName.equals("java") || initialName.equals("javax")) {
                        importPath.addUnsupportedError("unsupported module name: this namespace is used by Java platform modules");
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.