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

Unified Diff: dart_vm_standalone/rasta_errors.dart

Issue 2117513002: More extensive error handling for 'unresolved' cases. (Closed) Base URL: git@github.com:dart-lang/rasta.git@master
Patch Set: Merge and update test expectations Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/accessors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart_vm_standalone/rasta_errors.dart
diff --git a/dart_vm_standalone/rasta_errors.dart b/dart_vm_standalone/rasta_errors.dart
index 4a62b89027afac6a39d46031bfe7a6793e3025cc..1ec29db01edbf73f0ae7a4a487689791ed169504 100644
--- a/dart_vm_standalone/rasta_errors.dart
+++ b/dart_vm_standalone/rasta_errors.dart
@@ -14,7 +14,7 @@ library dart.core._rasta_errors;
_unresolvedConstructorError(
Object typeLiteral,
- String fullConstructorName,
+ Symbol fullConstructorName,
List arguments,
Map<Symbol, dynamic> namedArguments,
List existingArgumentNames) {
@@ -27,6 +27,160 @@ _unresolvedConstructorError(
existingArgumentNames);
}
+_unresolvedStaticGetterError(
+ Object typeLiteral,
+ Symbol name,
+ List arguments,
+ Map<Symbol, dynamic> namedArguments,
+ List existingArgumentNames) {
+ return new NoSuchMethodError._withType(
+ typeLiteral,
+ name,
+ (_InvocationMirror._GETTER << _InvocationMirror._TYPE_SHIFT) +
+ (_InvocationMirror._STATIC << _InvocationMirror._CALL_SHIFT),
+ arguments,
+ namedArguments,
+ existingArgumentNames);
+}
+
+_unresolvedStaticSetterError(
+ Object typeLiteral,
+ Symbol name,
+ List arguments,
+ Map<Symbol, dynamic> namedArguments,
+ List existingArgumentNames) {
+ return new NoSuchMethodError._withType(
+ typeLiteral,
+ name,
+ (_InvocationMirror._SETTER << _InvocationMirror._TYPE_SHIFT) +
+ (_InvocationMirror._STATIC << _InvocationMirror._CALL_SHIFT),
+ arguments,
+ namedArguments,
+ existingArgumentNames);
+}
+
+_unresolvedStaticMethodError(
+ Object typeLiteral,
+ Symbol name,
+ List arguments,
+ Map<Symbol, dynamic> namedArguments,
+ List existingArgumentNames) {
+ return new NoSuchMethodError._withType(
+ typeLiteral,
+ name,
+ (_InvocationMirror._METHOD << _InvocationMirror._TYPE_SHIFT) +
+ (_InvocationMirror._STATIC << _InvocationMirror._CALL_SHIFT),
+ arguments,
+ namedArguments,
+ existingArgumentNames);
+}
+
+_unresolvedTopLevelGetterError(
+ Object unused,
+ Symbol name,
+ List arguments,
+ Map<Symbol, dynamic> namedArguments,
+ List existingArgumentNames) {
+ return new NoSuchMethodError._withType(
+ unused,
+ name,
+ (_InvocationMirror._GETTER << _InvocationMirror._TYPE_SHIFT) +
+ (_InvocationMirror._TOP_LEVEL << _InvocationMirror._CALL_SHIFT),
+ arguments,
+ namedArguments,
+ existingArgumentNames);
+}
+
+_unresolvedTopLevelSetterError(
+ Object unused,
+ Symbol name,
+ List arguments,
+ Map<Symbol, dynamic> namedArguments,
+ List existingArgumentNames) {
+ return new NoSuchMethodError._withType(
+ unused,
+ name,
+ (_InvocationMirror._SETTER << _InvocationMirror._TYPE_SHIFT) +
+ (_InvocationMirror._TOP_LEVEL << _InvocationMirror._CALL_SHIFT),
+ arguments,
+ namedArguments,
+ existingArgumentNames);
+}
+
+_unresolvedTopLevelMethodError(
+ Object unused,
+ Symbol name,
+ List arguments,
+ Map<Symbol, dynamic> namedArguments,
+ List existingArgumentNames) {
+ return new NoSuchMethodError._withType(
+ unused,
+ name,
+ (_InvocationMirror._METHOD << _InvocationMirror._TYPE_SHIFT) +
+ (_InvocationMirror._TOP_LEVEL << _InvocationMirror._CALL_SHIFT),
+ arguments,
+ namedArguments,
+ existingArgumentNames);
+}
+
+_unresolvedSuperGetterError(
+ Object receiver,
+ Symbol name,
+ List arguments,
+ Map<Symbol, dynamic> namedArguments,
+ List existingArgumentNames) {
+ return new NoSuchMethodError._withType(
+ receiver,
+ name,
+ (_InvocationMirror._GETTER << _InvocationMirror._TYPE_SHIFT) +
+ (_InvocationMirror._SUPER << _InvocationMirror._CALL_SHIFT),
+ arguments,
+ namedArguments,
+ existingArgumentNames);
+}
+
+_unresolvedSuperSetterError(
+ Object receiver,
+ Symbol name,
+ List arguments,
+ Map<Symbol, dynamic> namedArguments,
+ List existingArgumentNames) {
+ return new NoSuchMethodError._withType(
+ receiver,
+ name,
+ (_InvocationMirror._SETTER << _InvocationMirror._TYPE_SHIFT) +
+ (_InvocationMirror._SUPER << _InvocationMirror._CALL_SHIFT),
+ arguments,
+ namedArguments,
+ existingArgumentNames);
+}
+
+_unresolvedSuperMethodError(
+ Object receiver,
+ Symbol name,
+ List arguments,
+ Map<Symbol, dynamic> namedArguments,
+ List existingArgumentNames) {
+ return new NoSuchMethodError._withType(
+ receiver,
+ name,
+ (_InvocationMirror._METHOD << _InvocationMirror._TYPE_SHIFT) +
+ (_InvocationMirror._SUPER << _InvocationMirror._CALL_SHIFT),
+ arguments,
+ namedArguments,
+ existingArgumentNames);
+}
+
+_genericNoSuchMethod(
+ Object receiver,
+ Symbol methodName,
+ List arguments,
+ Map<Symbol, dynamic> namedArguments,
+ List existingArgumentNames) {
+ return new NoSuchMethodError(receiver, methodName, arguments, namedArguments,
+ existingArgumentNames);
+}
+
_malformedTypeError(String errorMessage) {
return new _TypeError._create(null, null, null, errorMessage);
}
« no previous file with comments | « no previous file | lib/accessors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698