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

Unified Diff: lib/compiler/implementation/elements/elements.dart

Issue 10920089: Generate a warning and a runtime error for calls to nonexistent static calls, getters and setters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove case for variable == null in handling of ForIn. Created 8 years, 3 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
Index: lib/compiler/implementation/elements/elements.dart
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
index 61fe59aa980548d3547f7374c519d610b0ead379..b85ddb2a48850b542960e1dcb5fe66e9f6c09abd 100644
--- a/lib/compiler/implementation/elements/elements.dart
+++ b/lib/compiler/implementation/elements/elements.dart
@@ -330,6 +330,8 @@ class ErroneousElement extends Element {
SourceString get name => unsupported();
ElementKind get kind => unsupported();
Link<MetadataAnnotation> get metadata => unsupported();
+
+ getLibrary() => enclosingElement.getLibrary();
ngeoffray 2012/09/05 11:46:45 I think you don't need this.
karlklose 2012/09/05 14:53:42 It is called from the Element constructor in an as
ngeoffray 2012/09/07 08:12:46 Bu how is this implementation different than Eleme
karlklose 2012/09/07 09:24:01 It does not check for the kind of itself, because
}
class ErroneousFunctionElement extends ErroneousElement
@@ -348,8 +350,6 @@ class ErroneousFunctionElement extends ErroneousElement
requiredParameterCount(compiler) => unsupported();
optionalParameterCount(compiler) => unsupported();
parameterCount(copmiler) => unsupported();
-
- getLibrary() => enclosingElement.getLibrary();
}
class ContainerElement extends Element {

Powered by Google App Engine
This is Rietveld 408576698