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

Side by Side Diff: pkg/front_end/lib/src/fasta/builder/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 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.builder; 5 library fasta.builder;
6 6
7 import '../errors.dart' show internalError; 7 import '../errors.dart' show internalError;
8 8
9 import '../messages.dart' show nit; 9 import '../messages.dart' show nit;
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 export 'modifier_builder.dart' show ModifierBuilder; 45 export 'modifier_builder.dart' show ModifierBuilder;
46 46
47 export 'prefix_builder.dart' show PrefixBuilder; 47 export 'prefix_builder.dart' show PrefixBuilder;
48 48
49 export 'invalid_type_builder.dart' show InvalidTypeBuilder; 49 export 'invalid_type_builder.dart' show InvalidTypeBuilder;
50 50
51 export 'mixed_accessor.dart' show MixedAccessor; 51 export 'mixed_accessor.dart' show MixedAccessor;
52 52
53 export 'scope.dart' show AccessErrorBuilder; 53 export 'scope.dart' show AccessErrorBuilder;
54 54
55 export 'builtin_type_builder.dart' show BuiltinTypeBuilder;
56
55 export 'dynamic_type_builder.dart' show DynamicTypeBuilder; 57 export 'dynamic_type_builder.dart' show DynamicTypeBuilder;
56 58
59 export 'void_type_builder.dart' show VoidTypeBuilder;
60
57 export 'function_type_builder.dart' show FunctionTypeBuilder; 61 export 'function_type_builder.dart' show FunctionTypeBuilder;
58 62
59 import 'library_builder.dart' show LibraryBuilder; 63 import 'library_builder.dart' show LibraryBuilder;
60 64
61 import 'invalid_type_builder.dart' show InvalidTypeBuilder; 65 import 'invalid_type_builder.dart' show InvalidTypeBuilder;
62 66
63 abstract class Builder { 67 abstract class Builder {
64 /// Used when multiple things with the same name are declared within the same 68 /// Used when multiple things with the same name are declared within the same
65 /// parent. Only used for declarations, not for scopes. 69 /// parent. Only used for declarations, not for scopes.
66 /// 70 ///
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 176
173 static Uri getUri(Builder builder) { 177 static Uri getUri(Builder builder) {
174 if (builder == null) return internalError("Builder is null."); 178 if (builder == null) return internalError("Builder is null.");
175 while (builder != null) { 179 while (builder != null) {
176 if (builder is LibraryBuilder) return builder.uri; 180 if (builder is LibraryBuilder) return builder.uri;
177 builder = builder.parent; 181 builder = builder.parent;
178 } 182 }
179 return internalError("No library parent."); 183 return internalError("No library parent.");
180 } 184 }
181 } 185 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/fasta/element_store.dart ('k') | pkg/front_end/lib/src/fasta/builder/builtin_type_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698