summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/reflect/ToolBox.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2014-02-06 19:01:49 +0100
committerEugene Burmako <xeno.by@gmail.com>2014-02-15 09:23:57 +0100
commit24780095d14938e60e28c710c47ed69629b7afc7 (patch)
tree7be93fa0110afd06c76a158a378d098d39908399 /src/compiler/scala/tools/reflect/ToolBox.scala
parentfa8f4022754356859f3af1c4ffbac02ab3dc3e7c (diff)
downloadscala-24780095d14938e60e28c710c47ed69629b7afc7.tar.gz
scala-24780095d14938e60e28c710c47ed69629b7afc7.tar.bz2
scala-24780095d14938e60e28c710c47ed69629b7afc7.zip
addresses pull request feedback
Diffstat (limited to 'src/compiler/scala/tools/reflect/ToolBox.scala')
-rw-r--r--src/compiler/scala/tools/reflect/ToolBox.scala6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/reflect/ToolBox.scala b/src/compiler/scala/tools/reflect/ToolBox.scala
index f47db49718..dfe53be6c9 100644
--- a/src/compiler/scala/tools/reflect/ToolBox.scala
+++ b/src/compiler/scala/tools/reflect/ToolBox.scala
@@ -23,7 +23,7 @@ trait ToolBox[U <: scala.reflect.api.Universe] {
/** Represents mode of operations of the typechecker underlying `c.typecheck` calls.
* Is necessary since the shape of the typechecked tree alone is not enough to guess how it should be typechecked.
- * Can be EXPRmode (typecheck as a term) or TYPEmode (typecheck as a type).
+ * Can be EXPRmode (typecheck as a term), TYPEmode (typecheck as a type) or PATTERNmode (typecheck as a pattern).
*/
type TypecheckMode
@@ -36,6 +36,10 @@ trait ToolBox[U <: scala.reflect.api.Universe] {
*/
val TYPEmode: TypecheckMode
+ /** Indicates that an argument to `c.typecheck` should be typechecked as a pattern.
+ */
+ val PATTERNmode: TypecheckMode
+
/** @see `Typers.typecheck`
*/
@deprecated("Use `tb.typecheck` instead", "2.11.0")