Home
last modified time | relevance | path

Searched refs:ErrorKind (Results 1 – 24 of 24) sorted by relevance

/external/turbine/java/com/google/turbine/parse/
DStreamLexer.java24 import com.google.turbine.diag.TurbineError.ErrorKind;
319 throw error(ErrorKind.UNEXPECTED_INPUT, ch); in next()
348 throw error(ErrorKind.EMPTY_CHARACTER_LITERAL); in next()
358 throw error(ErrorKind.UNTERMINATED_CHARACTER_LITERAL); in next()
378 throw error(ErrorKind.UNTERMINATED_STRING); in next()
396 throw error(ErrorKind.UNEXPECTED_INPUT, ch); in next()
477 throw error(ErrorKind.UNEXPECTED_INPUT, ch); in escape()
587 throw error(ErrorKind.UNEXPECTED_INPUT, ch); in readHexDigits()
622 throw error(ErrorKind.UNEXPECTED_INPUT, ch); in readHexDigits()
659 throw error(ErrorKind.UNEXPECTED_INPUT, ch); in readDigits()
[all …]
DVariableInitializerParser.java22 import com.google.turbine.diag.TurbineError.ErrorKind;
239 throw error(ErrorKind.UNEXPECTED_EOF); in dropParens()
263 throw error(ErrorKind.UNEXPECTED_EOF); in dropBraces()
342 private TurbineError error(ErrorKind kind, Object... args) { in error()
DConstExpressionParser.java24 import com.google.turbine.diag.TurbineError.ErrorKind;
302 throw error(ErrorKind.INVALID_LITERAL, text); in finishLiteral()
306 throw error(ErrorKind.INVALID_LITERAL, text); in finishLiteral()
340 throw error(ErrorKind.INVALID_LITERAL, text); in finishLiteral()
347 throw error(ErrorKind.INVALID_LITERAL, text); in finishLiteral()
393 throw error(ErrorKind.INVALID_LITERAL, text); in parseLong()
578 throw TurbineError.format(lexer.source(), pos, ErrorKind.INVALID_ANNOTATION_ARGUMENT); in annotation()
594 private TurbineError error(ErrorKind kind, Object... args) { in error()
DParser.java32 import com.google.turbine.diag.TurbineError.ErrorKind;
753 throw error(ErrorKind.UNEXPECTED_TYPE_PARAMETER, typaram); in classMember()
793 throw error(ErrorKind.UNEXPECTED_TYPE_PARAMETER, typaram); in memberRest()
837 throw TurbineError.format(lexer.source(), expressionStart, ErrorKind.UNTERMINATED_EXPRESSION); in fieldRest()
1010 throw error(ErrorKind.UNEXPECTED_EOF); in dropParens()
1030 throw error(ErrorKind.UNEXPECTED_EOF); in dropBlocks()
1332 throw error(ErrorKind.INVALID_ANNOTATION_ARGUMENT); in annotation()
1360 throw error(ErrorKind.EXPECTED_TOKEN, kind); in eat()
1377 return error(ErrorKind.UNEXPECTED_IDENTIFIER, lexer.stringValue()); in error()
1379 return error(ErrorKind.UNEXPECTED_EOF); in error()
[all …]
/external/turbine/java/com/google/turbine/diag/
DTurbineDiagnostic.java28 import com.google.turbine.diag.TurbineError.ErrorKind;
34 private final ErrorKind kind;
38 private TurbineDiagnostic(ErrorKind kind, String diagnostic, ImmutableList<Object> args) { in TurbineDiagnostic()
45 public ErrorKind kind() { in kind()
60 ErrorKind kind, String diagnostic, ImmutableList<Object> args) { in create()
83 public static TurbineDiagnostic format(SourceFile source, ErrorKind kind, Object... args) { in format()
98 SourceFile source, int position, ErrorKind kind, Object... args) { in format()
DTurbineError.java27 public enum ErrorKind { enum in TurbineError
53 ErrorKind(String message) { in ErrorKind() method in TurbineError.ErrorKind
69 public static TurbineError format(SourceFile source, ErrorKind kind, Object... args) { in format()
81 SourceFile source, int position, ErrorKind kind, Object... args) { in format()
DTurbineLog.java20 import com.google.turbine.diag.TurbineError.ErrorKind;
48 public void error(ErrorKind kind, Object... args) { in error()
52 public void error(int position, ErrorKind kind, Object... args) { in error()
/external/turbine/java/com/google/turbine/binder/
DHierarchyBinder.java30 import com.google.turbine.diag.TurbineError.ErrorKind;
123 log.error(ty.position(), ErrorKind.CANNOT_RESOLVE, ty); in resolveClass()
143 log.error(ty.position(), ErrorKind.CYCLIC_HIERARCHY, e.getMessage()); in resolveNext()
149 ErrorKind.SYMBOL_NOT_FOUND, in resolveNext()
165 log.error(tree.position(), ErrorKind.CYCLIC_HIERARCHY, e.getMessage()); in lookup()
DConstEvaluator.java42 import com.google.turbine.diag.TurbineError.ErrorKind;
206 throw error(classTy.position(), ErrorKind.CANNOT_RESOLVE, flat.peekFirst()); in resolveClass()
209 throw error(classTy.position(), ErrorKind.UNEXPECTED_TYPE_PARAMETER, flat.peekFirst()); in resolveClass()
222 position, ErrorKind.SYMBOL_NOT_FOUND, new ClassSymbol(sym.binaryName() + '$' + bit)); in resolveNext()
274 ErrorKind.CANNOT_RESOLVE, in resolveField()
940 ErrorKind.CANNOT_RESOLVE, in evaluateAnnotation()
945 throw error(expr.position(), ErrorKind.EXPRESSION_ERROR); in evaluateAnnotation()
949 throw error(arg.position(), ErrorKind.INVALID_ANNOTATION_ARGUMENT); in evaluateAnnotation()
959 t.name().get(0).position(), ErrorKind.CANNOT_RESOLVE, Joiner.on(".").join(t.name())); in evalAnno()
965 throw error(name.position(), ErrorKind.CANNOT_RESOLVE, name.value()); in evalAnno()
[all …]
DModuleBinder.java42 import com.google.turbine.diag.TurbineError.ErrorKind;
211 ErrorKind.SYMBOL_NOT_FOUND, pos, new ClassSymbol(Joiner.on('/').join(simpleNames))); in resolve()
218 ErrorKind.SYMBOL_NOT_FOUND, pos, new ClassSymbol(sym.binaryName() + '$' + name)); in resolve()
224 private TurbineError error(ErrorKind kind, int pos, Object... args) { in error()
DTypeBinder.java39 import com.google.turbine.diag.TurbineError.ErrorKind;
529 log.error(member.position(), ErrorKind.DUPLICATE_DECLARATION, "field: " + field.name()); in bindFields()
572 log.error(tree.position(), ErrorKind.CANNOT_RESOLVE, Joiner.on('.').join(name)); in resolveAnnoSymbol()
583 log.error(tree.position(), ErrorKind.NOT_AN_ANNOTATION, sym); in resolveAnnoSymbol()
593 ErrorKind.SYMBOL_NOT_FOUND, in resolveNext()
650 log.error(names.get(0).position(), ErrorKind.CANNOT_RESOLVE, Joiner.on('.').join(names)); in bindClassTy()
662 log.error(t.position(), ErrorKind.TYPE_PARAMETER_QUALIFIER); in bindClassTy()
DCompUnitPreprocessor.java28 import com.google.turbine.diag.TurbineError.ErrorKind;
141 source, member.position(), ErrorKind.DUPLICATE_DECLARATION, sym); in preprocessChildren()
DDisambiguateTypeAnnotations.java35 import com.google.turbine.diag.TurbineError.ErrorKind;
262 anno.source(), anno.position(), ErrorKind.NONREPEATABLE_ANNOTATION, symbol); in groupRepeated()
DBinder.java55 import com.google.turbine.diag.TurbineError.ErrorKind;
146 unit.source(), type.decl().position(), ErrorKind.DUPLICATE_DECLARATION, type.sym()); in bindSourceBoundClasses()
/external/clang/lib/StaticAnalyzer/Checkers/
DNullabilityChecker.cpp85 enum class ErrorKind : int { enum
171 void reportBugIfInvariantHolds(StringRef Msg, ErrorKind Error,
177 void reportBug(StringRef Msg, ErrorKind Error, ExplodedNode *N, in reportBug()
190 if (Error == ErrorKind::NilAssignedToNonnull || in reportBug()
191 Error == ErrorKind::NilPassedToNonnull || in reportBug()
192 Error == ErrorKind::NilReturnedToNonnull) in reportBug()
459 ErrorKind Error, ExplodedNode *N, const MemRegion *Region, in reportBugIfInvariantHolds()
525 ErrorKind::NullableDereferenced, Event.SinkNode, Region, BR); in checkEvent()
528 "non-null", ErrorKind::NullablePassedToNonnull, in checkEvent()
620 ErrorKind::NilReturnedToNonnull, N, nullptr, C, in checkPreStmt()
[all …]
DRetainCountChecker.cpp2660 RefVal::Kind ErrorKind, SymbolRef Sym,
3290 RefVal::Kind ErrorKind, in processNonLeakError() argument
3308 switch (ErrorKind) { in processNonLeakError()
/external/turbine/java/com/google/turbine/binder/lookup/
DImportIndex.java27 import com.google.turbine.diag.TurbineError.ErrorKind;
103 i.position(), ErrorKind.SYMBOL_NOT_FOUND, new ClassSymbol(Joiner.on('/').join(i.type()))); in namedImport()
128 ErrorKind.SYMBOL_NOT_FOUND,
145 log.error(i.position(), ErrorKind.SYMBOL_NOT_FOUND, Joiner.on(".").join(i.type()));
DMemberImportIndex.java27 import com.google.turbine.diag.TurbineError.ErrorKind;
103 ErrorKind.SYMBOL_NOT_FOUND, in resolveNext()
/external/compiler-rt/lib/ubsan/
Dubsan_diag.cc73 const char *ErrorKind = ConvertTypeToString(Type); in MaybeReportErrorSummary() local
82 ReportErrorSummary(ErrorKind, AI); in MaybeReportErrorSummary()
88 ReportErrorSummary(ErrorKind, AI); in MaybeReportErrorSummary()
91 ReportErrorSummary(ErrorKind); in MaybeReportErrorSummary()
/external/v8/src/parsing/
Dexpression-classifier.h53 enum ErrorKind : unsigned { enum
67 MessageTemplate::Template msg, ErrorKind k,
357 V8_INLINE const Error& reported_error(ErrorKind kind) const { in reported_error()
/external/turbine/java/com/google/turbine/types/
DCanonicalize.java27 import com.google.turbine.diag.TurbineError.ErrorKind;
387 throw TurbineError.format(source, position, ErrorKind.CLASS_FILE_NOT_FOUND, canonOwner); in getInfo()
/external/turbine/java/com/google/turbine/lower/
DLower.java65 import com.google.turbine.diag.TurbineError.ErrorKind;
421 throw TurbineError.format(source, ErrorKind.CLASS_FILE_NOT_FOUND, sym); in addEnclosing()
/external/clang/lib/Sema/
DSemaTemplate.cpp7344 unsigned ErrorKind = 0; in ActOnExplicitInstantiation() local
7346 ErrorKind = 4; in ActOnExplicitInstantiation()
7348 ErrorKind = 5; in ActOnExplicitInstantiation()
7351 Diag(TemplateNameLoc, diag::err_tag_reference_non_tag) << ErrorKind; in ActOnExplicitInstantiation()
DSemaDeclCXX.cpp11860 unsigned ErrorKind; in CheckOverloadedOperatorDeclaration() local
11862 ErrorKind = 2; // 2 -> unary or binary. in CheckOverloadedOperatorDeclaration()
11864 ErrorKind = 0; // 0 -> unary in CheckOverloadedOperatorDeclaration()
11868 ErrorKind = 1; // 1 -> binary in CheckOverloadedOperatorDeclaration()
11872 << FnDecl->getDeclName() << NumParams << ErrorKind; in CheckOverloadedOperatorDeclaration()