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

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

Issue 2767653002: Implement fullNameForErrors on all Builders. (Closed)
Patch Set: Used <unnamed> instead of empty string. 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/front_end/lib/src/fasta/builder/class_builder.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) 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 bool get isConstructor => false; 161 bool get isConstructor => false;
162 162
163 bool get isFactory => false; 163 bool get isFactory => false;
164 164
165 bool get isLocal => false; 165 bool get isLocal => false;
166 166
167 get target => internalError("Unsupported operation $runtimeType."); 167 get target => internalError("Unsupported operation $runtimeType.");
168 168
169 bool get hasProblem => false; 169 bool get hasProblem => false;
170 170
171 String get fullNameForErrors;
172
171 static Uri getUri(Builder builder) { 173 static Uri getUri(Builder builder) {
172 if (builder == null) return internalError("Builder is null."); 174 if (builder == null) return internalError("Builder is null.");
173 while (builder != null) { 175 while (builder != null) {
174 if (builder is LibraryBuilder) return builder.uri; 176 if (builder is LibraryBuilder) return builder.uri;
175 builder = builder.parent; 177 builder = builder.parent;
176 } 178 }
177 return internalError("No library parent."); 179 return internalError("No library parent.");
178 } 180 }
179 } 181 }
OLDNEW
« no previous file with comments | « no previous file | 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