AnvilGraph

Represents a graph of Anvil scopes and their associated declarations.

Parameters

project

the McProject for which this graph is defined

delegate

a cache that maps from SourceSetName to a map of AnvilScopeName to AnvilScopedDeclarations

Constructors

Link copied to clipboard

Types

Link copied to clipboard

Companion object that acts as the key for AnvilGraph within a ProjectContext.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val key: ProjectContext.Key<AnvilGraph>
Link copied to clipboard
Link copied to clipboard
private val project: McProject

Functions

Link copied to clipboard

Retrieves a list of all Anvil scoped declarations for each source set in the project.

Link copied to clipboard

Retrieves the Anvil scoped declarations for a specific source set.

Link copied to clipboard
private suspend fun McProject.getAnvilScopeName(scopeNameEntry: AnvilScopeNameEntry, sourceSetName: SourceSetName, kotlinFile: JvmFile): AnvilScopeName
Link copied to clipboard

Retrieves a list of all Anvil scope names that have merges.