/external/dagger2/compiler/src/main/java/dagger/internal/codegen/ |
D | ResolvedBindings.java | 41 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 …]
|
D | SourceFiles.java | 81 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 …]
|
D | BindingGraph.java | 63 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 …]
|
D | DependencyRequest.java | 64 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()
|
D | MembersInjectorGenerator.java | 148 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,
|
D | ProducerFactoryGenerator.java | 108 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,
|
D | Binding.java | 81 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()
|
D | FrameworkField.java | 47 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()
|
D | AbstractComponentWriter.java | 131 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 …]
|
D | BindingKey.java | 28 abstract class BindingKey { class 34 static BindingKey create(Kind kind, Key key) { in create()
|
D | MissingBindingSuggestions.java | 33 static ImmutableList<String> forKey(BindingGraph topLevelGraph, BindingKey key) { in forKey()
|
D | BindingGraphValidator.java | 171 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();
|
D | SubcomponentWriter.java | 75 protected InitializationState getInitializationState(BindingKey bindingKey) { in getInitializationState() 90 protected MemberSelect getMemberSelect(BindingKey key) { in getMemberSelect()
|
D | FactoryGenerator.java | 169 ImmutableMap<BindingKey, FrameworkField> fields = in write()
|
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/ |
D | BindingFieldTest.java | 68 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/ |
D | RegionStore.cpp | 43 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 …]
|