Package com.redhat.ceylon.compiler.typechecker.analyzer

Examples of com.redhat.ceylon.compiler.typechecker.analyzer.UsageWarning


    public void addUnsupportedError(String message) {
        addError( new UnsupportedError(this, message) );
    }
   
    public <E extends Enum<E>> void addUsageWarning(E warningName, String message) {
        addError( new UsageWarning(this, message, warningName.toString()) );
    }
View Full Code Here


    public void visitAny(Node that) {
        Iterator<Message> errorIter = that.getErrors().iterator();
        while (errorIter.hasNext()) {
            Message error = errorIter.next();
            if (error instanceof UsageWarning) {
                UsageWarning warning = (UsageWarning)error;
                E warningName = parseName(warning.getWarningName());
                if (warningName == null) {
                    continue;
                }
                Integer numSuppressed = counts.get(warningName);
                if (suppressed.get(warningName) != null) {
                    warning.setSuppressed(true);
                    counts.put(warningName, numSuppressed.intValue()+1);
                }
            }
        }
        super.visitAny(that);
View Full Code Here

TOP

Related Classes of com.redhat.ceylon.compiler.typechecker.analyzer.UsageWarning

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.