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

Side by Side Diff: pkg/front_end/lib/src/scanner/token.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 /** 5 /**
6 * Defines the tokens that are produced by the scanner, used by the parser, and 6 * Defines the tokens that are produced by the scanner, used by the parser, and
7 * referenced from the [AST structure](ast.dart). 7 * referenced from the [AST structure](ast.dart).
8 */ 8 */
9 import 'dart:collection'; 9 import 'dart:collection';
10 10
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 1029
1030 static const TokenType TILDE_SLASH_EQ = fasta.TILDE_SLASH_EQ_INFO; 1030 static const TokenType TILDE_SLASH_EQ = fasta.TILDE_SLASH_EQ_INFO;
1031 1031
1032 static const TokenType BACKPING = fasta.BACKPING_INFO; 1032 static const TokenType BACKPING = fasta.BACKPING_INFO;
1033 1033
1034 static const TokenType BACKSLASH = fasta.BACKSLASH_INFO; 1034 static const TokenType BACKSLASH = fasta.BACKSLASH_INFO;
1035 1035
1036 static const TokenType PERIOD_PERIOD_PERIOD = fasta.PERIOD_PERIOD_PERIOD_INFO; 1036 static const TokenType PERIOD_PERIOD_PERIOD = fasta.PERIOD_PERIOD_PERIOD_INFO;
1037 1037
1038 static const TokenType GENERIC_METHOD_TYPE_LIST = 1038 static const TokenType GENERIC_METHOD_TYPE_LIST =
1039 const fasta.PrecedenceInfo(null, 'GENERIC_METHOD_TYPE_LIST', 0, -1); 1039 fasta.GENERIC_METHOD_TYPE_LIST;
1040 1040
1041 static const TokenType GENERIC_METHOD_TYPE_ASSIGN = 1041 static const TokenType GENERIC_METHOD_TYPE_ASSIGN =
1042 const fasta.PrecedenceInfo(null, 'GENERIC_METHOD_TYPE_ASSIGN', 0, -1); 1042 fasta.GENERIC_METHOD_TYPE_ASSIGN;
1043 1043
1044 /** 1044 /**
1045 * The name of the token type. 1045 * The name of the token type.
1046 */ 1046 */
1047 String get name; 1047 String get name;
1048 1048
1049 /** 1049 /**
1050 * The lexeme that defines this type of token, or `null` if there is more than 1050 * The lexeme that defines this type of token, or `null` if there is more than
1051 * one possible lexeme for this type of token. 1051 * one possible lexeme for this type of token.
1052 */ 1052 */
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 1156
1157 void set precedingComments(CommentToken comment) { 1157 void set precedingComments(CommentToken comment) {
1158 _precedingComment = comment; 1158 _precedingComment = comment;
1159 _setCommentParent(_precedingComment); 1159 _setCommentParent(_precedingComment);
1160 } 1160 }
1161 1161
1162 @override 1162 @override
1163 Token copy() => 1163 Token copy() =>
1164 new TokenWithComment(type, offset, copyComments(precedingComments)); 1164 new TokenWithComment(type, offset, copyComments(precedingComments));
1165 } 1165 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/token_constants.dart ('k') | pkg/front_end/test/scanner_fasta_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698