Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: pkg/compiler/lib/src/scanner/listener.dart

Issue 1315483006: Split scannerlib.dart into several libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Update try tests Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/scanner/keyword.dart ('k') | pkg/compiler/lib/src/scanner/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/scanner/listener.dart
diff --git a/pkg/compiler/lib/src/scanner/listener.dart b/pkg/compiler/lib/src/scanner/listener.dart
index c3299a3c5eed23f18200e199e261c94cf84b49ea..c582b16d6f50de15010f6807c16c4b4106c14839 100644
--- a/pkg/compiler/lib/src/scanner/listener.dart
+++ b/pkg/compiler/lib/src/scanner/listener.dart
@@ -2,7 +2,71 @@
// 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.
-part of scanner;
+library dart2js.parser.listener;
+
+import '../compiler.dart' show
+ Compiler;
+import '../dart_types.dart' show DynamicType;
+import '../diagnostics/diagnostic_listener.dart';
+import '../diagnostics/invariant.dart' show
+ invariant;
+import '../diagnostics/messages.dart';
+import '../diagnostics/spannable.dart' show
+ Spannable,
+ SpannableAssertionFailure;
+import '../elements/elements.dart' show
+ CompilationUnitElement,
+ ConstructorElement,
+ Element,
+ ElementKind,
+ GetterElement,
+ LibraryElement,
+ MetadataAnnotation,
+ MethodElement,
+ SetterElement;
+import '../elements/modelx.dart' show
+ BaseFunctionElementX,
+ ConstructorElementX,
+ CompilationUnitElementX,
+ DeclarationSite,
+ ElementX,
+ EnumClassElementX,
+ FieldElementX,
+ GetterElementX,
+ LibraryElementX,
+ MetadataAnnotationX,
+ MethodElementX,
+ MixinApplicationElementX,
+ SetterElementX,
+ TypedefElementX,
+ VariableList;
+import '../native/native.dart' as native;
+import '../string_validator.dart' show
+ StringValidator;
+import '../tree/tree.dart';
+import '../util/util.dart' show
+ Link;
+
+import 'class_element_parser.dart' show
+ PartialClassElement;
+import 'keyword.dart' show
+ Keyword;
+import 'parser.dart' show
+ Parser;
+import 'token.dart' show
+ BAD_INPUT_INFO,
+ BadInputToken,
+ BeginGroupToken,
+ EOF_INFO,
+ EOF_TOKEN,
+ ErrorToken,
+ IDENTIFIER_INFO,
+ INDEX_INFO,
+ KeywordToken,
+ StringToken,
+ Token,
+ UnmatchedToken,
+ UnterminatedToken;
const bool VERBOSE = false;
@@ -2292,8 +2356,7 @@ abstract class PartialFunctionMixin implements BaseFunctionElementX {
this.endToken = endToken;
_position = ElementX.findNameToken(
beginToken,
- modifiers.isFactory ||
- identical(kind, ElementKind.GENERATIVE_CONSTRUCTOR),
+ modifiers.isFactory || isGenerativeConstructor,
name, enclosingElement.name);
}
« no previous file with comments | « pkg/compiler/lib/src/scanner/keyword.dart ('k') | pkg/compiler/lib/src/scanner/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698