Package avrora.syntax

Examples of avrora.syntax.SimplifierError


            if (shouldPass) {
                if (t == null) // no exceptions encountered, passed.
                    return new TestResult.TestSuccess();
                if (t instanceof SimplifierError) { // encountered compilation error.
                    SimplifierError ce = (SimplifierError)t;
                    return new TestResult.ExpectedPass(ce);
                }
            } else {
                if (t == null) // expected a compilation error, but passed.
                    return new TestResult.ExpectedError(error);

                if (t instanceof SimplifierError) {
                    SimplifierError ce = (SimplifierError)t;
                    if (ce.getErrorClass().equals(error)) // correct error encountered.
                        return new TestResult.TestSuccess();
                    else // incorrect compilation error.
                        return new TestResult.IncorrectError(error, ce);
                }
            }
View Full Code Here


*
* @author Ben L. Titzer
*/
public class ErrorReporter {
    protected void error(String report, String name, ProgramPoint p) {
        throw new SimplifierError(p, report, name, StringUtil.EMPTY_STRING_ARRAY);
    }
View Full Code Here

        throw new SimplifierError(p, report, name, StringUtil.EMPTY_STRING_ARRAY);
    }

    protected void error(String report, String name, String p1, ProgramPoint p) {
        String[] ps = {p1};
        throw new SimplifierError(p, report, name, ps);
    }
View Full Code Here

        throw new SimplifierError(p, report, name, ps);
    }

    protected void error(String report, String name, String p1, String p2, ProgramPoint p) {
        String[] ps = {p1, p2};
        throw new SimplifierError(p, report, name, ps);
    }
View Full Code Here

        throw new SimplifierError(p, report, name, ps);
    }

    protected void error(String report, String name, String p1, String p2, String p3, ProgramPoint p) {
        String[] ps = {p1, p2, p3};
        throw new SimplifierError(p, report, name, ps);
    }
View Full Code Here

TOP

Related Classes of avrora.syntax.SimplifierError

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.