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

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

Issue 2768523002: Fix IdentifierContext for primary expressions. Also pass IdentifierContext to handleThisExpression … (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/parser_fasta_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 97fb17cf3ccece41ed438797afc53eee95ff3b73..8c897c5c8b039e923ff3fc947af4cf9746573196 100644
--- a/pkg/analyzer/lib/src/fasta/ast_builder.dart
+++ b/pkg/analyzer/lib/src/fasta/ast_builder.dart
@@ -9,13 +9,16 @@ 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/element/element.dart' show Element;
-import 'package:front_end/src/fasta/parser/parser.dart' show FormalParameterType;
-import 'package:front_end/src/fasta/scanner/token.dart' show BeginGroupToken, Token;
+import 'package:front_end/src/fasta/parser/parser.dart'
+ show FormalParameterType;
+import 'package:front_end/src/fasta/scanner/token.dart'
+ show BeginGroupToken, Token;
import 'package:front_end/src/fasta/errors.dart' show internalError;
import 'package:front_end/src/fasta/kernel/kernel_builder.dart'
show Builder, KernelLibraryBuilder, ProcedureBuilder;
-import 'package:front_end/src/fasta/parser/identifier_context.dart' show IdentifierContext;
+import 'package:front_end/src/fasta/parser/identifier_context.dart'
+ show IdentifierContext;
import 'package:front_end/src/fasta/quote.dart';
import 'package:front_end/src/fasta/source/scope_listener.dart'
show JumpTargetKind, NullValue, Scope, ScopeListener;
@@ -579,13 +582,13 @@ class AstBuilder extends ScopeListener {
}
@override
- void handleSuperExpression(Token token) {
+ void handleSuperExpression(Token token, IdentifierContext context) {
debugEvent("SuperExpression");
push(ast.superExpression(toAnalyzerToken(token)));
}
@override
- void handleThisExpression(Token token) {
+ void handleThisExpression(Token token, IdentifierContext context) {
debugEvent("ThisExpression");
push(ast.thisExpression(toAnalyzerToken(token)));
}
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/parser_fasta_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698