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

Unified Diff: sdk/lib/core/errors.dart

Issue 2563633002: Make the VM's dart:core and dart:async library patches clean. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/core/errors.dart
diff --git a/sdk/lib/core/errors.dart b/sdk/lib/core/errors.dart
index c11ea2e1a97da25e0c73490a216d7ec025492dc6..92a07a6dab4feb6904f679bd97e0707ba12fae7f 100644
--- a/sdk/lib/core/errors.dart
+++ b/sdk/lib/core/errors.dart
@@ -414,6 +414,9 @@ class IndexError extends ArgumentError implements RangeError {
*/
class FallThroughError extends Error {
FallThroughError();
+
+ // TODO: Doc comment please.
+ external String toString();
Lasse Reichstein Nielsen 2016/12/08 12:25:32 Here I would actually prefer each implementation t
Lasse Reichstein Nielsen 2016/12/08 12:26:38 I can see that that is a more complex change, beca
Kevin Millikin (Google) 2016/12/09 08:38:59 OK. I will make an issue to track this and other
}
/**
@@ -422,7 +425,9 @@ class FallThroughError extends Error {
class AbstractClassInstantiationError extends Error {
final String _className;
AbstractClassInstantiationError(String this._className);
Lasse Reichstein Nielsen 2016/12/08 12:25:32 Ick. This exposes a private name in the DartDoc. S
floitsch 2016/12/08 12:30:46 Alternatively, dartdoc could try to be clever abou
Kevin Millikin (Google) 2016/12/09 08:38:59 I'll adopt Lasse's suggestion.
- String toString() => "Cannot instantiate abstract class: '$_className'";
+
+ // TODO: Doc comment please.
+ external String toString();
Lasse Reichstein Nielsen 2016/12/08 12:25:32 Again, I'd prefer an implementation specific subcl
Kevin Millikin (Google) 2016/12/09 08:38:59 Acknowledged.
}
@@ -459,16 +464,11 @@ class NoSuchMethodError extends Error {
* the signature of the method that would have been called if the parameters
* had matched.
*/
- NoSuchMethodError(Object receiver,
- Symbol memberName,
- List positionalArguments,
- Map<Symbol ,dynamic> namedArguments,
- [List existingArgumentNames = null])
- : _receiver = receiver,
- _memberName = memberName,
- _arguments = positionalArguments,
- _namedArguments = namedArguments,
- _existingArgumentNames = existingArgumentNames;
+ external NoSuchMethodError(Object receiver,
+ Symbol memberName,
+ List positionalArguments,
+ Map<Symbol, dynamic> namedArguments,
+ [List existingArgumentNames = null]);
external String toString();
}

Powered by Google App Engine
This is Rietveld 408576698