示例#1
0
 /*
  * toplevelObject[| import]*
  */
 private void parseToplevelDeclarations(boolean insideBlock) {
   while (!eof() && (!insideBlock || !at(RBRACE))) {
     if (at(IMPORT_KEYWORD)) {
       parseImportDirective();
     } else {
       parseTopLevelObject();
     }
   }
 }
示例#2
0
 private void parseImportDirectives() {
   // TODO: Duplicate with parsing imports in parseToplevelDeclarations
   while (at(IMPORT_KEYWORD)) {
     parseImportDirective();
   }
 }