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

Unified Diff: pkg/dart_scanner/lib/src/precedence.dart

Issue 2631503002: Modify scanner and parser to be standalone packages. (Closed)
Patch Set: Created 3 years, 11 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
Index: pkg/dart_scanner/lib/src/precedence.dart
diff --git a/pkg/dart_scanner/lib/src/precedence.dart b/pkg/dart_scanner/lib/src/precedence.dart
index 08475ec6754be67a8899ba73387212f0956f5875..46cee9117c76ebc055456693aa0bc7b112f4fcdc 100644
--- a/pkg/dart_scanner/lib/src/precedence.dart
+++ b/pkg/dart_scanner/lib/src/precedence.dart
@@ -2,11 +2,20 @@
// 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 dart2js.tokens.precedence.constants;
+library scanner.precedence;
-import 'precedence.dart' show PrecedenceInfo;
import 'token_constants.dart';
+class PrecedenceInfo {
+ final String value;
+ final int precedence;
+ final int kind;
+
+ const PrecedenceInfo(this.value, this.precedence, this.kind);
+
+ toString() => 'PrecedenceInfo($value, $precedence, $kind)';
+}
+
// TODO(ahe): The following are not tokens in Dart.
const PrecedenceInfo BACKPING_INFO =
const PrecedenceInfo('`', 0, BACKPING_TOKEN);

Powered by Google App Engine
This is Rietveld 408576698