GeneratedDeclarations

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

Constructors

Link copied to clipboard
private constructor(project: McProject)

Types

Link copied to clipboard
Link copied to clipboard
private data class SourceSetWithDeclarations(val sourceSetName: SourceSetName, val sourceDeclarations: LazySet<DeclaredName>)

Properties

Link copied to clipboard
Link copied to clipboard

Just a cache of the results from filtering all generated for a particular set of sources.

Link copied to clipboard
Link copied to clipboard
private val project: McProject
Link copied to clipboard

the map holds all generated declarations for a given ReferenceName. This is more efficient than a linear search/filter of a full list of Generated when there will be lookups for more than one source.

Functions

Link copied to clipboard
suspend fun get(sourceSetName: SourceSetName): LazySet<Generated>
suspend fun get(sourceSetName: SourceSetName, sourceDeclarations: LazySet<DeclaredName>): LazySet<Generated>
Link copied to clipboard
private suspend fun sourcesToGenerated(sourceSetName: SourceSetName): Map<McName, Set<Generated>>