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

Unified Diff: pkg/compiler/lib/src/elements/elements.dart

Issue 867233004: Support constructor declarations in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 5 years, 11 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: pkg/compiler/lib/src/elements/elements.dart
diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart
index c676422cd933972d052f4924987292d88721e8b9..22f6cb09e5ce165bd55e242a73cdeab3cbad0001 100644
--- a/pkg/compiler/lib/src/elements/elements.dart
+++ b/pkg/compiler/lib/src/elements/elements.dart
@@ -349,6 +349,8 @@ abstract class Element implements Entity {
Element get enclosingClassOrCompilationUnit;
Element get outermostEnclosingMemberOrTopLevel;
+ // TODO(johnniwinther): Replace uses of this with [enclosingClass] when
+ // [ClosureClassElement] has been removed.
/// The enclosing class that defines the type environment for this element.
ClassElement get contextClass;
@@ -1053,6 +1055,12 @@ abstract class ParameterElement extends Element
/// The function on which this parameter is declared.
FunctionElement get functionDeclaration;
+
+ /// `true` if this parameter is named.
+ bool get isNamed;
+
+ /// `true` if this parameter is optional.
+ bool get isOptional;
}
/// A formal parameter on a function or constructor that introduces a local
@@ -1133,6 +1141,9 @@ abstract class FunctionElement extends Element
bool get hasFunctionSignature;
+ /// The parameters of this functions.
+ List<ParameterElement> get parameters;
+
/// The type of this function.
FunctionType get type;
« no previous file with comments | « pkg/compiler/lib/src/dart_backend/placeholder_collector.dart ('k') | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698