/external/dagger2/java/dagger/internal/codegen/bindinggraphvalidation/ |
D | ProvisionDependencyOnProducerBindingValidator.java | 49 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 50 provisionDependenciesOnProductionBindings(bindingGraph) in visitGraph() 58 : dependencyErrorMessage(provisionDependent, bindingGraph))); in visitGraph() 62 BindingGraph bindingGraph) { in provisionDependenciesOnProductionBindings() argument 63 return bindingGraph.bindings().stream() in provisionDependenciesOnProductionBindings() 65 .flatMap(binding -> incomingDependencies(binding, bindingGraph)) in provisionDependenciesOnProductionBindings() 66 .filter(edge -> !dependencyCanUseProduction(edge, bindingGraph)); in provisionDependenciesOnProductionBindings() 72 dagger.model.Binding binding, BindingGraph bindingGraph) { in incomingDependencies() argument 73 return bindingGraph.network().inEdges(binding).stream() in incomingDependencies() 78 private boolean dependencyCanUseProduction(DependencyEdge edge, BindingGraph bindingGraph) { in dependencyCanUseProduction() argument [all …]
|
D | DependencyCycleValidator.java | 77 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 79 nonCycleBreakingDependencyGraph(bindingGraph); in visitGraph() 89 .ifPresent(cycle -> reportCycle(cycle, bindingGraph, diagnosticReporter)); in visitGraph() 131 Cycle<Node> cycle, BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in reportCycle() argument 132 if (bindingGraph.isFullBindingGraph()) { in reportCycle() 135 bindingGraph.componentNode(cycle.nodes().asList().get(0).componentPath()).get(), in reportCycle() 136 errorMessage(cycle, bindingGraph)); in reportCycle() 140 ImmutableList<Node> path = shortestPathToCycleFromAnEntryPoint(cycle, bindingGraph); in reportCycle() 144 chooseDependencyEdgeConnecting(previousNode, cycleStartNode, bindingGraph); in reportCycle() 146 ERROR, dependencyToReport, errorMessage(cycle.shift(cycleStartNode), bindingGraph)); in reportCycle() [all …]
|
D | NullableBindingValidator.java | 47 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 48 for (dagger.model.Binding binding : nullableBindings(bindingGraph)) { in visitGraph() 49 for (DependencyEdge dependencyEdge : nonNullableDependencies(bindingGraph, binding)) { in visitGraph() 65 private ImmutableList<dagger.model.Binding> nullableBindings(BindingGraph bindingGraph) { in nullableBindings() argument 66 return bindingGraph.bindings().stream() in nullableBindings() 72 BindingGraph bindingGraph, dagger.model.Binding binding) { in nonNullableDependencies() argument 73 return bindingGraph.network().inEdges(binding).stream() in nonNullableDependencies()
|
D | SubcomponentFactoryMethodValidator.java | 69 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 70 if (!bindingGraph.rootComponentNode().isRealComponent() in visitGraph() 71 || bindingGraph.rootComponentNode().isSubcomponent()) { in visitGraph() 76 bindingGraph.network().edges().stream() in visitGraph() 80 ImmutableSet<TypeElement> missingModules = findMissingModules(edge, bindingGraph); in visitGraph() 83 edge, missingModules, bindingGraph, diagnosticReporter); in visitGraph() 111 ChildFactoryMethodEdge edge, BindingGraph bindingGraph) { in subgraphFactoryMethodParameters() argument 112 ComponentNode parent = (ComponentNode) bindingGraph.network().incidentNodes(edge).source(); in subgraphFactoryMethodParameters()
|
D | DuplicateBindingsValidator.java | 85 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 91 duplicateBindingSets(bindingGraph) in visitGraph() 96 reportDuplicateBindings(duplicateBindings, bindingGraph, diagnosticReporter); in visitGraph() 109 BindingGraph bindingGraph) { in duplicateBindingSets() argument 110 return groupBindingsByKey(bindingGraph).stream() in duplicateBindingSets() 117 private static ImmutableSet<ImmutableSet<Binding>> groupBindingsByKey(BindingGraph bindingGraph) { in groupBindingsByKey() argument 119 bindingGraph.bindings().stream() in groupBindingsByKey() 150 BindingGraph bindingGraph, in reportDuplicateBindings() argument 162 bindingGraph.rootComponentNode())); in reportDuplicateBindings() 168 ? incompatibleBindingsMessage(oneBinding, bindings, bindingGraph) in reportDuplicateBindings() [all …]
|
D | MapMultibindingValidator.java | 72 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 73 mapMultibindings(bindingGraph) in visitGraph() 77 mapBindingContributions(binding, bindingGraph); in visitGraph() 94 private ImmutableSet<dagger.model.Binding> mapMultibindings(BindingGraph bindingGraph) { in mapMultibindings() argument 96 bindingGraph.bindings().stream() in mapMultibindings() 131 dagger.model.Binding binding, BindingGraph bindingGraph) { in mapBindingContributions() argument 133 return bindingGraph.requestedBindings(binding).stream() in mapBindingContributions()
|
D | IncompatiblyScopedBindingsValidator.java | 64 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 67 for (dagger.model.Binding binding : bindingGraph.bindings()) { in visitGraph() 74 bindingGraph.componentNode(binding.componentPath()).get(); in visitGraph() 79 && (bindingGraph.rootComponentNode().isSubcomponent() in visitGraph() 80 || !bindingGraph.rootComponentNode().isRealComponent())) { in visitGraph()
|
D | DependsOnProductionExecutorValidator.java | 51 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 59 bindingGraph.network().nodes().stream() in visitGraph() 62 .flatMap(productionExecutor -> bindingGraph.requestingBindings(productionExecutor).stream()) in visitGraph()
|
D | InjectBindingValidator.java | 47 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 48 bindingGraph.bindings().stream() in visitGraph()
|
/external/dagger2/java/dagger/internal/codegen/componentgenerator/ |
D | ComponentImplementationFactory.java | 56 ComponentImplementation createComponentImplementation(BindingGraph bindingGraph) { in createComponentImplementation() argument 59 bindingGraph.componentTypeElement(), in createComponentImplementation() 60 component -> createComponentImplementationUncached(bindingGraph)); in createComponentImplementation() 63 private ComponentImplementation createComponentImplementationUncached(BindingGraph bindingGraph) { in createComponentImplementationUncached() argument 66 bindingGraph, in createComponentImplementationUncached() 67 componentName(bindingGraph.componentTypeElement()), in createComponentImplementationUncached() 68 new SubcomponentNames(bindingGraph, keyFactory), in createComponentImplementationUncached() 77 .bindingGraph(bindingGraph) in createComponentImplementationUncached()
|
D | ComponentGenerator.java | 66 public Optional<TypeSpec.Builder> write(BindingGraph bindingGraph) { in write() argument 68 componentImplementationFactory.createComponentImplementation(bindingGraph); in write() 69 verify(componentImplementation.name().equals(nameGeneratedType(bindingGraph))); in write()
|
D | CurrentImplementationSubcomponent.java | 47 Builder bindingGraph(BindingGraph bindingGraph); in bindingGraph() argument
|
/external/dagger2/javatests/dagger/spi/ |
D | FailingPlugin.java | 46 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 49 bindingGraph.bindings().stream() in visitGraph() 59 bindingGraph.rootComponentNode(), in visitGraph() 61 bindingGraph.rootComponentNode()); in visitGraph() 65 bindingGraph.componentNodes().stream() in visitGraph() 75 bindingGraph.dependencyEdges().stream() in visitGraph()
|
/external/dagger2/javatests/dagger/functional/spi/ |
D | TestPlugin.java | 44 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 47 for (ComponentNode node : bindingGraph.componentNodes()) { in visitGraph() 52 write(bindingGraph, properties); in visitGraph() 55 private void write(BindingGraph bindingGraph, Properties properties) { in write() argument 57 ClassName.get(bindingGraph.rootComponentNode().componentPath().currentComponent()); in write()
|
/external/dagger2/java/dagger/internal/codegen/writing/ |
D | ComponentProvisionBindingExpression.java | 33 private final BindingGraph bindingGraph; field in ComponentProvisionBindingExpression 39 BindingGraph bindingGraph, in ComponentProvisionBindingExpression() argument 44 this.bindingGraph = checkNotNull(bindingGraph); in ComponentProvisionBindingExpression() 62 return bindingGraph in componentRequirement()
|
/external/dagger2/java/dagger/example/spi/ |
D | BindingGraphVisualizer.java | 96 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 98 bindingGraph.rootComponentNode().componentPath().currentComponent(); in visitGraph() 99 DotGraph graph = new NodesGraph(bindingGraph).graph(); in visitGraph() 217 private final BindingGraph bindingGraph; field in BindingGraphVisualizer.NodesGraph 220 NodesGraph(BindingGraph bindingGraph) { in NodesGraph() argument 221 this.bindingGraph = bindingGraph; in NodesGraph() 227 bindingGraph.network().nodes().stream() in graph() 242 for (Edge edge : bindingGraph.network().edges()) { in graph() 260 EndpointPair<Node> incidentNodes = bindingGraph.network().incidentNodes(edge); in dotEdge() 283 if (bindingGraph.entryPointBindings().contains(node)) { in dotNode()
|
/external/dagger2/javatests/dagger/internal/codegen/ |
D | BindingGraphCapturer.java | 34 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 36 bindingGraph in visitGraph() 42 bindingGraph); in visitGraph()
|
D | ModelTest.java | 73 BindingGraph bindingGraph = capturer.bindingGraphs().get("test.TestComponent"); in cycleTest() local 74 assertThat(bindingGraph).bindingWithKey("test.A").dependsOnBindingWithKey("test.B"); in cycleTest() 75 assertThat(bindingGraph).bindingWithKey("test.B").dependsOnBindingWithKey("test.A"); in cycleTest()
|
D | PluginsVisitFullBindingGraphTest.java | 135 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 136 diagnosticReporter.reportComponent(ERROR, bindingGraph.rootComponentNode(), "Error!"); in visitGraph()
|
/external/dagger2/java/dagger/hilt/android/processor/internal/viewmodel/ |
D | ViewModelValidationPlugin.kt | 41 override fun visitGraph(bindingGraph: BindingGraph, diagnosticReporter: DiagnosticReporter) { in <lambda>() 42 if (bindingGraph.rootComponentNode().isSubcomponent()) { in <lambda>() 48 val network: ImmutableNetwork<Node, Edge> = bindingGraph.network() in <lambda>() 49 bindingGraph.dependencyEdges().forEach { edge -> in <lambda>()
|
/external/dagger2/java/dagger/internal/codegen/ |
D | ComponentProcessingStep.java | 115 BindingGraph bindingGraph = bindingGraphFactory.create(componentDescriptor, false); in processRootComponent() local 116 if (bindingGraphValidator.isValid(bindingGraph.topLevelBindingGraph())) { in processRootComponent() 117 generateComponent(bindingGraph); in processRootComponent() 131 private void generateComponent(BindingGraph bindingGraph) { in generateComponent() argument 132 componentGenerator.generate(bindingGraph, messager); in generateComponent()
|
/external/dagger2/java/dagger/internal/codegen/binding/ |
D | BindingGraph.java | 155 BindingGraph bindingGraph = new AutoValue_BindingGraph(componentNode, topLevelBindingGraph); in create() local 167 bindingGraph.inheritedModules = inheritedModules; in create() 168 bindingGraph.ownedModules = Sets.difference(modules, inheritedModules).immutableCopy(); in create() 169 bindingGraph.contributionBindings = ImmutableMap.copyOf(contributionBindings); in create() 170 bindingGraph.membersInjectionBindings = ImmutableMap.copyOf(membersInjectionBindings); in create() 171 bindingGraph.bindingModules = in create() 177 return bindingGraph; in create()
|
/external/dagger2/java/dagger/internal/codegen/validation/ |
D | CompositeBindingGraphPlugin.java | 79 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 81 bindingGraph, diagnosticReporter, messageGeneratorFactory.create(bindingGraph)); in visitGraph() 84 plugin.visitGraph(bindingGraph, aggregatingDiagnosticReporter); in visitGraph()
|
/external/dagger2/java/dagger/model/testing/ |
D | BindingGraphSubject.java | 35 public static BindingGraphSubject assertThat(BindingGraph bindingGraph) { in assertThat() argument 36 return assertAbout(BindingGraphSubject::new).that(bindingGraph); in assertThat()
|
/external/dagger2/java/dagger/spi/ |
D | BindingGraphPlugin.java | 38 void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter); in visitGraph() argument
|