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