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