Skip to content

Commit

Permalink
Add descriptions for each zinc phases
Browse files Browse the repository at this point in the history
  • Loading branch information
Friendseeker committed Dec 24, 2023
1 parent 3b49b2d commit 581f231
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ sealed class ZincCompiler(settings: Settings, dreporter: DelegatingReporter, out
val analyzer = new Analyzer(global)
def newPhase(prev: Phase) = analyzer.newPhase(prev)
def name = phaseName

def description = "analyzes the generated class files and maps them to sources"
}

/** Phase that extracts dependency information */
Expand All @@ -116,6 +118,8 @@ sealed class ZincCompiler(settings: Settings, dreporter: DelegatingReporter, out
val dependency = new Dependency(global)
def newPhase(prev: Phase) = dependency.newPhase(prev)
def name = phaseName

def description = "extracts dependency information"
}

/**
Expand All @@ -136,13 +140,18 @@ sealed class ZincCompiler(settings: Settings, dreporter: DelegatingReporter, out
val api = new API(global)
def newPhase(prev: Phase) = api.newPhase(prev)
def name = phaseName

def description = "constructs a representation of the public API"
}

override lazy val phaseDescriptors = {
phasesSet += sbtAnalyzer
phasesDescMap(sbtAnalyzer) = sbtAnalyzer.description
if (callback.enabled()) {
phasesSet += sbtDependency
phasesDescMap(sbtDependency) = sbtDependency.description
phasesSet += apiExtractor
phasesDescMap(apiExtractor) = apiExtractor.description
}
this.computePhaseDescriptors
}
Expand Down

0 comments on commit 581f231

Please sign in to comment.