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

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

Issue 2767633004: Report compile-time errors on cyclic hierarchies. (Closed)
Patch Set: 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/kernel/kernel_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.class_builder; 5 library fasta.class_builder;
6 6
7 import '../errors.dart' show internalError; 7 import '../errors.dart' show internalError;
8 8
9 import 'builder.dart' 9 import 'builder.dart'
10 show 10 show
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 if (substitutionMap != null) { 180 if (substitutionMap != null) {
181 argument = argument.subst(substitutionMap); 181 argument = argument.subst(substitutionMap);
182 } 182 }
183 directSubstitutionMap[variables[i]] = argument; 183 directSubstitutionMap[variables[i]] = argument;
184 } 184 }
185 substitutionMap = directSubstitutionMap; 185 substitutionMap = directSubstitutionMap;
186 } 186 }
187 } 187 }
188 return substitutionMap; 188 return substitutionMap;
189 } 189 }
190
191 void addCompileTimeError(int charOffset, String message) {
192 library.addCompileTimeError(charOffset, message, fileUri: fileUri);
193 }
194
195 void addWarning(int charOffset, String message) {
196 library.addWarning(charOffset, message, fileUri: fileUri);
197 }
198
199 void addNit(int charOffset, String message) {
200 library.addNit(charOffset, message, fileUri: fileUri);
Paul Berry 2017/03/22 16:22:30 Not a blocking issue for this CL, but when we next
ahe 2017/03/22 17:49:49 I agree. I use "nit" to report warnings that aren'
ahe 2017/03/23 11:35:35 I did that in CL 2770683005.
201 }
190 } 202 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_class_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698