Searched refs:reportBuilder (Results 1 – 6 of 6) sorted by relevance
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/ |
D | ProducesMethodValidator.java | 165 private void validateKeyType(ValidationReport.Builder<? extends Element> reportBuilder, in validateKeyType() argument 169 reportBuilder.addError(PRODUCES_METHOD_RETURN_TYPE, reportBuilder.getSubject()); in validateKeyType() 173 private void validateSingleReturnType(ValidationReport.Builder<? extends Element> reportBuilder, in validateSingleReturnType() argument 178 reportBuilder.addError(PRODUCES_METHOD_RAW_FUTURE, reportBuilder.getSubject()); in validateSingleReturnType() 180 validateKeyType(reportBuilder, Iterables.getOnlyElement(declaredType.getTypeArguments())); in validateSingleReturnType() 183 validateKeyType(reportBuilder, type); in validateSingleReturnType() 187 private void validateSetType(ValidationReport.Builder<? extends Element> reportBuilder, in validateSetType() argument 190 reportBuilder.addError(PRODUCES_METHOD_SET_VALUES_RETURN_SET, reportBuilder.getSubject()); in validateSetType() 197 reportBuilder.addError(PRODUCES_METHOD_SET_VALUES_RETURN_SET, reportBuilder.getSubject()); in validateSetType() 199 reportBuilder.addError( in validateSetType() [all …]
|
D | ComponentHierarchyValidator.java | 46 ValidationReport.Builder<TypeElement> reportBuilder = in validateSubcomponentMethods() local 63 reportBuilder.addError( in validateSubcomponentMethods() 85 reportBuilder.addWarning( in validateSubcomponentMethods() 100 reportBuilder.addSubreport( in validateSubcomponentMethods() 113 return reportBuilder.build(); in validateSubcomponentMethods()
|
D | BindingGraphValidator.java | 141 final ValidationReport.Builder<TypeElement> reportBuilder; field in BindingGraphValidator.Validation 146 this.reportBuilder = in Validation() 155 return reportBuilder.build(); in buildReport() 188 reportBuilder.addSubreport(subgraphValidation.buildReport()); in validateSubgraph() 206 reportBuilder.addError( in validateSubcomponentFactoryMethod() 358 reportBuilder.addItem( in validateNullability() 415 reportBuilder.addError( in validateMembersInjectionBinding() 476 reportBuilder.addError( in validateMembersInjectionBinding() 501 reportBuilder.addError( in validateMembersInjectionBinding() 541 reportBuilder.addItem(message.toString(), in validateComponentHierarchy() [all …]
|
D | ProvidesMethodValidator.java | 178 private void validateKeyType(ValidationReport.Builder<? extends Element> reportBuilder, in validateKeyType() argument 182 reportBuilder.addError(PROVIDES_METHOD_RETURN_TYPE, reportBuilder.getSubject()); in validateKeyType()
|
D | ModuleValidator.java | 280 final ValidationReport.Builder<?> reportBuilder) { in validateModuleVisibility() argument 283 reportBuilder.addError("Modules cannot be private.", moduleElement); in validateModuleVisibility() 285 reportBuilder.addError("Modules cannot be enclosed in private types.", moduleElement); in validateModuleVisibility() 310 reportBuilder.addError( in validateModuleVisibility()
|
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/ |
D | ValidationReportTest.java | 50 Builder<TypeElement> reportBuilder = in basicReport() 52 reportBuilder.addError("simple error"); in basicReport() 53 reportBuilder.build().printMessagesTo(processingEnv.getMessager()); in basicReport() 70 Builder<TypeElement> reportBuilder = in messageOnDifferentElement() 72 reportBuilder.addError("simple error", getTypeElement(String.class)); in messageOnDifferentElement() 73 reportBuilder.build().printMessagesTo(processingEnv.getMessager()); in messageOnDifferentElement() 90 Builder<TypeElement> reportBuilder = in subreport() 92 reportBuilder.addError("simple error"); in subreport() 95 .addSubreport(reportBuilder.build()) in subreport()
|