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 86e6bbd224652a21a863d09e495ee43afaa29423..783454454f1389b540c5ea2e39a5b88f6cab5471 100644 |
| --- a/lib/compiler/implementation/elements/elements.dart |
| +++ b/lib/compiler/implementation/elements/elements.dart |
| @@ -148,6 +148,7 @@ class Element implements Spannable { |
| metadata = metadata.prepend(annotation); |
| } |
| + bool hasSignature() => isFunction() || isConstructor(); |
|
ahe
2012/10/25 14:07:27
Let's try to add documentation comments to these m
karlklose
2012/10/26 11:08:48
Done.
|
| bool isFunction() => identical(kind, ElementKind.FUNCTION); |
| bool isConstructor() => isFactoryConstructor() || isGenerativeConstructor(); |
| bool isClosure() => false; |
| @@ -1652,6 +1653,7 @@ abstract class ClassElement extends ScopeContainerElement |
| class Elements { |
| static bool isUnresolved(Element e) => e == null || e.isErroneous(); |
| static bool isErroneousElement(Element e) => e != null && e.isErroneous(); |
| + static bool isValid(Element e) => !isUnresolved(e); |
|
ahe
2012/10/25 14:07:27
A documentation comment would also be great here.
karlklose
2012/10/26 11:08:48
Done.
|
| static bool isLocal(Element element) { |
| return !Elements.isUnresolved(element) |