-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #546 from romanowski/better-comments
New using directive syntax
- Loading branch information
Showing
63 changed files
with
772 additions
and
791 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// File was generated from based on docs/cookbooks/scala-versions.md, do not edit manually! | ||
|
||
// using scala 2.12.5 | ||
//> using scala 2.12.5 | ||
|
||
object OldCode | ||
//rest of the config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// using lib "com.lihaoyi::utest::0.7.10" | ||
//> using lib "com.lihaoyi::utest::0.7.10" | ||
|
||
import utest._ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
modules/build/src/main/scala/scala/build/PersistentDiagnosticLogger.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package scala.build | ||
|
||
import java.io.PrintStream | ||
|
||
import scala.build.blooprifle.BloopRifleLogger | ||
import scala.build.errors.{BuildException, Diagnostic} | ||
import scala.scalanative.{build => sn} | ||
|
||
class PersistentDiagnosticLogger(parent: Logger) extends Logger { | ||
private val diagBuilder = List.newBuilder[Diagnostic] | ||
|
||
def diagnostics = diagBuilder.result() | ||
|
||
// TODO Use macros for log and debug calls to have zero cost when verbosity <= 0 | ||
def message(message: => String): Unit = parent.message(message) | ||
def log(s: => String): Unit = parent.log(s) | ||
def log(s: => String, debug: => String): Unit = parent.log(s, debug) | ||
def debug(s: => String): Unit = parent.debug(s) | ||
|
||
def log(diagnostics: Seq[Diagnostic]): Unit = { | ||
parent.log(diagnostics) | ||
diagBuilder ++= diagnostics | ||
} | ||
|
||
def log(ex: BuildException): Unit = parent.log(ex) | ||
def exit(ex: BuildException): Nothing = parent.exit(ex) | ||
|
||
def coursierLogger: coursier.cache.CacheLogger = parent.coursierLogger | ||
def bloopRifleLogger: BloopRifleLogger = parent.bloopRifleLogger | ||
def scalaNativeTestLogger: sn.Logger = parent.scalaNativeTestLogger | ||
def scalaNativeCliInternalLoggerOptions: List[String] = parent.scalaNativeCliInternalLoggerOptions | ||
|
||
def compilerOutputStream: PrintStream = parent.compilerOutputStream | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.