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

Unified Diff: pkg/analyzer/lib/src/summary/fasta/summary_builder.dart

Issue 2892173002: Update Listener implementations. (Closed)
Patch Set: Created 3 years, 7 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 | « pkg/analyzer/lib/src/summary/fasta/stack_listener.dart ('k') | pkg/front_end/lib/src/fasta/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/fasta/summary_builder.dart
diff --git a/pkg/analyzer/lib/src/summary/fasta/summary_builder.dart b/pkg/analyzer/lib/src/summary/fasta/summary_builder.dart
index 4d5d8a6f667c9a9b5cd075ffd89ef834a57788fb..d628a8ed4818dc435fb8cf08bb2c6a21aec7c048 100644
--- a/pkg/analyzer/lib/src/summary/fasta/summary_builder.dart
+++ b/pkg/analyzer/lib/src/summary/fasta/summary_builder.dart
@@ -5,10 +5,16 @@
/// Logic to build unlinked summaries.
library summary.src.summary_builder;
-import 'package:front_end/src/fasta/parser/class_member_parser.dart';
-import 'package:front_end/src/fasta/parser/identifier_context.dart';
-import 'package:front_end/src/fasta/parser/parser.dart';
-import 'package:front_end/src/fasta/scanner.dart';
+import 'package:front_end/src/fasta/parser.dart'
+ show
+ ClassMemberParser,
+ FormalParameterType,
+ IdentifierContext,
+ MemberKind,
+ Parser;
+
+import 'package:front_end/src/fasta/scanner.dart' show Token, scan;
+
import 'package:front_end/src/fasta/scanner/token_constants.dart';
import 'expression_serializer.dart';
@@ -261,13 +267,14 @@ abstract class ExpressionListener extends StackListener {
push(new ConstructorName(new TypeRef(type, typeArgs), ctorName?.name));
}
- void endFormalParameter(Token covariantKeyword, Token thisKeyword,
- Token nameToken, FormalParameterType kind) {
+ void endFormalParameter(Token thisKeyword, Token nameToken,
+ FormalParameterType kind, MemberKind memberKind) {
debugEvent("FormalParameter");
assert(ignore);
}
- void endFormalParameters(int c, begin, end) {
+ void endFormalParameters(
+ int count, Token beginToken, Token endToken, MemberKind kind) {
debugEvent("FormalParameters");
assert(ignore);
}
@@ -489,7 +496,7 @@ abstract class ExpressionListener extends StackListener {
push(NullValue.Arguments);
}
- void handleNoFormalParameters(Token token) {
+ void handleNoFormalParameters(Token token, MemberKind kind) {
debugEvent("NoFormalParameters");
assert(ignore);
}
@@ -792,7 +799,7 @@ class SummaryBuilder extends StackListener {
}
}
- void beginFormalParameters(Token begin) {
+ void beginFormalParameters(Token token, MemberKind kind) {
_nextParamKind = UnlinkedParamKind.required;
}
@@ -991,8 +998,7 @@ class SummaryBuilder extends StackListener {
name, new UnlinkedExecutableBuilder(bodyExpr: initializer)));
}
- void endFields(
- int count, Token covariantKeyword, Token beginToken, Token endToken) {
+ void endFields(int count, Token beginToken, Token endToken) {
debugEvent("Fields");
var s = scope;
if (s is ClassScope) {
@@ -1003,8 +1009,8 @@ class SummaryBuilder extends StackListener {
}
}
- void endFormalParameter(Token covariantKeyword, Token thisKeyword,
- Token nameToken, FormalParameterType kind) {
+ void endFormalParameter(Token thisKeyword, Token nameToken,
+ FormalParameterType kind, MemberKind memberKind) {
debugEvent("FormalParameter");
// TODO(sigmund): clean up?
var nameOrFormal = pop();
@@ -1024,7 +1030,8 @@ class SummaryBuilder extends StackListener {
}
}
- void endFormalParameters(int count, Token beginToken, Token endToken) {
+ void endFormalParameters(
+ int count, Token beginToken, Token endToken, MemberKind kind) {
debugEvent("FormalParameters");
List formals = popList(count);
if (formals != null && formals.isNotEmpty) {
@@ -1065,7 +1072,7 @@ class SummaryBuilder extends StackListener {
}
void endFunctionTypedFormalParameter(
- Token covariantKeyword, Token thisKeyword, FormalParameterType kind) {
+ Token thisKeyword, FormalParameterType kind) {
debugEvent("FunctionTypedFormalParameter");
List<UnlinkedParamBuilder> formals = pop();
if (formals != null) formals.forEach((p) => p.inheritsCovariantSlot = null);
« no previous file with comments | « pkg/analyzer/lib/src/summary/fasta/stack_listener.dart ('k') | pkg/front_end/lib/src/fasta/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698