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

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

Issue 2746013003: [fasta] Add and correct even more offsets (Closed)
Patch Set: Removed formalParametersToken parameter 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 unified diff | Download patch
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/fasta/scanner/token.dart'; 8 import 'package:front_end/src/fasta/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 10
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 push(new ConstructorDeclaration(comment, metadata, name)); 243 push(new ConstructorDeclaration(comment, metadata, name));
244 } 244 }
245 245
246 @override 246 @override
247 void endFieldInitializer(Token assignment) { 247 void endFieldInitializer(Token assignment) {
248 debugEvent("FieldInitializer"); 248 debugEvent("FieldInitializer");
249 pop(); // Expression 249 pop(); // Expression
250 } 250 }
251 251
252 @override 252 @override
253 void endFormalParameter( 253 void endFormalParameter(Token covariantKeyword, Token thisKeyword,
254 Token covariantKeyword, Token thisKeyword, FormalParameterType kind) { 254 Token nameToken, FormalParameterType kind) {
255 debugEvent("FormalParameter"); 255 debugEvent("FormalParameter");
256 pop(); // Name 256 pop(); // Name
257 pop(); // Type 257 pop(); // Type
258 pop(); // Metadata 258 pop(); // Metadata
259 pop(); // Comment 259 pop(); // Comment
260 } 260 }
261 261
262 @override 262 @override
263 void endFormalParameters(int count, Token beginToken, Token endToken) { 263 void endFormalParameters(int count, Token beginToken, Token endToken) {
264 debugEvent("FormalParameters"); 264 debugEvent("FormalParameters");
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 final String name; 463 final String name;
464 464
465 final List<TypeName> typeArguments; 465 final List<TypeName> typeArguments;
466 466
467 TypeName(this.name, this.typeArguments); 467 TypeName(this.name, this.typeArguments);
468 } 468 }
469 469
470 /// "Mini AST" representation of an expression which summary code generation 470 /// "Mini AST" representation of an expression which summary code generation
471 /// need not be concerned about. 471 /// need not be concerned about.
472 class UnknownExpression extends Expression {} 472 class UnknownExpression extends Expression {}
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/fasta/summary_builder.dart ('k') | pkg/compiler/lib/src/parser/node_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698