Index: pkg/analyzer/lib/src/fasta/token_utils.dart |
diff --git a/pkg/analyzer/lib/src/fasta/token_utils.dart b/pkg/analyzer/lib/src/fasta/token_utils.dart |
index 426d2c82f7f47e2654aaff3c75b4283499ecb820..be5b0c592faaf343fa077a994085c7094b644a1a 100644 |
--- a/pkg/analyzer/lib/src/fasta/token_utils.dart |
+++ b/pkg/analyzer/lib/src/fasta/token_utils.dart |
@@ -441,8 +441,16 @@ Token fromAnalyzerToken(analyzer.Token token) { |
return symbol(TokenType.BACKSLASH); |
case TokenType.PERIOD_PERIOD_PERIOD: |
return symbol(TokenType.PERIOD_PERIOD_PERIOD); |
- // case TokenType.GENERIC_METHOD_TYPE_ASSIGN |
- // case TokenType.GENERIC_METHOD_TYPE_LIST |
+ case TokenType.GENERIC_METHOD_TYPE_ASSIGN: |
+ return new CommentToken.fromSubstring( |
+ TokenType.GENERIC_METHOD_TYPE_ASSIGN, |
+ token.lexeme, |
+ 0, |
+ token.lexeme.length, |
+ 0); |
+ case TokenType.GENERIC_METHOD_TYPE_LIST: |
+ return new CommentToken.fromSubstring(TokenType.GENERIC_METHOD_TYPE_LIST, |
+ token.lexeme, 0, token.lexeme.length, 0); |
default: |
return internalError('Unhandled token type ${token.type}'); |
} |