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

Side by Side Diff: pkg/analyzer/tool/summary/mini_ast.dart

Issue 2896573002: Update mini_ast.dart to new Listener interface. (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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:front_end/src/fasta/errors.dart'; 5 import 'package:front_end/src/fasta/errors.dart';
6 import 'package:front_end/src/fasta/parser/identifier_context.dart'; 6 import 'package:front_end/src/fasta/parser/identifier_context.dart';
7 import 'package:front_end/src/fasta/parser/parser.dart'; 7 import 'package:front_end/src/fasta/parser/parser.dart';
8 import 'package:front_end/src/scanner/token.dart'; 8 import 'package:front_end/src/scanner/token.dart';
9 import 'package:front_end/src/fasta/source/stack_listener.dart'; 9 import 'package:front_end/src/fasta/source/stack_listener.dart';
10 import 'package:front_end/src/scanner/token.dart' as analyzer; 10 import 'package:front_end/src/scanner/token.dart' as analyzer;
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 push(new ConstructorDeclaration(comment, metadata, name)); 244 push(new ConstructorDeclaration(comment, metadata, name));
245 } 245 }
246 246
247 @override 247 @override
248 void endFieldInitializer(Token assignment, Token token) { 248 void endFieldInitializer(Token assignment, Token token) {
249 debugEvent("FieldInitializer"); 249 debugEvent("FieldInitializer");
250 pop(); // Expression 250 pop(); // Expression
251 } 251 }
252 252
253 @override 253 @override
254 void endFormalParameter(Token covariantKeyword, Token thisKeyword, 254 void endFormalParameter(Token thisKeyword, Token nameToken,
255 Token nameToken, FormalParameterType kind) { 255 FormalParameterType kind, MemberKind memberKind) {
256 debugEvent("FormalParameter"); 256 debugEvent("FormalParameter");
257 pop(); // Name 257 pop(); // Name
258 pop(); // Type 258 pop(); // Type
259 pop(); // Metadata 259 pop(); // Metadata
260 pop(); // Comment 260 pop(); // Comment
261 } 261 }
262 262
263 @override 263 @override
264 void endFormalParameters(int count, Token beginToken, Token endToken) { 264 void endFormalParameters(
265 int count, Token beginToken, Token endToken, MemberKind kind) {
265 debugEvent("FormalParameters"); 266 debugEvent("FormalParameters");
266 } 267 }
267 268
268 @override 269 @override
269 void endIdentifierList(int count) { 270 void endIdentifierList(int count) {
270 debugEvent("IdentifierList"); 271 debugEvent("IdentifierList");
271 push(popList(count)); 272 push(popList(count));
272 } 273 }
273 274
274 @override 275 @override
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 final String name; 465 final String name;
465 466
466 final List<TypeName> typeArguments; 467 final List<TypeName> typeArguments;
467 468
468 TypeName(this.name, this.typeArguments); 469 TypeName(this.name, this.typeArguments);
469 } 470 }
470 471
471 /// "Mini AST" representation of an expression which summary code generation 472 /// "Mini AST" representation of an expression which summary code generation
472 /// need not be concerned about. 473 /// need not be concerned about.
473 class UnknownExpression extends Expression {} 474 class UnknownExpression extends Expression {}
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698