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

Side by Side Diff: pkg/front_end/lib/src/fasta/source/outline_builder.dart

Issue 2693453004: Include class names in parser events. (Closed)
Patch Set: Created 3 years, 10 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 | « pkg/front_end/lib/src/fasta/parser/parser.dart ('k') | 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 library fasta.outline_builder; 5 library fasta.outline_builder;
6 6
7 import 'package:kernel/ast.dart' show 7 import 'package:kernel/ast.dart' show
8 AsyncMarker, 8 AsyncMarker,
9 ProcedureKind; 9 ProcedureKind;
10 10
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 @override 186 @override
187 void endLibraryName(Token libraryKeyword, Token semicolon) { 187 void endLibraryName(Token libraryKeyword, Token semicolon) {
188 debugEvent("endLibraryName"); 188 debugEvent("endLibraryName");
189 String name = pop(); 189 String name = pop();
190 List<MetadataBuilder> metadata = pop(); 190 List<MetadataBuilder> metadata = pop();
191 library.name = name; 191 library.name = name;
192 library.metadata = metadata; 192 library.metadata = metadata;
193 } 193 }
194 194
195 @override 195 @override
196 void beginClassDeclaration(Token begin) { 196 void beginClassDeclaration(Token begin, Token name) {
197 library.beginNestedDeclaration(); 197 library.beginNestedDeclaration();
198 } 198 }
199 199
200 @override 200 @override
201 void endClassDeclaration(int interfacesCount, Token beginToken, 201 void endClassDeclaration(int interfacesCount, Token beginToken,
202 Token extendsKeyword, Token implementsKeyword, Token endToken) { 202 Token extendsKeyword, Token implementsKeyword, Token endToken) {
203 debugEvent("endClassDeclaration"); 203 debugEvent("endClassDeclaration");
204 List<TypeBuilder> interfaces = popList(interfacesCount); 204 List<TypeBuilder> interfaces = popList(interfacesCount);
205 TypeBuilder supertype = pop(); 205 TypeBuilder supertype = pop();
206 List<TypeVariableBuilder> typeVariables = pop(); 206 List<TypeVariableBuilder> typeVariables = pop();
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 294
295 @override 295 @override
296 void endMixinApplication() { 296 void endMixinApplication() {
297 debugEvent("MixinApplication"); 297 debugEvent("MixinApplication");
298 List<TypeBuilder> mixins = pop(); 298 List<TypeBuilder> mixins = pop();
299 TypeBuilder supertype = pop(); 299 TypeBuilder supertype = pop();
300 push(library.addMixinApplication(supertype, mixins, -1)); 300 push(library.addMixinApplication(supertype, mixins, -1));
301 } 301 }
302 302
303 @override 303 @override
304 void beginNamedMixinApplication(Token token) { 304 void beginNamedMixinApplication(Token begin, Token name) {
305 library.beginNestedDeclaration(hasMembers: false); 305 library.beginNestedDeclaration(hasMembers: false);
306 } 306 }
307 307
308 @override 308 @override
309 void endNamedMixinApplication( 309 void endNamedMixinApplication(
310 Token classKeyword, Token implementsKeyword, Token endToken) { 310 Token classKeyword, Token implementsKeyword, Token endToken) {
311 debugEvent("endNamedMixinApplication"); 311 debugEvent("endNamedMixinApplication");
312 List<TypeBuilder> interfaces = popIfNotNull(implementsKeyword); 312 List<TypeBuilder> interfaces = popIfNotNull(implementsKeyword);
313 TypeBuilder mixinApplication = pop(); 313 TypeBuilder mixinApplication = pop();
314 List<TypeVariableBuilder> typeVariables = pop(); 314 List<TypeVariableBuilder> typeVariables = pop();
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 Link<Token> handleMemberName(Link<Token> identifiers) { 585 Link<Token> handleMemberName(Link<Token> identifiers) {
586 if (!isDartLibrary || identifiers.isEmpty) return identifiers; 586 if (!isDartLibrary || identifiers.isEmpty) return identifiers;
587 return removeNativeClause(identifiers); 587 return removeNativeClause(identifiers);
588 } 588 }
589 589
590 @override 590 @override
591 void debugEvent(String name) { 591 void debugEvent(String name) {
592 // printEvent(name); 592 // printEvent(name);
593 } 593 }
594 } 594 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698