diff options
author | odersky <odersky@gmail.com> | 2017-02-08 22:17:09 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-08 22:17:09 +1100 |
commit | 99679cffc0a5d20e7e7f3c090eb310a6134eeee7 (patch) | |
tree | a62c232c33a23e525687743f31a31a295014dd7d /compiler/src/dotty/tools/dotc/ast/Trees.scala | |
parent | de2c4477d2b9dfc0393b4acba5525fa9714835b9 (diff) | |
parent | b0576e977c26a86a400755ab9810b90af73b3b8d (diff) | |
download | dotty-99679cffc0a5d20e7e7f3c090eb310a6134eeee7.tar.gz dotty-99679cffc0a5d20e7e7f3c090eb310a6134eeee7.tar.bz2 dotty-99679cffc0a5d20e7e7f3c090eb310a6134eeee7.zip |
Merge pull request #1941 from dotty-staging/fix/infix-pos
Better positions for infix operations
Diffstat (limited to 'compiler/src/dotty/tools/dotc/ast/Trees.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/ast/Trees.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/src/dotty/tools/dotc/ast/Trees.scala b/compiler/src/dotty/tools/dotc/ast/Trees.scala index b492de748..bf11a442e 100644 --- a/compiler/src/dotty/tools/dotc/ast/Trees.scala +++ b/compiler/src/dotty/tools/dotc/ast/Trees.scala @@ -334,10 +334,15 @@ object Trees { extends RefTree[T] { type ThisTree[-T >: Untyped] = Ident[T] def qualifier: Tree[T] = genericEmptyTree + + /** Is this a `BackquotedIdent` ? */ + def isBackquoted: Boolean = false } class BackquotedIdent[-T >: Untyped] private[ast] (name: Name) extends Ident[T](name) { + override def isBackquoted: Boolean = true + override def toString = s"BackquotedIdent($name)" } |