Permalink
Browse files

#35 fixed classname clash

  • Loading branch information...
1 parent 0597a22 commit 358f1921c0185b2768e4ea96d428da4a7a5fab98 @timowest committed Feb 26, 2012
@@ -34,8 +34,8 @@ class Primitives extends UnitTransformerBase {
}
override def visit(n: FieldAccess, arg: CompilationUnit): Node = n match {
- case Field(str("Boolean"), "TRUE") => TRUE
- case Field(str("Boolean"), "FALSE") => FALSE
+ case FieldAccess(str("Boolean"), "TRUE") => TRUE
+ case FieldAccess(str("Boolean"), "FALSE") => FALSE
case _ => super.visit(n, arg)
}
@@ -71,7 +71,7 @@ trait Types {
object field {
def unapply(f: Expression) = f match {
- case Field(str("this"), field) => Some(field)
+ case FieldAccess(str("this"), field) => Some(field)
case Name(field) => Some(field)
case _ => None
}
@@ -132,7 +132,7 @@ trait Types {
def unapply(e: Enclosed) = Some(e.getInner)
}
- object Field {
+ object FieldAccess {
def unapply(f: FieldAccess) = Some(f.getScope, f.getField)
}

0 comments on commit 358f192

Please sign in to comment.