OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |