| OLD | NEW |
| 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 class Error { | 5 @patch class Error { |
| 6 @patch static String _objectToString(Object object) { | 6 @patch static String _objectToString(Object object) { |
| 7 return Object._toString(object); | 7 return Object._toString(object); |
| 8 } | 8 } |
| 9 | 9 |
| 10 @patch static String _stringToSafeString(String string) { | 10 @patch static String _stringToSafeString(String string) { |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 [List existingArgumentNames = null]) | 225 [List existingArgumentNames = null]) |
| 226 : _receiver = receiver, | 226 : _receiver = receiver, |
| 227 _memberName = memberName, | 227 _memberName = memberName, |
| 228 _arguments = positionalArguments, | 228 _arguments = positionalArguments, |
| 229 _namedArguments = namedArguments, | 229 _namedArguments = namedArguments, |
| 230 _existingArgumentNames = existingArgumentNames, | 230 _existingArgumentNames = existingArgumentNames, |
| 231 _invocation_type = -1; | 231 _invocation_type = -1; |
| 232 | 232 |
| 233 // This constructor seems to be called with either strings or | 233 // This constructor seems to be called with either strings or |
| 234 // values read from another NoSuchMethodError. | 234 // values read from another NoSuchMethodError. |
| 235 NoSuchMethodError._withType(Object this._receiver, | 235 NoSuchMethodError._withType(this._receiver, |
| 236 /*String|Symbol*/ memberName, | 236 /*String|Symbol*/ memberName, |
| 237 this._invocation_type, | 237 this._invocation_type, |
| 238 List this._arguments, | 238 this._arguments, |
| 239 Map<dynamic, dynamic> namedArguments, | 239 Map<dynamic, dynamic> namedArguments, |
| 240 [List existingArgumentNames = null]) | 240 [List existingArgumentNames = null]) |
| 241 : this._memberName = | 241 : this._memberName = |
| 242 (memberName is String) ? new Symbol(memberName) : memberName, | 242 (memberName is String) ? new Symbol(memberName) : memberName, |
| 243 this._namedArguments = | 243 this._namedArguments = |
| 244 (namedArguments == null) | 244 (namedArguments == null) |
| 245 ? null | 245 ? null |
| 246 : new Map<Symbol, dynamic>.fromIterable( | 246 : new Map<Symbol, dynamic>.fromIterable( |
| 247 namedArguments.keys, | 247 namedArguments.keys, |
| 248 key: (k) => (k is String) ? new Symbol(k) : k, | 248 key: (k) => (k is String) ? new Symbol(k) : k, |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 return msg_buf.toString(); | 374 return msg_buf.toString(); |
| 375 } | 375 } |
| 376 } | 376 } |
| 377 | 377 |
| 378 | 378 |
| 379 class _CompileTimeError extends Error { | 379 class _CompileTimeError extends Error { |
| 380 final String _errorMsg; | 380 final String _errorMsg; |
| 381 _CompileTimeError(this._errorMsg); | 381 _CompileTimeError(this._errorMsg); |
| 382 String toString() => _errorMsg; | 382 String toString() => _errorMsg; |
| 383 } | 383 } |
| OLD | NEW |