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

Method getReadableSource

java/dagger/internal/codegen/Scopes.java:75–77  ·  view source on GitHub ↗

Returns the readable source representation (name with @ prefix) of the scope's annotation type. It's readable source because it has had common package prefixes removed, e.g. @javax.inject.Singleton is returned as @Singleton. Does not return any annotation values, since {@link

(Scope scope)

Source from the content-addressed store, hash-verified

73 * are not supposed to have any.
74 */
75 static String getReadableSource(Scope scope) {
76 return stripCommonTypePrefixes("@" + scope.scopeAnnotationElement().getQualifiedName());
77 }
78
79 /** Returns all of the associated scopes for a source code element. */
80 static ImmutableSet<Scope> scopesOf(Element element) {

Calls 2

Tested by

no test coverage detected