aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/ast/untpd.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2015-05-14 12:05:12 +1000
committerJason Zaugg <jzaugg@gmail.com>2015-05-14 12:05:12 +1000
commitf14f5c8ce119e656f818c62ef8bcbd2490edf0fc (patch)
treec8200267b91804feeb4445eac9ec41bf39153e56 /src/dotty/tools/dotc/ast/untpd.scala
parentb6b1fb3e8234cb3df406b26e97c6f58ed77bfedc (diff)
downloaddotty-f14f5c8ce119e656f818c62ef8bcbd2490edf0fc.tar.gz
dotty-f14f5c8ce119e656f818c62ef8bcbd2490edf0fc.tar.bz2
dotty-f14f5c8ce119e656f818c62ef8bcbd2490edf0fc.zip
Remove redundant parentheses.
Diffstat (limited to 'src/dotty/tools/dotc/ast/untpd.scala')
-rw-r--r--src/dotty/tools/dotc/ast/untpd.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/ast/untpd.scala b/src/dotty/tools/dotc/ast/untpd.scala
index 1c1f7dd61..f009d6a86 100644
--- a/src/dotty/tools/dotc/ast/untpd.scala
+++ b/src/dotty/tools/dotc/ast/untpd.scala
@@ -274,7 +274,7 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
case _ => new PolyTypeDef(name, tparams, rhs).withPos(tree.pos)
}
def SymbolLit(tree: Tree)(str: String) = tree match {
- case tree: SymbolLit if (str == tree.str) => tree
+ case tree: SymbolLit if str == tree.str => tree
case _ => untpd.SymbolLit(str).withPos(tree.pos)
}
def InterpolatedString(tree: Tree)(id: TermName, strings: List[Literal], elems: List[Tree]) = tree match {
@@ -298,15 +298,15 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
case _ => untpd.PrefixOp(op, od).withPos(tree.pos)
}
def Parens(tree: Tree)(t: Tree) = tree match {
- case tree: Parens if (t eq tree.t) => tree
+ case tree: Parens if t eq tree.t => tree
case _ => untpd.Parens(t).withPos(tree.pos)
}
def Tuple(tree: Tree)(trees: List[Tree]) = tree match {
- case tree: Tuple if (trees eq tree.trees) => tree
+ case tree: Tuple if trees eq tree.trees => tree
case _ => untpd.Tuple(trees).withPos(tree.pos)
}
def Throw(tree: Tree)(expr: Tree) = tree match {
- case tree: Throw if (expr eq tree.expr) => tree
+ case tree: Throw if expr eq tree.expr => tree
case _ => untpd.Throw(expr).withPos(tree.pos)
}
def WhileDo(tree: Tree)(cond: Tree, body: Tree) = tree match {