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

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

Issue 2995023002: Add debug names to scopes. (Closed)
Patch Set: Created 3 years, 4 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) 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 ProcedureKind; 7 import 'package:kernel/ast.dart' show ProcedureKind;
8 8
9 import '../../scanner/token.dart' show Token; 9 import '../../scanner/token.dart' show Token;
10 10
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 debugEvent("endLibraryName"); 260 debugEvent("endLibraryName");
261 popCharOffset(); 261 popCharOffset();
262 String name = pop(); 262 String name = pop();
263 List<MetadataBuilder> metadata = pop(); 263 List<MetadataBuilder> metadata = pop();
264 library.name = name; 264 library.name = name;
265 library.metadata = metadata; 265 library.metadata = metadata;
266 } 266 }
267 267
268 @override 268 @override
269 void beginClassOrNamedMixinApplication(Token token) { 269 void beginClassOrNamedMixinApplication(Token token) {
270 library.beginNestedDeclaration(null); 270 library.beginNestedDeclaration("class or mixin application");
271 } 271 }
272 272
273 @override 273 @override
274 void beginClassDeclaration(Token begin, Token name) { 274 void beginClassDeclaration(Token begin, Token name) {
275 library.currentDeclaration.name = name.lexeme; 275 library.currentDeclaration.name = name.lexeme;
276 } 276 }
277 277
278 @override 278 @override
279 void beginNamedMixinApplication(Token beginToken, Token name) { 279 void beginNamedMixinApplication(Token beginToken, Token name) {
280 library.currentDeclaration.name = name.lexeme; 280 library.currentDeclaration.name = name.lexeme;
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 docToken = docToken.next; 952 docToken = docToken.next;
953 } 953 }
954 return buffer.toString(); 954 return buffer.toString();
955 } 955 }
956 956
957 @override 957 @override
958 void debugEvent(String name) { 958 void debugEvent(String name) {
959 // printEvent(name); 959 // printEvent(name);
960 } 960 }
961 } 961 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/scope.dart ('k') | pkg/front_end/lib/src/fasta/source/scope_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698