File tree Expand file tree Collapse file tree 3 files changed +388
-7
lines changed
compiler/src/dotty/tools/dotc/parsing Expand file tree Collapse file tree 3 files changed +388
-7
lines changed Original file line number Diff line number Diff line change @@ -2773,10 +2773,11 @@ object Parsers {
2773
2773
}
2774
2774
2775
2775
/** TopStatSeq ::= TopStat {semi TopStat}
2776
- * TopStat ::= Annotations Modifiers Def
2776
+ * TopStat ::= Import
2777
+ * | Export
2778
+ * | Annotations Modifiers Def
2777
2779
* | Packaging
2778
2780
* | package object objectDef
2779
- * | Import
2780
2781
* |
2781
2782
*/
2782
2783
def topStatSeq (): List [Tree ] = {
@@ -2810,6 +2811,7 @@ object Parsers {
2810
2811
2811
2812
/** TemplateStatSeq ::= [id [`:' Type] `=>'] TemplateStat {semi TemplateStat}
2812
2813
* TemplateStat ::= Import
2814
+ * | Export
2813
2815
* | Annotations Modifiers Def
2814
2816
* | Annotations Modifiers Dcl
2815
2817
* | Expr1
@@ -2895,7 +2897,7 @@ object Parsers {
2895
2897
var mods = defAnnotsMods(localModifierTokens)
2896
2898
for (imod <- implicitMods.mods) mods = addMod(mods, imod)
2897
2899
if (mods.is(Final )) {
2898
- // A final modifier means the local definition is "class-like".
2900
+ // A final modifier means the local definition is "class-like". // FIXME: Deal with modifiers separately
2899
2901
tmplDef(start, mods)
2900
2902
} else {
2901
2903
defOrDcl(start, mods)
You can’t perform that action at this time.
0 commit comments