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

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

Issue 614933002: Add FunctionElement.hasFunctionSignature. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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: dart/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/elements/modelx.dart b/dart/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
index be359801fddc91eb28b7ea5dd63c69af00e1fbc5..1fa0f331772a8fc6083f6f830aebfb094da289b3 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
@@ -306,6 +306,8 @@ class ErroneousElementX extends ElementX implements ErroneousElement {
computeSignature(compiler) => unsupported();
+ bool get hasFunctionSignature => false;
+
get effectiveTarget => this;
computeEffectiveTargetType(InterfaceType newType) => unsupported();
@@ -1561,6 +1563,8 @@ abstract class BaseFunctionElementX
&& !isStatic;
}
+ bool get hasFunctionSignature => functionSignatureCache != null;
+
FunctionSignature computeSignature(Compiler compiler) {
if (functionSignatureCache != null) return functionSignatureCache;
compiler.withCurrentElement(this, () {

Powered by Google App Engine
This is Rietveld 408576698