AnvilGraph
data class AnvilGraph(val project: McProject, val delegate: SafeCache<SourceSetName, Map<AnvilScopeName, AnvilScopedDeclarations>>) : ProjectContext.Element(source)
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
constructor(project: McProject, delegate: SafeCache<SourceSetName, Map<AnvilScopeName, AnvilScopedDeclarations>>)
Types
Link copied to clipboard
Companion object that acts as the key for AnvilGraph within a ProjectContext.
Properties
Functions
Link copied to clipboard
Retrieves a list of all Anvil scoped declarations for each source set in the project.
Link copied to clipboard
private suspend fun McProject.declarationsForScopeName(sourceSetName: SourceSetName): MutableMap<AnvilScopeName, AnvilScopedDeclarations>
Link copied to clipboard
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.