Package

com.thoughtworks.dsl

compilerplugins

Permalink

package compilerplugins

Visibility
  1. Public
  2. All

Type Members

  1. final class BangNotation extends Plugin

    Permalink

    The Scala compiler plug-in to convert ordinary Scala control flows to continuation-passing style, which will then be interpreted by Dsl.

    The Scala compiler plug-in to convert ordinary Scala control flows to continuation-passing style, which will then be interpreted by Dsl.

    Usage

    // In your build.sbt
    addCompilerPlugin("com.thoughtworks.dsl" %% "compilerplugins-bangnotation" % "latest.release")
    

    Author:

    杨博 (Yang Bo)

  2. final class ResetEverywhere extends Plugin

    Permalink

    A Scala compiler plug-in to enable !-notation for every methods and functions.

    A Scala compiler plug-in to enable !-notation for every methods and functions.

    Add the following setting in your build.sbt to enable this plug-in.

    // build.sbt
    addCompilerPlugin("com.thoughtworks.dsl" %% "compilerplugins-reseteverywhere" % "latest.release")
    

    Author:

    杨博 (Yang Bo)

    Note

    Once this ResetEverywhere plug-in is enabled, the @reset annotations are added to class fields, every methods and every functions automatically. Some other macros or compiler plug-ins may conflict with those @reset annotations.

Ungrouped