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

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

Issue 2792053002: Scan generic method comments with Fasta. (Closed)
Patch Set: Created 3 years, 8 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.precedence; 5 library fasta.scanner.precedence;
6 6
7 import '../../scanner/token.dart'; 7 import '../../scanner/token.dart';
8 import 'token_constants.dart'; 8 import 'token_constants.dart';
9 9
10 class PrecedenceInfo implements TokenType { 10 class PrecedenceInfo implements TokenType {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 INT_INFO, 88 INT_INFO,
89 STRING_INFO, 89 STRING_INFO,
90 OPEN_SQUARE_BRACKET_INFO, 90 OPEN_SQUARE_BRACKET_INFO,
91 CLOSE_SQUARE_BRACKET_INFO, 91 CLOSE_SQUARE_BRACKET_INFO,
92 DOUBLE_INFO, 92 DOUBLE_INFO,
93 STRING_INTERPOLATION_INFO, 93 STRING_INTERPOLATION_INFO,
94 STRING_INTERPOLATION_IDENTIFIER_INFO, 94 STRING_INTERPOLATION_IDENTIFIER_INFO,
95 HEXADECIMAL_INFO, 95 HEXADECIMAL_INFO,
96 SINGLE_LINE_COMMENT_INFO, 96 SINGLE_LINE_COMMENT_INFO,
97 MULTI_LINE_COMMENT_INFO, 97 MULTI_LINE_COMMENT_INFO,
98 GENERIC_METHOD_TYPE_ASSIGN,
99 GENERIC_METHOD_TYPE_LIST,
98 ]; 100 ];
99 101
100 @override 102 @override
101 bool get isAdditiveOperator => precedence == ADDITIVE_PRECEDENCE; 103 bool get isAdditiveOperator => precedence == ADDITIVE_PRECEDENCE;
102 104
103 @override 105 @override
104 bool get isAssignmentOperator => precedence == ASSIGNMENT_PRECEDENCE; 106 bool get isAssignmentOperator => precedence == ASSIGNMENT_PRECEDENCE;
105 107
106 @override 108 @override
107 bool get isAssociativeOperator => 109 bool get isAssociativeOperator =>
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 STRING_INTERPOLATION_IDENTIFIER_TOKEN); 391 STRING_INTERPOLATION_IDENTIFIER_TOKEN);
390 392
391 const PrecedenceInfo HEXADECIMAL_INFO = 393 const PrecedenceInfo HEXADECIMAL_INFO =
392 const PrecedenceInfo('hexadecimal', 'HEXADECIMAL', 0, HEXADECIMAL_TOKEN); 394 const PrecedenceInfo('hexadecimal', 'HEXADECIMAL', 0, HEXADECIMAL_TOKEN);
393 395
394 const PrecedenceInfo SINGLE_LINE_COMMENT_INFO = 396 const PrecedenceInfo SINGLE_LINE_COMMENT_INFO =
395 const PrecedenceInfo('comment', 'SINGLE_LINE_COMMENT', 0, COMMENT_TOKEN); 397 const PrecedenceInfo('comment', 'SINGLE_LINE_COMMENT', 0, COMMENT_TOKEN);
396 398
397 const PrecedenceInfo MULTI_LINE_COMMENT_INFO = 399 const PrecedenceInfo MULTI_LINE_COMMENT_INFO =
398 const PrecedenceInfo('comment', 'MULTI_LINE_COMMENT', 0, COMMENT_TOKEN); 400 const PrecedenceInfo('comment', 'MULTI_LINE_COMMENT', 0, COMMENT_TOKEN);
401
402 const PrecedenceInfo GENERIC_METHOD_TYPE_ASSIGN = const PrecedenceInfo(
403 'generic_comment_assign',
404 'GENERIC_METHOD_TYPE_ASSIGN',
405 0,
406 GENERIC_METHOD_TYPE_ASSIGN_TOKEN);
407
408 const PrecedenceInfo GENERIC_METHOD_TYPE_LIST = const PrecedenceInfo(
409 'generic_comment_list',
410 'GENERIC_METHOD_TYPE_LIST',
411 0,
412 GENERIC_METHOD_TYPE_LIST_TOKEN);
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/array_based_scanner.dart ('k') | pkg/front_end/lib/src/fasta/scanner/token.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698