/external/dagger2/java/dagger/internal/codegen/ |
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 | 73 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 75 nonCycleBreakingDependencyGraph(bindingGraph); in visitGraph() 81 .ifPresent(cycle -> reportCycle(cycle, bindingGraph, diagnosticReporter)); in visitGraph() 123 Cycle<Node> cycle, BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in reportCycle() argument 124 if (bindingGraph.isFullBindingGraph()) { in reportCycle() 127 bindingGraph.componentNode(cycle.nodes().asList().get(0).componentPath()).get(), in reportCycle() 128 errorMessage(cycle, bindingGraph)); in reportCycle() 132 ImmutableList<Node> path = shortestPathToCycleFromAnEntryPoint(cycle, bindingGraph); in reportCycle() 136 chooseDependencyEdgeConnecting(previousNode, cycleStartNode, bindingGraph); in reportCycle() 138 ERROR, dependencyToReport, errorMessage(cycle.shift(cycleStartNode), bindingGraph)); in reportCycle() [all …]
|
D | ComponentImplementationFactory.java | 72 ComponentImplementation createComponentImplementation(BindingGraph bindingGraph) { in createComponentImplementation() argument 75 bindingGraph.componentTypeElement(), in createComponentImplementation() 76 component -> createComponentImplementationUncached(bindingGraph)); in createComponentImplementation() 79 private ComponentImplementation createComponentImplementationUncached(BindingGraph bindingGraph) { in createComponentImplementationUncached() argument 82 bindingGraph, in createComponentImplementationUncached() 83 componentName(bindingGraph.componentTypeElement()), in createComponentImplementationUncached() 84 new SubcomponentNames(bindingGraph, keyFactory), in createComponentImplementationUncached() 94 .bindingGraph(bindingGraph) in createComponentImplementationUncached() 105 bindingGraph.componentTypeElement()); in createComponentImplementationUncached()
|
D | NullableBindingValidator.java | 46 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 47 for (dagger.model.Binding binding : nullableBindings(bindingGraph)) { in visitGraph() 48 for (DependencyEdge dependencyEdge : nonNullableDependencies(bindingGraph, binding)) { in visitGraph() 64 private ImmutableList<dagger.model.Binding> nullableBindings(BindingGraph bindingGraph) { in nullableBindings() argument 65 return bindingGraph.bindings().stream() in nullableBindings() 71 BindingGraph bindingGraph, dagger.model.Binding binding) { in nonNullableDependencies() argument 72 return bindingGraph.network().inEdges(binding).stream() in nonNullableDependencies()
|
D | ComponentProvisionBindingExpression.java | 29 private final BindingGraph bindingGraph; field in ComponentProvisionBindingExpression 35 BindingGraph bindingGraph, in ComponentProvisionBindingExpression() argument 40 this.bindingGraph = checkNotNull(bindingGraph); in ComponentProvisionBindingExpression() 58 return bindingGraph in componentRequirement()
|
D | SubcomponentFactoryMethodValidator.java | 64 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 65 if (!bindingGraph.rootComponentNode().isRealComponent() in visitGraph() 66 || bindingGraph.rootComponentNode().isSubcomponent()) { in visitGraph() 71 bindingGraph.network().edges().stream() in visitGraph() 75 ImmutableSet<TypeElement> missingModules = findMissingModules(edge, bindingGraph); in visitGraph() 78 edge, missingModules, bindingGraph, diagnosticReporter); in visitGraph() 106 ChildFactoryMethodEdge edge, BindingGraph bindingGraph) { in subgraphFactoryMethodParameters() argument 107 ComponentNode parent = (ComponentNode) bindingGraph.network().incidentNodes(edge).source(); in subgraphFactoryMethodParameters()
|
D | ComponentProcessingStep.java | 141 BindingGraph bindingGraph = bindingGraphFactory.create(componentDescriptor, false); in processRootComponent() local 142 if (isValid(bindingGraph)) { in processRootComponent() 143 generateComponent(bindingGraph); in processRootComponent() 162 BindingGraph bindingGraph = bindingGraphFactory.create(subcomponentDescriptor, false); in processSubcomponent() local 163 if (isValid(bindingGraph)) { in processSubcomponent() 164 generateComponent(bindingGraph); in processSubcomponent() 169 private void generateComponent(BindingGraph bindingGraph) { in generateComponent() argument 170 componentGenerator.generate(bindingGraph, messager); in generateComponent() 253 private boolean isValid(BindingGraph bindingGraph) { in isValid() argument 254 return bindingGraphValidator.isValid(bindingGraphConverter.convert(bindingGraph)); in isValid()
|
D | MapMultibindingValidator.java | 65 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 66 mapMultibindings(bindingGraph) in visitGraph() 70 mapBindingContributions(binding, bindingGraph); in visitGraph() 87 private ImmutableSet<dagger.model.Binding> mapMultibindings(BindingGraph bindingGraph) { in mapMultibindings() argument 89 bindingGraph.bindings().stream() in mapMultibindings() 124 dagger.model.Binding binding, BindingGraph bindingGraph) { in mapBindingContributions() argument 126 return bindingGraph.requestedBindings(binding).stream() in mapBindingContributions()
|
D | DuplicateBindingsValidator.java | 96 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 102 duplicateBindingSets(bindingGraph) in visitGraph() 107 reportDuplicateBindings(duplicateBindings, bindingGraph, diagnosticReporter); in visitGraph() 120 BindingGraph bindingGraph) { in duplicateBindingSets() argument 121 return groupBindingsByKey(bindingGraph).stream() in duplicateBindingSets() 128 private static ImmutableSet<ImmutableSet<Binding>> groupBindingsByKey(BindingGraph bindingGraph) { in groupBindingsByKey() argument 130 bindingGraph.bindings().stream() in groupBindingsByKey() 161 BindingGraph bindingGraph, in reportDuplicateBindings() argument 179 ? incompatibleBindingsMessage(oneBinding.key(), bindings, bindingGraph) in reportDuplicateBindings() 180 : duplicateBindingMessage(oneBinding.key(), bindings, bindingGraph)); in reportDuplicateBindings()
|
D | IncompatiblyScopedBindingsValidator.java | 61 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 64 for (dagger.model.Binding binding : bindingGraph.bindings()) { in visitGraph() 71 bindingGraph.componentNode(binding.componentPath()).get(); in visitGraph() 76 && (bindingGraph.rootComponentNode().isSubcomponent() in visitGraph() 77 || !bindingGraph.rootComponentNode().isRealComponent())) { in visitGraph()
|
D | DependsOnProductionExecutorValidator.java | 49 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 57 bindingGraph.network().nodes().stream() in visitGraph() 60 .flatMap(productionExecutor -> bindingGraph.requestingBindings(productionExecutor).stream()) in visitGraph()
|
D | BindingGraphConverter.java | 56 dagger.model.BindingGraph convert(BindingGraph bindingGraph) { in convert() argument 57 Traverser traverser = new Traverser(bindingGraph); in convert() 65 if (!bindingGraph.isFullBindingGraph()) { in convert() 70 return BindingGraphProxies.bindingGraph(traverser.network, bindingGraph.isFullBindingGraph()); in convert()
|
D | CurrentImplementationSubcomponent.java | 43 Builder bindingGraph(BindingGraph bindingGraph); in bindingGraph() method
|
D | InjectBindingValidator.java | 45 public void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter) { in visitGraph() argument 46 bindingGraph.bindings().stream() in visitGraph()
|
D | ComponentGenerator.java | 65 Optional<TypeSpec.Builder> write(ClassName componentName, BindingGraph bindingGraph) { in write() argument 67 componentImplementationFactory.createComponentImplementation(bindingGraph); in write()
|
D | ModuleValidator.java | 619 BindingGraph bindingGraph = in validateModuleBindings() local 623 if (!bindingGraphValidator.isValid(bindingGraph)) { in validateModuleBindings()
|
D | ComponentImplementationBuilder.java | 365 .bindingGraph(childGraph) in buildChildImplementation()
|
/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/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()
|
/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/model/ |
D | BindingGraphProxies.java | 31 public static BindingGraph bindingGraph(Network<Node, Edge> network, boolean isFullBindingGraph) { in bindingGraph() method in BindingGraphProxies
|
/external/dagger2/java/dagger/spi/ |
D | BindingGraphPlugin.java | 38 void visitGraph(BindingGraph bindingGraph, DiagnosticReporter diagnosticReporter); in visitGraph() argument
|