c

bloop.reporter

Reporter

abstract class Reporter extends xsbti.Reporter with ConfigurableReporter

A flexible reporter whose configuration is provided by a ReporterConfig. This configuration indicated whether to use colors, how to format messages, etc.

A reporter has internal state and must be instantiated per compilation.

Linear Supertypes
ConfigurableReporter, xsbti.Reporter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Reporter
  2. ConfigurableReporter
  3. Reporter
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Reporter(logger: Logger, cwd: AbsolutePath, sourcePositionMapper: (Position) ⇒ Position, config: ReporterConfig, _problems: Buffer[ProblemPerPhase] = mutable.ArrayBuffer.empty)

    logger

    The logger that will receive the output of the reporter.

    cwd

    The current working directory of the user who started compilation.

    sourcePositionMapper

    A function that transforms positions.

    config

    The configuration for this reporter.

Type Members

  1. case class PositionId(sourcePath: String, pointer: Int) extends Product with Serializable

Abstract Value Members

  1. abstract def logFull(problem: Problem): Unit
    Attributes
    protected
  2. abstract def printSummary(): Unit
    Definition Classes
    Reporter
  3. abstract def reportCancelledCompilation(): Unit

    Report the compile cancellation of this project.

  4. abstract def reportCompilationProgress(progress: Long, total: Long): Unit

    Report the progress from the compiler.

  5. abstract def reportEndIncrementalCycle(durationMs: Long, result: Try[Unit]): Unit

    A function called after every incremental cycle, even if any compilation errors happen.

    A function called after every incremental cycle, even if any compilation errors happen.

    This method is not called if the compilation is a no-op (e.g. same analysis as before).

    durationMs

    The time it took to complete the incremental compiler cycle.

    result

    The result of the incremental cycle. We don't use bsp.StatusCode because the bloop backend, where this method is used, should not depend on bsp4j.

  6. abstract def reportStartCompilation(previousProblems: List[ProblemPerPhase]): Unit

    A function called *always* at the very beginning of compilation.

  7. abstract def reportStartIncrementalCycle(sources: Seq[File], outputDirs: Seq[File]): Unit

    A function called before every incremental cycle with the compilation inputs.

    A function called before every incremental cycle with the compilation inputs.

    This method is not called if the compilation is a no-op (e.g. same analysis as before).

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val _problems: Buffer[ProblemPerPhase]
  5. def allProblems: Seq[Problem]

    All the Problems seen by this reporter.

    All the Problems seen by this reporter.

    Definition Classes
    ReporterConfigurableReporter
  6. def allProblemsPerPhase: Seq[ProblemPerPhase]
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  9. def comment(pos: Position, msg: String): Unit
    Definition Classes
    Reporter → Reporter
  10. def compilationMsgFor(projectName: String, sources: Seq[File]): String

    Create a compilation message summarizing the compilation of sources in projectName.

  11. val config: ReporterConfig

    The configuration for this reporter.

    The configuration for this reporter.

    Definition Classes
    ReporterConfigurableReporter
  12. val cwd: AbsolutePath

    The current working directory of the user who started compilation.

    The current working directory of the user who started compilation.

    Definition Classes
    ReporterConfigurableReporter
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. val filesToPhaseStack: TrieMap[File, List[String]]
    Attributes
    protected
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def hasErrors(): Boolean

    true if this reporter has received errors, false otherwise.

    true if this reporter has received errors, false otherwise.

    Definition Classes
    ReporterConfigurableReporter → Reporter
  19. def hasWarnings(): Boolean

    true if this reporter has received warnings, false otherwise.

    true if this reporter has received warnings, false otherwise.

    Definition Classes
    ReporterConfigurableReporter → Reporter
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def liftProblem(p: xsbti.Problem): Problem
    Attributes
    protected
  23. def log(xproblem: xsbti.Problem): Unit
    Definition Classes
    Reporter → Reporter
  24. val logger: Logger

    Where to log the message

    Where to log the message

    Definition Classes
    ReporterConfigurableReporter
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. val phasesAtFile: TrieMap[File, String]
    Attributes
    protected
  29. def problems(): Array[xsbti.Problem]
    Definition Classes
    Reporter → Reporter
  30. def reportEndCompilation(previousAnalysis: Option[CompileAnalysis], analysis: Option[CompileAnalysis], code: StatusCode): Unit

    A function called at the very end of compilation, before returning from Zinc to bloop.

    A function called at the very end of compilation, before returning from Zinc to bloop.

    This method **is** called if the compilation is a no-op.

    previousAnalysis

    An instance of a previous compiler analysis, if any.

    analysis

    An instance of a new compiler analysis, if no error happened.

    code

    The status code for a given compilation. The status code can be used whenever there is a noop compile and it's successful or cancelled.

  31. def reportNextPhase(phase: String, sourceFile: File): Unit

    Report when the compiler enters in a phase.

  32. def reset(): Unit
    Definition Classes
    Reporter → Reporter
  33. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from ConfigurableReporter

Inherited from xsbti.Reporter

Inherited from AnyRef

Inherited from Any

Ungrouped