Chromium Code Reviews| 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 { |