| Index: pkg/front_end/lib/src/fasta/scanner/token.dart
|
| diff --git a/pkg/front_end/lib/src/fasta/scanner/token.dart b/pkg/front_end/lib/src/fasta/scanner/token.dart
|
| index 92e4b1eb6300927e6fd6a0af73675d4af74c9ff0..f5a27240918bd5a62ef5c8b7472f2c55a5df89a4 100644
|
| --- a/pkg/front_end/lib/src/fasta/scanner/token.dart
|
| +++ b/pkg/front_end/lib/src/fasta/scanner/token.dart
|
| @@ -101,7 +101,7 @@ abstract class Token implements analyzer.TokenWithComment {
|
| * True if this token is an identifier. Some keywords allowed as identifiers,
|
| * see implementation in [KeywordToken].
|
| */
|
| - bool isIdentifier();
|
| + bool get isIdentifier;
|
|
|
| bool get isPseudo => false;
|
|
|
| @@ -262,7 +262,7 @@ class SymbolToken extends Token {
|
| String get stringValue => info.value;
|
|
|
| @override
|
| - bool isIdentifier() => false;
|
| + bool get isIdentifier => false;
|
|
|
| @override
|
| String toString() => "SymbolToken(${isEof ? '-eof-' : lexeme})";
|
| @@ -336,7 +336,7 @@ class KeywordToken extends Token implements analyzer.KeywordTokenWithComment {
|
|
|
| String get stringValue => keyword.lexeme;
|
|
|
| - bool isIdentifier() => keyword.isPseudo || keyword.isBuiltIn;
|
| + bool get isIdentifier => keyword.isPseudo || keyword.isBuiltIn;
|
|
|
| bool get isPseudo => keyword.isPseudo;
|
|
|
| @@ -464,7 +464,7 @@ class StringToken extends Token implements analyzer.StringTokenWithComment {
|
| /// See [Token.stringValue] for an explanation.
|
| String get stringValue => null;
|
|
|
| - bool isIdentifier() => identical(kind, IDENTIFIER_TOKEN);
|
| + bool get isIdentifier => identical(kind, IDENTIFIER_TOKEN);
|
|
|
| String toString() => "StringToken($lexeme)";
|
|
|
|
|