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

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

Issue 2695453002: Generalize DeclarationBuilder.resolveTypes. (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
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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698