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

Unified Diff: pkg/front_end/lib/src/fasta/builder/builtin_type_builder.dart

Issue 2761173004: Implement dynamic and void as types exported by core library. (Closed)
Patch Set: Use TypeBuilder.bind. 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 side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/lib/src/fasta/builder/builtin_type_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/builder/dynamic_type_builder.dart b/pkg/front_end/lib/src/fasta/builder/builtin_type_builder.dart
similarity index 68%
copy from pkg/front_end/lib/src/fasta/builder/dynamic_type_builder.dart
copy to pkg/front_end/lib/src/fasta/builder/builtin_type_builder.dart
index 3933e7c170a97d673dcf4766bc0b0e251bdffaf0..ce8ecc170d8226e50bc96fa48dfa12c24b7f9b34 100644
--- a/pkg/front_end/lib/src/fasta/builder/dynamic_type_builder.dart
+++ b/pkg/front_end/lib/src/fasta/builder/builtin_type_builder.dart
@@ -2,16 +2,17 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library fasta.dynamic_type_builder;
+library fasta.builtin_type_builder;
import 'builder.dart' show LibraryBuilder, TypeBuilder, TypeDeclarationBuilder;
-class DynamicTypeBuilder<T extends TypeBuilder, R>
+class BuiltinTypeBuilder<T extends TypeBuilder, R>
extends TypeDeclarationBuilder<T, R> {
final R type;
- DynamicTypeBuilder(this.type, LibraryBuilder compilationUnit, int charOffset)
- : super(null, 0, "dynamic", compilationUnit, charOffset);
+ BuiltinTypeBuilder(
+ String name, this.type, LibraryBuilder compilationUnit, int charOffset)
+ : super(null, 0, name, compilationUnit, charOffset);
R buildType(LibraryBuilder library, List<T> arguments) => type;
« no previous file with comments | « pkg/front_end/lib/src/fasta/builder/builder.dart ('k') | pkg/front_end/lib/src/fasta/builder/dynamic_type_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698