Skip to content

Commit efe6861

Browse files
committed
Initial implementation of Java scanner and parser
Ported from scalac 2.11.x branch SHA 9753f23f9362b25a9f481b11dd8d51187187882a This is mostly a direct port, with few significant dotty-specific changes needed. The two more significant changes are: In dotty, the first constructor of a class is pulled out separately from the other stats in the Template. The keyword detection code (buildKeywordArray) was moved into Tokens so that it can more cleanly be shared by the Scala and Java scanners.
1 parent 1a088c8 commit efe6861

File tree

9 files changed

+1788
-204
lines changed

9 files changed

+1788
-204
lines changed

src/dotty/tools/dotc/core/Flags.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,9 @@ object Flags {
354354
/** Symbol is a Java default method */
355355
final val DefaultMethod = termFlag(39, "<defaultmethod>")
356356

357+
/** Symbol is a Java enum */
358+
final val Enum = commonFlag(40, "<enum>")
359+
357360
// Flags following this one are not pickled
358361

359362
/** Denotation is in train of being loaded and completed, used to catch cyclic dependencies */

0 commit comments

Comments
 (0)