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

Unified Diff: pkg/analyzer/lib/src/fasta/ast_builder.dart

Issue 2837473002: merge fasta.PrecedenceInfo into analyzer.TokenType (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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/fasta/ast_builder.dart
diff --git a/pkg/analyzer/lib/src/fasta/ast_builder.dart b/pkg/analyzer/lib/src/fasta/ast_builder.dart
index 0ac507be6170ccf75ab46e5c3bec221b95bda797..938c8a4b94aaa7650d6b2d57ccd54e22d4c0da0d 100644
--- a/pkg/analyzer/lib/src/fasta/ast_builder.dart
+++ b/pkg/analyzer/lib/src/fasta/ast_builder.dart
@@ -8,6 +8,7 @@ import 'package:analyzer/analyzer.dart';
import 'package:analyzer/dart/ast/ast_factory.dart' show AstFactory;
import 'package:analyzer/dart/ast/standard_ast_factory.dart' as standard;
import 'package:analyzer/dart/ast/token.dart' as analyzer show Token;
+import 'package:analyzer/dart/ast/token.dart' show TokenType;
import 'package:analyzer/dart/element/element.dart' show Element;
import 'package:front_end/src/fasta/parser/parser.dart'
show FormalParameterType, Parser;
@@ -1941,7 +1942,7 @@ class AstBuilder extends ScopeListener {
/// which should be either [GENERIC_METHOD_TYPE_ASSIGN] or
/// [GENERIC_METHOD_TYPE_LIST]. If found, parse the comment into tokens and
/// inject into the token stream before the [token].
- Token _injectGenericComment(Token token, PrecedenceInfo info, int prefixLen) {
+ Token _injectGenericComment(Token token, TokenType info, int prefixLen) {
if (parseGenericMethodComments) {
CommentToken t = token.precedingCommentTokens;
for (; t != null; t = t.next) {
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/fasta/token_utils.dart » ('j') | pkg/compiler/lib/src/resolution/enum_creator.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698