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

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

Issue 2759173002: Switch to IdentifierContext. (Closed)
Patch Set: Status file. 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 bool get isConstructor => false; 165 bool get isConstructor => false;
162 166
163 bool get isFactory => false; 167 bool get isFactory => false;
164 168
165 bool get isLocal => false; 169 bool get isLocal => false;
166 170
167 get target => internalError("Unsupported operation $runtimeType."); 171 get target => internalError("Unsupported operation $runtimeType.");
168 172
169 bool get hasProblem => false; 173 bool get hasProblem => false;
170 174
175 String get fullNameForErrors;
176
171 static Uri getUri(Builder builder) { 177 static Uri getUri(Builder builder) {
172 if (builder == null) return internalError("Builder is null."); 178 if (builder == null) return internalError("Builder is null.");
173 while (builder != null) { 179 while (builder != null) {
174 if (builder is LibraryBuilder) return builder.uri; 180 if (builder is LibraryBuilder) return builder.uri;
175 builder = builder.parent; 181 builder = builder.parent;
176 } 182 }
177 return internalError("No library parent."); 183 return internalError("No library parent.");
178 } 184 }
179 } 185 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/parser/node_listener.dart ('k') | pkg/front_end/lib/src/fasta/builder/class_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698