blob: 93be64cf113c540e9a5e261e6cc23b46d1dfd29e [file] [log] [blame]
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library _fe_analyzer_shared.parser.top_level_parser;
import '../scanner/token.dart' show Token;
import 'declaration_kind.dart' show DeclarationKind;
import 'class_member_parser.dart' show ClassMemberParser;
import 'listener.dart' show Listener;
/// Parser which only parses top-level elements, but ignores their bodies.
/// Use [Parser] to parse everything.
class TopLevelParser extends ClassMemberParser {
TopLevelParser(Listener listener) : super(listener);
Token parseClassOrMixinOrExtensionBody(Token token, DeclarationKind kind,
String? enclosingDeclarationName) =>