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

Side by Side Diff: pkg/front_end/lib/src/fasta/scanner/token.dart

Issue 2767633004: Report compile-time errors on cyclic hierarchies. (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library fasta.scanner.token; 5 library fasta.scanner.token;
6 6
7 import '../../scanner/token.dart' as analyzer; 7 import '../../scanner/token.dart' as analyzer;
8 8
9 import 'keyword.dart' show Keyword; 9 import 'keyword.dart' show Keyword;
10 10
11 import 'precedence.dart' 11 import 'precedence.dart'
12 show 12 show
13 AS_INFO, 13 AS_INFO,
14 BAD_INPUT_INFO, 14 BAD_INPUT_INFO,
15 EOF_INFO, 15 EOF_INFO,
16 IDENTIFIER_INFO, 16 IDENTIFIER_INFO,
17 IS_INFO, 17 IS_INFO,
18 KEYWORD_INFO, 18 KEYWORD_INFO,
19 MULTI_LINE_COMMENT_INFO,
20 SINGLE_LINE_COMMENT_INFO,
21 PrecedenceInfo; 19 PrecedenceInfo;
22 20
23 import 'token_constants.dart' show IDENTIFIER_TOKEN; 21 import 'token_constants.dart' show IDENTIFIER_TOKEN;
24 22
25 import 'string_canonicalizer.dart'; 23 import 'string_canonicalizer.dart';
26 24
27 /** 25 /**
28 * A token that doubles as a linked list. 26 * A token that doubles as a linked list.
29 */ 27 */
30 abstract class Token implements analyzer.TokenWithComment { 28 abstract class Token implements analyzer.TokenWithComment {
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 identical(value, "<=") || 626 identical(value, "<=") ||
629 identical(value, "<") || 627 identical(value, "<") ||
630 identical(value, "&") || 628 identical(value, "&") ||
631 identical(value, "^") || 629 identical(value, "^") ||
632 identical(value, "|"); 630 identical(value, "|");
633 } 631 }
634 632
635 bool isTernaryOperator(String value) => identical(value, "[]="); 633 bool isTernaryOperator(String value) => identical(value, "[]=");
636 634
637 bool isMinusOperator(String value) => identical(value, "-"); 635 bool isMinusOperator(String value) => identical(value, "-");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698