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

Side by Side Diff: runtime/lib/errors_patch.dart

Issue 2927613002: Improve NSM handling. (Closed)
Patch Set: Address review comments. Created 3 years, 6 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 @patch 5 @patch
6 class Error { 6 class Error {
7 @patch 7 @patch
8 static String _objectToString(Object object) { 8 static String _objectToString(Object object) {
9 return Object._toString(object); 9 return Object._toString(object);
10 } 10 }
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 [List existingArgumentNames = null]) 227 [List existingArgumentNames = null])
228 : _receiver = receiver, 228 : _receiver = receiver,
229 _memberName = memberName, 229 _memberName = memberName,
230 _arguments = positionalArguments, 230 _arguments = positionalArguments,
231 _namedArguments = namedArguments, 231 _namedArguments = namedArguments,
232 _existingArgumentNames = existingArgumentNames, 232 _existingArgumentNames = existingArgumentNames,
233 _invocation_type = -1; 233 _invocation_type = -1;
234 234
235 // This constructor seems to be called with either strings or 235 // This constructor seems to be called with either strings or
236 // values read from another NoSuchMethodError. 236 // values read from another NoSuchMethodError.
237 //
238 // NOTE: When making changes to this constructor, please also update
239 // `VmTarget.instantiateNoSuchMethodError` in
240 // `pkg/kernel/lib/target/vm.dart`.
237 NoSuchMethodError._withType( 241 NoSuchMethodError._withType(
238 this._receiver, 242 this._receiver,
239 /*String|Symbol*/ memberName, 243 /*String|Symbol*/ memberName,
240 this._invocation_type, 244 this._invocation_type,
241 this._arguments, 245 this._arguments,
242 Map<dynamic, dynamic> namedArguments, 246 Map<dynamic, dynamic> namedArguments,
243 [List existingArgumentNames = null]) 247 [List existingArgumentNames = null])
244 : this._memberName = 248 : this._memberName =
245 (memberName is String) ? new Symbol(memberName) : memberName, 249 (memberName is String) ? new Symbol(memberName) : memberName,
246 this._namedArguments = (namedArguments == null) 250 this._namedArguments = (namedArguments == null)
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 /// 423 ///
420 /// Note: in strong mode, this is a compile-time error and this class becomes 424 /// Note: in strong mode, this is a compile-time error and this class becomes
421 /// obsolete. 425 /// obsolete.
422 class _DuplicatedFieldInitializerError extends Error { 426 class _DuplicatedFieldInitializerError extends Error {
423 final String _name; 427 final String _name;
424 428
425 _DuplicatedFieldInitializerError(this._name); 429 _DuplicatedFieldInitializerError(this._name);
426 430
427 toString() => "Error: field '$_name' is already initialized."; 431 toString() => "Error: field '$_name' is already initialized.";
428 } 432 }
OLDNEW
« no previous file with comments | « pkg/kernel/lib/transformations/mixin_full_resolution.dart ('k') | runtime/lib/invocation_mirror_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698