| 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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 Token start, Token periodBeforeName, Token endToken) { | 493 Token start, Token periodBeforeName, Token endToken) { |
| 494 debugEvent("ConstructorReference"); | 494 debugEvent("ConstructorReference"); |
| 495 String suffix = popIfNotNull(periodBeforeName); | 495 String suffix = popIfNotNull(periodBeforeName); |
| 496 List<TypeBuilder> typeArguments = pop(); | 496 List<TypeBuilder> typeArguments = pop(); |
| 497 String name = pop(); | 497 String name = pop(); |
| 498 push(library.addConstructorReference( | 498 push(library.addConstructorReference( |
| 499 name, typeArguments, suffix, start.charOffset)); | 499 name, typeArguments, suffix, start.charOffset)); |
| 500 } | 500 } |
| 501 | 501 |
| 502 @override | 502 @override |
| 503 void beginFactoryMethod(Token token) { |
| 504 library.beginNestedDeclaration(null, hasMembers: false); |
| 505 } |
| 506 |
| 507 @override |
| 503 void endFactoryMethod(Token beginToken, Token endToken) { | 508 void endFactoryMethod(Token beginToken, Token endToken) { |
| 504 debugEvent("FactoryMethod"); | 509 debugEvent("FactoryMethod"); |
| 505 MethodBody kind = pop(); | 510 MethodBody kind = pop(); |
| 506 ConstructorReferenceBuilder redirectionTarget; | 511 ConstructorReferenceBuilder redirectionTarget; |
| 507 if (kind == MethodBody.RedirectingFactoryBody) { | 512 if (kind == MethodBody.RedirectingFactoryBody) { |
| 508 redirectionTarget = pop(); | 513 redirectionTarget = pop(); |
| 509 } | 514 } |
| 510 AsyncMarker asyncModifier = pop(); | 515 AsyncMarker asyncModifier = pop(); |
| 511 List<FormalParameterBuilder> formals = pop(); | 516 List<FormalParameterBuilder> formals = pop(); |
| 512 var name = pop(); | 517 var name = pop(); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 Link<Token> handleMemberName(Link<Token> identifiers) { | 590 Link<Token> handleMemberName(Link<Token> identifiers) { |
| 586 if (!isDartLibrary || identifiers.isEmpty) return identifiers; | 591 if (!isDartLibrary || identifiers.isEmpty) return identifiers; |
| 587 return removeNativeClause(identifiers); | 592 return removeNativeClause(identifiers); |
| 588 } | 593 } |
| 589 | 594 |
| 590 @override | 595 @override |
| 591 void debugEvent(String name) { | 596 void debugEvent(String name) { |
| 592 // printEvent(name); | 597 // printEvent(name); |
| 593 } | 598 } |
| 594 } | 599 } |
| OLD | NEW |