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

Unified Diff: runtime/lib/error.dart

Issue 11049038: Change compile-time errors into dynamic errors in instance creation expression (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/lib/error.cc ('k') | runtime/vm/ast.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/error.dart
===================================================================
--- runtime/lib/error.dart (revision 13204)
+++ runtime/lib/error.dart (working copy)
@@ -91,17 +91,20 @@
}
-class StaticResolutionException implements Exception {
- factory StaticResolutionException._uninstantiable() {
+// TODO(regis): This class will change once mirrors are available.
+class NoSuchMethodErrorImplementation implements NoSuchMethodError {
+ factory NoSuchMethodErrorImplementation._uninstantiable() {
throw const UnsupportedOperationException(
- "StaticResolutionException can only be allocated by the VM");
+ "NoSuchMethodError can only be allocated by the VM");
}
- String toString() => "Unresolved static method: url '$url' line $line "
+ String toString() => "No such method: url '$url' line $line "
"pos $column\n$failedResolutionLine\n";
- static _throwNew(int token_pos) native "StaticResolutionException_throwNew";
+ static _throwNew(int call_pos, String functionName)
+ native "NoSuchMethodError_throwNew";
+ final String functionName;
final String failedResolutionLine;
final String url;
final int line;
« no previous file with comments | « runtime/lib/error.cc ('k') | runtime/vm/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698