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

Side by Side Diff: pkg/analyzer/lib/src/summary/fasta/summary_builder.dart

Issue 2747583003: Parse factory constructors with Fasta. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/parser_fasta_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 /// Logic to build unlinked summaries. 5 /// Logic to build unlinked summaries.
6 library summary.src.summary_builder; 6 library summary.src.summary_builder;
7 7
8 import 'package:front_end/src/fasta/parser/class_member_parser.dart'; 8 import 'package:front_end/src/fasta/parser/class_member_parser.dart';
9 import 'package:front_end/src/fasta/parser/identifier_context.dart'; 9 import 'package:front_end/src/fasta/parser/identifier_context.dart';
10 import 'package:front_end/src/fasta/parser/parser.dart'; 10 import 'package:front_end/src/fasta/parser/parser.dart';
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 String uri = pop(); 977 String uri = pop();
978 // ignore: strong_mode_down_cast_composite 978 // ignore: strong_mode_down_cast_composite
979 List<UnlinkedExpr> metadata = pop(); 979 List<UnlinkedExpr> metadata = pop();
980 topScope.unit.exports 980 topScope.unit.exports
981 .add(new UnlinkedExportNonPublicBuilder(annotations: metadata)); 981 .add(new UnlinkedExportNonPublicBuilder(annotations: metadata));
982 topScope.publicNamespace.exports.add(new UnlinkedExportPublicBuilder( 982 topScope.publicNamespace.exports.add(new UnlinkedExportPublicBuilder(
983 uri: uri, combinators: combinators, configurations: conditionalUris)); 983 uri: uri, combinators: combinators, configurations: conditionalUris));
984 checkEmpty(); 984 checkEmpty();
985 } 985 }
986 986
987 void endFactoryMethod(Token beginToken, Token endToken) { 987 void endFactoryMethod(
988 Token beginToken, Token factoryKeyword, Token endToken) {
988 debugEvent("FactoryMethod"); 989 debugEvent("FactoryMethod");
989 throw new UnimplementedError(); // TODO(paulberry) 990 throw new UnimplementedError(); // TODO(paulberry)
990 // pop(); // async-modifiers 991 // pop(); // async-modifiers
991 // /* List<FormalParameterBuilder> formals = */ pop(); 992 // /* List<FormalParameterBuilder> formals = */ pop();
992 // var name = pop(); 993 // var name = pop();
993 // /* List<MetadataBuilder> metadata = */ pop(); 994 // /* List<MetadataBuilder> metadata = */ pop();
994 } 995 }
995 996
996 void endFieldInitializer(Token assignmentOperator) { 997 void endFieldInitializer(Token assignmentOperator) {
997 debugEvent("FieldInitializer $typeSeen $assignmentOperator"); 998 debugEvent("FieldInitializer $typeSeen $assignmentOperator");
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
1589 } 1590 }
1590 1591
1591 /// Internal representation of an initialized name. 1592 /// Internal representation of an initialized name.
1592 class _InitializedName { 1593 class _InitializedName {
1593 final String name; 1594 final String name;
1594 final UnlinkedExecutableBuilder initializer; 1595 final UnlinkedExecutableBuilder initializer;
1595 _InitializedName(this.name, this.initializer); 1596 _InitializedName(this.name, this.initializer);
1596 1597
1597 toString() => "II:" + (initializer != null ? "$name = $initializer" : name); 1598 toString() => "II:" + (initializer != null ? "$name = $initializer" : name);
1598 } 1599 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/parser_fasta_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698