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

Unified Diff: sdk/lib/_internal/compiler/implementation/elements/modelx.dart

Issue 57873002: Build new IR for functions returning a constant (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rename INode>IrNode. started working on inferencer Created 7 years, 1 month 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: 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;
}
}

Powered by Google App Engine
This is Rietveld 408576698