Home
last modified time | relevance | path

Searched refs:addError (Results 1 – 25 of 146) sorted by relevance

123456

/external/dagger2/java/dagger/internal/codegen/validation/
DBindingElementValidator.java211 report.addError(bindingElements("must %s a value (not void)", bindingElementTypeVerb())); in checkKeyType()
216 report.addError(badTypeMessage()); in checkKeyType()
227 report.addError("Dagger does not support providing @AssistedInject types.", keyElement); in checkAssistedType()
230 report.addError("Dagger does not support providing @AssistedFactory types.", keyElement); in checkAssistedType()
248 report.addError(elementsIntoSetNotASetMessage()); in checkSetValuesType()
252 report.addError(elementsIntoSetRawSetMessage()); in checkSetValuesType()
268 report.addError( in checkQualifiers()
289 report.addError(bindingElements("of type map must declare a map key")); in checkMapKeys()
294 report.addError(bindingElements("may not have more than one map key")); in checkMapKeys()
298 report.addError(bindingElements("of non map type cannot declare a map key")); in checkMapKeys()
[all …]
DComponentCreatorValidator.java101 report.addError(error); in validateOnlyOneCreatorAnnotation()
132 report.addError(messages.mustBeInComponent()); in validate()
162 report.addError(messages.mustBeClassOrInterface()); in validateIsClassOrInterface()
178 report.addError(messages.invalidConstructor()); in validateConstructor()
185 report.addError(messages.generics()); in validateTypeRequirements()
189 report.addError(messages.isPrivate()); in validateTypeRequirements()
192 report.addError(messages.mustBeStatic()); in validateTypeRequirements()
196 report.addError(messages.mustBeAbstract()); in validateTypeRequirements()
234 report.addError(messages.missingFactoryMethod()); in validateBuilder()
249 report.addError("Can not use a Java keyword as method name: " + signature); in validateClassMethodName()
[all …]
DModuleValidator.java184 .addError( in validateUncached()
199 builder.addError( in validateUncached()
243 builder.addError( in validateReferencedSubcomponents()
255 builder.addError( in validateReferencedSubcomponents()
291 builder.addError( in validateSubcomponentHasBuilder()
328 builder.addError("Modules with type parameters must be abstract", subject); in validateModifiers()
339 builder.addError( in validateMethodsWithSameName()
385 subreport.addError( in validateReferencedModules()
395 subreport.addError( in validateReferencedModules()
406 subreport.addError( in validateReferencedModules()
[all …]
DInjectValidator.java155 builder.addError( in validateUncached()
173 builder.addError("Constructors cannot be annotated with both @Inject and @AssistedInject"); in validateConstructor()
184 builder.addError( in validateConstructor()
195 builder.addError( in validateConstructor()
214 builder.addError( in validateConstructor()
239 builder.addError( in validateConstructor()
247 builder.addError( in validateConstructor()
260 builder.addError( in validateConstructor()
267 builder.addError( in validateConstructor()
281 builder.addError("@Inject fields may not be final", fieldElement); in validateField()
[all …]
DComponentValidator.java194 report.addError(error, component); in moreThanOneComponentAnnotation()
200 report.addError( in validateUseOfCancellationPolicy()
208 report.addError( in validateIsAbstractType()
221 report.addError( in validateCreators()
230 report.addError( in validateNoReusableAnnotation()
251 report.addError("Can not use a Java keyword as method name: " + signature); in validateClassMethodName()
301 report.addError("Component methods cannot have type variables", method); in validateNoTypeVariables()
350 report.addError( in validateSubcomponentFactoryMethod()
358 report.addError( in validateSubcomponentFactoryMethod()
367 report.addError( in validateSubcomponentFactoryMethod()
[all …]
DDependencyRequestValidator.java80 report.addError( in validateDependencyRequest()
135 report.addError( in checkQualifiers()
147 report.addError( in checkType()
156 report.addError( in checkType()
165 report.addError( in checkType()
173 report.addError("Cannot inject a raw MembersInjector", requestElement); in checkType()
193 report.addError( in checkNotProducer()
DMapKeyValidator.java43 builder.addError("Map key annotations must have members", element); in validate()
47 builder.addError( in validate()
50 builder.addError("Map key annotations with unwrapped values cannot use arrays", element); in validate()
53 builder.addError( in validate()
DBindingMethodValidator.java166 report.addError( in checkEnclosingElement()
178 report.addError(bindingMethods("may not have type parameters")); in checkTypeParameters()
185 report.addError(bindingMethods("cannot be private")); in checkNotPrivate()
195 report.addError(bindingMethods("must be abstract")); in checkAbstractness()
201 report.addError(bindingMethods("cannot be abstract")); in checkAbstractness()
254 report.addError(validator.bindingMethods("may not throw")); in checkThrows()
304 report.addError(errorMessage(validator)); in checkThrows()
DBindsInstanceMethodValidator.java62 report.addError("@BindsInstance methods must be abstract"); in checkAdditionalProperties()
65 report.addError( in checkAdditionalProperties()
70 .ifPresent(moduleAnnotation -> report.addError(didYouMeanBinds(moduleAnnotation))); in checkAdditionalProperties()
74 report.addError( in checkAdditionalProperties()
DMembersInjectionValidator.java73 report.addError("Cannot inject members into qualified types", element, qualifier); in checkQualifiers()
81 report.addError("Cannot inject members into " + type); in checkMembersInjectedType()
89 report.addError("Cannot inject members into raw type " + type); in checkMembersInjectedType()
97 report.addError("Cannot inject members into types with unbounded type arguments: " + type); in checkMembersInjectedType()
/external/clang/lib/ASTMatchers/Dynamic/
DParser.cpp195 Error->addError(Range, Error->ET_ParserUnsignedError) << Result->Text; in consumeUnsignedLiteral()
230 Error->addError(Range, Error->ET_ParserStringError) << ErrorText; in consumeStringLiteral()
310 Error->addError(NameToken.Range, Error->ET_RegistryValueNotFound) in parseIdentifierPrefixImpl()
330 Error->addError(OpenToken.Range, Error->ET_ParserNoOpenParen) in parseMatcherExpressionImpl()
338 Error->addError(NameToken.Range, Error->ET_RegistryMatcherNotFound) in parseMatcherExpressionImpl()
359 Error->addError(CommaToken.Range, Error->ET_ParserNoComma) in parseMatcherExpressionImpl()
381 Error->addError(OpenToken.Range, Error->ET_ParserNoCloseParen); in parseMatcherExpressionImpl()
403 Error->addError(BindToken.Range, Error->ET_ParserMalformedBindExpr); in parseMatcherExpressionImpl()
407 Error->addError(OpenToken.Range, Error->ET_ParserMalformedBindExpr); in parseMatcherExpressionImpl()
411 Error->addError(IDToken.Range, Error->ET_ParserMalformedBindExpr); in parseMatcherExpressionImpl()
[all …]
/external/guice/core/src/com/google/inject/internal/
DProvidesMethodScanner.java63 binder.addError("Found a MapKey annotation on non map binding at %s.", method); in prepareMethod()
70 binder.addError("Found a MapKey annotation on non map binding at %s.", method); in prepareMethod()
80 binder.addError("No MapKey found for map binding at %s.", method); in prepareMethod()
88 binder.addError("Found a MapKey annotation on non map binding at %s.", method); in prepareMethod()
124 binder.addError("Found more than one MapKey annotations on %s.", method); in findMapKeyAnnotation()
132 binder.addError( in findMapKeyAnnotation()
138 binder.addError( in findMapKeyAnnotation()
DAbstractBindingBuilder.java110 binder.addError(IMPLEMENTATION_ALREADY_SET); in checkNotTargetted()
116 binder.addError(ANNOTATION_ALREADY_SPECIFIED); in checkNotAnnotated()
123 binder.addError(SINGLE_INSTANCE_AND_SCOPE); in checkNotScoped()
128 binder.addError(SCOPE_ALREADY_SET); in checkNotScoped()
/external/guice/examples/src/example/xml/
DXmlBeanModule.java51 originalBinder.addError(e); in configure()
65 sourced.addError("Missing 'type' attribute."); in start()
74 sourced.addError(e); in start()
82 sourced.addError("%s doesn't have a no-arg constructor."); in start()
112 sourced.addError("Missing attribute name."); in start()
128 sourced.addError("%s.%s() not found.", type.getName(), setterName); in start()
135 sourced.addError("%s.%s() must take one argument.", setterName, type.getName()); in start()
/external/guice/core/src/com/google/inject/
DAbstractModule.java107 protected void addError(String message, Object... arguments) { in addError() method in AbstractModule
108 binder().addError(message, arguments); in addError()
112 protected void addError(Throwable t) { in addError() method in AbstractModule
113 binder().addError(t); in addError()
120 protected void addError(Message message) { in addError() method in AbstractModule
121 binder().addError(message); in addError()
DPrivateModule.java175 protected final void addError(String message, Object... arguments) { in addError() method in PrivateModule
176 binder().addError(message, arguments); in addError()
180 protected final void addError(Throwable t) { in addError() method in PrivateModule
181 binder().addError(t); in addError()
185 protected final void addError(Message message) { in addError() method in PrivateModule
186 binder().addError(message); in addError()
/external/junit/src/main/java/org/junit/rules/
DErrorCollector.java48 public void addError(Throwable error) { in addError() method in ErrorCollector
100 addError(error); in checkSucceeds()
103 addError(e); in checkSucceeds()
122 addError(e); in checkThrows()
/external/apache-commons-bcel/src/examples/Mini/
DASTIfExpr.java62 MiniC.addError(if_expr.getLine(), if_expr.getColumn(), in closeNode()
97 MiniC.addError(if_expr.getLine(), if_expr.getColumn(), in eval()
105 MiniC.addError(then_expr.getLine(), then_expr.getColumn(), in eval()
114 MiniC.addError(else_expr.getLine(), else_expr.getColumn(), in eval()
128 MiniC.addError(line, column, in eval()
/external/guice/extensions/dagger-adapter/src/com/google/inject/daggeradapter/
DDaggerMethodScanner.java57 binder.addError("@ElementsIntoSet contributions are not suppored by Guice.", providesMethod); in prepareMethod()
61 binder.addError("Map bindings are not yet supported."); in prepareMethod()
71 binder.addError( in prepareMethod()
75 binder.addError("Unknown @Provides type " + annotation.type() + ".", providesMethod); in prepareMethod()
/external/guice/core/src/com/google/inject/spi/
DTypeEncounter.java43 void addError(String message, Object... arguments); in addError() method
50 void addError(Throwable t); in addError() method
53 void addError(Message message); in addError() method
/external/dagger2/java/dagger/internal/codegen/
DAssistedFactoryProcessingStep.java128 .addError( in validate()
136 report.addError("Nested @AssistedFactory-annotated types must be static. ", factory); in validate()
142 report.addError( in validate()
157 report.addError( in validate()
165 report.addError( in validate()
173 report.addError( in validate()
192 report.addError( in validate()
200 report.addError( in validate()
/external/guice/core/test/com/google/inject/
DProvisionExceptionTest.java342 addError(sharedException); in testDuplicateCausesCollapsed()
343 addError(sharedException); in testDuplicateCausesCollapsed()
364 addError(exception1); in testMultipleDuplicates()
365 addError(exception1); in testMultipleDuplicates()
366 addError(exception2); in testMultipleDuplicates()
367 addError(exception2); in testMultipleDuplicates()
/external/cronet/third_party/protobuf/python/google/protobuf/internal/
Dtesting_refleaks.py54 def addError(self, test, error): member in LocalTestResult
55 self.parent_result.addError(test, error)
93 result.addError(self, sys.exc_info())
/external/jsoncpp/src/lib_json/
Djson_reader.cpp141 addError( in parse()
216 return addError("Syntax error: value, object or array expected.", token); in readValue()
604 return addError( in decodeDouble()
631 return addError("Empty escape sequence in string", token, current); in decodeString()
665 return addError("Bad escape sequence in string", token, current); in decodeString()
682 return addError( in decodeUnicodeCodePoint()
692 return addError("expecting another \\u token to begin the second half of " in decodeUnicodeCodePoint()
703 return addError( in decodeUnicodeEscapeSequence()
717 return addError( in decodeUnicodeEscapeSequence()
725 bool Reader::addError(const String& message, Token& token, Location extra) { in addError() function in Json::Reader
[all …]
/external/protobuf/python/google/protobuf/internal/
Dtesting_refleaks.py54 def addError(self, test, error): member in LocalTestResult
55 self.parent_result.addError(test, error)
110 result.addError(self, sys.exc_info())

123456