Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Represents a graph of Anvil scopes and their associated declarations.

Link copied to clipboard
data class AnvilScopedDeclarations(val scopeName: AnvilScopeName, val contributions: MutableSet<QualifiedDeclaredName>, val merges: MutableSet<QualifiedDeclaredName>)

Represents a set of Anvil scope declarations including both contributions and merges.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class Depths(val delegate: SafeCache<SourceSetName, ProjectDepth>, val project: McProject) : ProjectContext.Element
Link copied to clipboard

Cache of all Generated declarations created by this project, where each Generated lists its sources.

Link copied to clipboard
Link copied to clipboard
data class InheritedDependencyWithSource(val projectDependency: ProjectDependency, val source: ProjectDependency?)
Link copied to clipboard
data class JvmFiles(val fileFactoryCache: SafeCache<SourceSetName, JvmFileProvider>, val project: McProject) : ProjectContext.Element

Represents a collection of JVM files for a project.

Link copied to clipboard
data class JvmSourceFiles(val delegate: SafeCache<SourceSetName, Set<File>>, val project: McProject) : ProjectContext.Element

All JVM source files for a specific source set in a project.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ProjectDepth(val dependentProject: McProject, val dependentPath: ProjectPath.StringProjectPath, val depth: Int, val children: List<ProjectDepth>, val sourceSetName: SourceSetName) : Comparable<ProjectDepth>
Link copied to clipboard
Link copied to clipboard
data class ResSourceFiles(val delegate: SafeCache<SourceSetName, Set<File>>, val project: McProject) : ProjectContext.Element

Functions

Link copied to clipboard

Extension function to retrieve AnvilGraph from the ProjectContext.

Link copied to clipboard
Link copied to clipboard
suspend fun ProjectDependency.declarations(projectCache: ProjectCache, packageNameOrNull: PackageName? = null): LazySet<DeclaredName>
Link copied to clipboard
Link copied to clipboard

All projects which are downstream of the receiver project, including those which only inherit via another dependency's api configuration without declaring the dependency directly.

Link copied to clipboard
Link copied to clipboard
suspend fun McProject.depths(): Depths
Link copied to clipboard

shorthand for project.get(GeneratedDeclarations)

suspend fun ProjectContext.generatedDeclarations(sourceSetName: SourceSetName, sourceDeclarations: LazySet<DeclaredName>): LazySet<Generated>
Link copied to clipboard
private suspend fun McProject.generationIsUsedDownstream(generatedRefs: LazySet<Generated>, referencesSourceSetName: SourceSetName): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Retrieves JvmFiles from the ProjectContext.

Link copied to clipboard

Retrieves a flow of JVM files corresponding to the provided source set name from the ProjectContext.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun <T : ConfiguredDependency> T.maybeAsApi(dependentProject: McProject): T
Link copied to clipboard
Link copied to clipboard
suspend fun McProject.mustBeApiIn(dependentProject: McProject, sourceSetName: SourceSetName, isTestFixtures: Boolean): Boolean
private suspend fun McProject.mustBeApiIn(dependentProject: McProject, referencesFromDependencies: Set<ReferenceName>, sourceSetName: SourceSetName, isTestFixtures: Boolean, directMainDependencies: List<McProject>): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun McProject.requireSourceOf(dependencyProject: McProject, sourceSetName: SourceSetName, isTestFixture: Boolean): ProjectDependency
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun McProject.uses(dependency: ConfiguredDependency): Boolean
Link copied to clipboard