Home
last modified time | relevance | path

Searched refs:BindingKey (Results 1 – 16 of 16) sorted by relevance

/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DResolvedBindings.java41 abstract BindingKey bindingKey(); in bindingKey()
105 checkState(bindingKey().kind().equals(BindingKey.Kind.CONTRIBUTION)); in contributionBindings()
116 checkState(bindingKey().kind().equals(BindingKey.Kind.CONTRIBUTION)); in ownedContributionBindings()
127 checkState(bindingKey().kind().equals(BindingKey.Kind.MEMBERS_INJECTION)); in membersInjectionBinding()
142 checkState(bindingKey().kind().equals(BindingKey.Kind.MEMBERS_INJECTION)); in ownedMembersInjectionBinding()
150 BindingKey bindingKey, in forContributionBindings()
153 checkArgument(bindingKey.kind().equals(BindingKey.Kind.CONTRIBUTION)); in forContributionBindings()
165 BindingKey bindingKey, in forContributionBindings()
180 BindingKey bindingKey, in forMembersInjectionBinding()
183 checkArgument(bindingKey.kind().equals(BindingKey.Kind.MEMBERS_INJECTION)); in forMembersInjectionBinding()
[all …]
DSourceFiles.java81 static ImmutableSetMultimap<BindingKey, DependencyRequest> indexDependenciesByUnresolvedKey( in indexDependenciesByUnresolvedKey()
83 ImmutableSetMultimap.Builder<BindingKey, DependencyRequest> dependenciesByKeyBuilder = in indexDependenciesByUnresolvedKey()
84 new ImmutableSetMultimap.Builder<BindingKey, DependencyRequest>() in indexDependenciesByUnresolvedKey()
87 BindingKey resolved = dependency.bindingKey(); in indexDependenciesByUnresolvedKey()
92 BindingKey unresolved = in indexDependenciesByUnresolvedKey()
93 BindingKey.create(resolved.kind(), resolved.key().withType(types, unresolvedType)); in indexDependenciesByUnresolvedKey()
106 static ImmutableSetMultimap<BindingKey, DependencyRequest> indexDependenciesByKey( in indexDependenciesByKey()
108 ImmutableSetMultimap.Builder<BindingKey, DependencyRequest> dependenciesByKeyBuilder = in indexDependenciesByKey()
109 new ImmutableSetMultimap.Builder<BindingKey, DependencyRequest>() in indexDependenciesByKey()
129 static ImmutableMap<BindingKey, FrameworkField> generateBindingFieldsForDependencies( in generateBindingFieldsForDependencies()
[all …]
DBindingGraph.java63 import static dagger.internal.codegen.BindingKey.Kind.CONTRIBUTION;
82 abstract ImmutableMap<BindingKey, ResolvedBindings> resolvedBindings(); in resolvedBindings()
278 final Map<BindingKey, ResolvedBindings> resolvedBindings;
279 final Deque<BindingKey> cycleStack = new ArrayDeque<>();
280 final Cache<BindingKey, Boolean> dependsOnLocalMultibindingsCache =
281 CacheBuilder.newBuilder().<BindingKey, Boolean>build();
308 BindingKey bindingKey = request.bindingKey();
490 final BindingKey bindingKey) {
502 BindingKey bindingKey = request.bindingKey();
550 return dependsOnLocalMultibindings(previouslyResolvedBindings, new HashSet<BindingKey>());
[all …]
DDependencyRequest.java64 static final Function<DependencyRequest, BindingKey> BINDING_KEY_FUNCTION =
65 new Function<DependencyRequest, BindingKey>() {
66 @Override public BindingKey apply(DependencyRequest request) {
94 BindingKey bindingKey() { in bindingKey()
102 return BindingKey.create(BindingKey.Kind.CONTRIBUTION, key()); in bindingKey()
104 return BindingKey.create(BindingKey.Kind.MEMBERS_INJECTION, key()); in bindingKey()
DMembersInjectorGenerator.java148 ImmutableMap<BindingKey, FrameworkField> fields =
152 ImmutableMap.Builder<BindingKey, FieldWriter> dependencyFieldsBuilder =
163 for (Entry<BindingKey, FrameworkField> fieldEntry : fields.entrySet()) {
164 BindingKey bindingKey = fieldEntry.getKey();
207 ImmutableMap<BindingKey, FieldWriter> dependencyFields = dependencyFieldsBuilder.build();
251 ImmutableMap<BindingKey, FieldWriter> dependencyFields,
267 ImmutableMap<BindingKey, FieldWriter> dependencyFields, InjectionSite injectionSite) {
288 ImmutableMap<BindingKey, FieldWriter> dependencyFields,
316 ImmutableMap<BindingKey, FieldWriter> dependencyFields,
DProducerFactoryGenerator.java108 ImmutableMap<BindingKey, FrameworkField> fields = in write()
225 protected final ImmutableMap<BindingKey, FrameworkField> fields;
228 FutureTransform(ImmutableMap<BindingKey, FrameworkField> fields, ProductionBinding binding) { in FutureTransform() argument
251 ImmutableMap<BindingKey, FrameworkField> fields, in create() argument
267 ImmutableMap<BindingKey, FrameworkField> fields, ProductionBinding binding) { in NoArgFutureTransform() argument
306 ImmutableMap<BindingKey, FrameworkField> fields, in SingleArgFutureTransform() argument
351 ImmutableMap<BindingKey, FrameworkField> fields, in MultiArgFutureTransform() argument
368 new Function<BindingKey, Snippet>() { in futureSnippet()
370 public Snippet apply(BindingKey bindingKey) { in futureSnippet()
422 ImmutableMap<BindingKey, FrameworkField> fields,
DBinding.java81 BindingKey.Kind bindingKeyKind() { in bindingKeyKind()
84 return BindingKey.Kind.MEMBERS_INJECTION; in bindingKeyKind()
87 return BindingKey.Kind.CONTRIBUTION; in bindingKeyKind()
127 BindingKey bindingKey() { in bindingKey()
128 return BindingKey.create(bindingType().bindingKeyKind(), key()); in bindingKey()
DFrameworkField.java47 Class<?> frameworkClass, BindingKey bindingKey, String name) { in createWithTypeFromKey()
57 Class<?> frameworkClass, BindingKey bindingKey, String name) { in createForMapBindingContribution()
91 BindingKey bindingKey = resolvedBindings.bindingKey(); in createForResolvedBindings()
163 abstract BindingKey bindingKey(); in bindingKey()
DAbstractComponentWriter.java131 private final Map<BindingKey, InitializationState> initializationStates = new HashMap<>();
135 private final Map<BindingKey, MemberSelect> memberSelectSnippets = new HashMap<>();
218 private Snippet getMemberSelectSnippet(BindingKey key) { in getMemberSelectSnippet()
222 protected MemberSelect getMemberSelect(BindingKey key) { in getMemberSelect()
233 protected InitializationState getInitializationState(BindingKey bindingKey) { in getInitializationState()
239 private void setInitializationState(BindingKey bindingKey, InitializationState state) { in setInitializationState()
462 BindingKey bindingKey = resolvedBindings.bindingKey(); in addField()
479 if (bindingKey.kind().equals(BindingKey.Kind.CONTRIBUTION)) { in addField()
603 BindingKey bindingKey = interfaceRequest.bindingKey(); in implementInterfaceMethods()
680 for (BindingKey bindingKey : graph.resolvedBindings().keySet()) { in initializeFrameworkTypes()
[all …]
DBindingKey.java28 abstract class BindingKey { class
34 static BindingKey create(Kind kind, Key key) { in create()
DMissingBindingSuggestions.java33 static ImmutableList<String> forKey(BindingGraph topLevelGraph, BindingKey key) { in forKey()
DBindingGraphValidator.java171 new LinkedHashSet<BindingKey>(), in validateSubgraph()
242 LinkedHashSet<BindingKey> keysInPath, in traverseRequest()
247 BindingKey requestKey = request.bindingKey(); in traverseRequest()
716 ImmutableMap<BindingKey, ResolvedBindings> resolvedBindings = subject.resolvedBindings(); in validateComponentScope()
720 if (bindings.bindingKey().kind().equals(BindingKey.Kind.CONTRIBUTION)) { in validateComponentScope()
788 BindingKey bindingKey = path.peek().request().bindingKey(); in reportMissingBinding()
1144 BindingKey bindingKey = request.bindingKey();
DSubcomponentWriter.java75 protected InitializationState getInitializationState(BindingKey bindingKey) { in getInitializationState()
90 protected MemberSelect getMemberSelect(BindingKey key) { in getMemberSelect()
DFactoryGenerator.java169 ImmutableMap<BindingKey, FrameworkField> fields = in write()
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/
DBindingFieldTest.java68 BindingKey.create(BindingKey.Kind.CONTRIBUTION, key), "test") in frameworkType()
73 BindingKey.create(BindingKey.Kind.MEMBERS_INJECTION, key), "test") in frameworkType()
83 BindingKey.create(BindingKey.Kind.CONTRIBUTION, key), "foo").name()) in nameSuffix()
86 BindingKey.create(BindingKey.Kind.CONTRIBUTION, key), "fooProvider").name()) in nameSuffix()
/external/clang/lib/StaticAnalyzer/Core/
DRegionStore.cpp43 class BindingKey { class
54 explicit BindingKey(const SubRegion *r, const SubRegion *Base, Kind k) in BindingKey() function in __anon38c42dcb0111::BindingKey
61 explicit BindingKey(const MemRegion *r, uint64_t offset, Kind k) in BindingKey() function in __anon38c42dcb0111::BindingKey
94 static BindingKey Make(const MemRegion *R, Kind k);
96 bool operator<(const BindingKey &X) const { in operator <()
104 bool operator==(const BindingKey &X) const { in operator ==()
113 BindingKey BindingKey::Make(const MemRegion *R, Kind k) { in Make()
116 return BindingKey(cast<SubRegion>(R), cast<SubRegion>(RO.getRegion()), k); in Make()
118 return BindingKey(RO.getRegion(), RO.getOffset(), k); in Make()
123 raw_ostream &operator<<(raw_ostream &os, BindingKey K) { in operator <<()
[all …]