Java Code Examples for com.sun.tools.javac.util.JCDiagnostic#Error
The following examples show how to use
com.sun.tools.javac.util.JCDiagnostic#Error .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Operators.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 5 votes |
/** * Report an operator lookup error. */ private OperatorSymbol reportErrorIfNeeded(DiagnosticPosition pos, Tag tag, Type... args) { if (Stream.of(args).noneMatch(Type::isErroneous)) { Name opName = operatorName(tag); JCDiagnostic.Error opError = (args.length) == 1 ? Errors.OperatorCantBeApplied(opName, args[0]) : Errors.OperatorCantBeApplied1(opName, args[0], args[1]); log.error(pos, opError); } return noOpSymbol; }
Example 2
Source File: Operators.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Report an operator lookup error. */ private OperatorSymbol reportErrorIfNeeded(DiagnosticPosition pos, Tag tag, Type... args) { if (Stream.of(args).noneMatch(Type::isErroneous)) { Name opName = operatorName(tag); JCDiagnostic.Error opError = (args.length) == 1 ? Errors.OperatorCantBeApplied(opName, args[0]) : Errors.OperatorCantBeApplied1(opName, args[0], args[1]); log.error(pos, opError); } return noOpSymbol; }
Example 3
Source File: Arguments.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 4 votes |
private void report(JCDiagnostic.Error error) { // Would be good to have support for -XDrawDiagnostics here log.printRawLines(ownName + ": " + log.localize(error)); }
Example 4
Source File: Arguments.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private void report(JCDiagnostic.Error error) { // Would be good to have support for -XDrawDiagnostics here log.printRawLines(ownName + ": " + log.localize(error)); }