MCPcopy Index your code
hub / github.com/google/dagger / forDelegateBinding

Method forDelegateBinding

java/dagger/internal/codegen/KeyFactory.java:245–249  ·  view source on GitHub ↗

Returns the key for a binding associated with a DelegateDeclaration. If delegateDeclaration is @IntoMap, transforms the Map key from DelegateDeclaration#key() to Map >. If delegateDeclaration is not a map contribution,

(DelegateDeclaration delegateDeclaration, Class<?> frameworkType)

Source from the content-addressed store, hash-verified

243 * delegateDeclaration} is not a map contribution, its key is returned.
244 */
245 Key forDelegateBinding(DelegateDeclaration delegateDeclaration, Class<?> frameworkType) {
246 return delegateDeclaration.contributionType().equals(ContributionType.MAP)
247 ? wrapMapValue(delegateDeclaration.key(), frameworkType)
248 : delegateDeclaration.key();
249 }
250
251 private Key forMethod(ExecutableElement method, TypeMirror keyType) {
252 return forQualifiedType(getQualifier(method), keyType);

Callers 1

buildDelegateBindingMethod · 0.80

Calls 4

wrapMapValueMethod · 0.95
contributionTypeMethod · 0.65
keyMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected