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