aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/parsing/JavaParsers.scala
diff options
context:
space:
mode:
authorThiago Pereira <thiagoandrade6@gmail.com>2016-10-25 00:08:37 -0200
committerThiago Pereira <thiago.pereira@vivareal.com>2016-10-31 10:43:20 -0200
commit1c0e48fe8cd0b44bfcfbd3705c4f7fcbe448a5be (patch)
tree98d56876973bd95fb9ec6928d630e54d89d17b28 /src/dotty/tools/dotc/parsing/JavaParsers.scala
parent9f3005c1b742b6d05e94a93ad9ac31b02f951008 (diff)
downloaddotty-1c0e48fe8cd0b44bfcfbd3705c4f7fcbe448a5be.tar.gz
dotty-1c0e48fe8cd0b44bfcfbd3705c4f7fcbe448a5be.tar.bz2
dotty-1c0e48fe8cd0b44bfcfbd3705c4f7fcbe448a5be.zip
Add error message IdentifierExpected
This commit adds the semantic object fir the ```identifier expected``` error. It is part of the https://github.com/lampepfl/dotty/issues/1589
Diffstat (limited to 'src/dotty/tools/dotc/parsing/JavaParsers.scala')
-rw-r--r--src/dotty/tools/dotc/parsing/JavaParsers.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/parsing/JavaParsers.scala b/src/dotty/tools/dotc/parsing/JavaParsers.scala
index 0be4226ed..b6a423dc7 100644
--- a/src/dotty/tools/dotc/parsing/JavaParsers.scala
+++ b/src/dotty/tools/dotc/parsing/JavaParsers.scala
@@ -21,6 +21,7 @@ import Symbols._
import ast.Trees._
import Decorators._
import StdNames._
+import dotty.tools.dotc.reporting.diagnostic.messages.IdentifierExpected
import dotty.tools.dotc.util.SourceFile
import util.Positions._
import annotation.switch
@@ -230,7 +231,7 @@ object JavaParsers {
case AppliedTypeTree(_, _) | Select(_, _) =>
tree
case _ =>
- syntaxError("identifier expected", tree.pos)
+ syntaxError(IdentifierExpected(tree.show), tree.pos)
errorTypeTree
}
}