Index: sdk/lib/_internal/compiler/implementation/elements/modelx.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart |
index 56a35e9bc2e87b07d7ae1916a9e52fb591952850..eb106ba484535be4770cef3f8b3a691c8f1e7a51 100644 |
--- a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart |
+++ b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart |
@@ -328,6 +328,8 @@ class ErroneousElementX extends ElementX implements ErroneousElement { |
bool get isRedirectingFactory => unsupported(); |
+ void setAbstract() => unsupported(); |
+ |
setPatch(patch) => unsupported(); |
computeSignature(compiler) => unsupported(); |
requiredParameterCount(compiler) => unsupported(); |
@@ -1523,13 +1525,13 @@ class FunctionElementX extends ElementX implements FunctionElement { |
} |
} |
+ bool _isAbstract = false; |
+ void setAbstract() { _isAbstract = true; } |
+ |
bool isAbstract(Compiler compiler) { |
+ if (_isAbstract) return true; |
if (super.isAbstract(compiler)) return true; |
if (modifiers.isExternal()) return false; |
karlklose
2013/11/06 09:11:28
You can remove this check now.
lukas
2013/11/06 11:36:08
Done.
|
- if (isFunction() || isAccessor()) { |
- return compiler.withCurrentElement(this, |
- () => !parseNode(compiler).hasBody()); |
- } |
return false; |
} |
} |