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

Unified Diff: pkg/analyzer/lib/src/summary/idl.dart

Issue 1677683002: Include default parameter values into summary. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.dart ('k') | pkg/analyzer/lib/src/summary/summarize_ast.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/idl.dart
diff --git a/pkg/analyzer/lib/src/summary/idl.dart b/pkg/analyzer/lib/src/summary/idl.dart
index 37f3ab36d50ff7111d6a7b639116dc21659b5395..4ea5d9cc690131b3c2b7daf366377a984cb846e9 100644
--- a/pkg/analyzer/lib/src/summary/idl.dart
+++ b/pkg/analyzer/lib/src/summary/idl.dart
@@ -991,7 +991,7 @@ abstract class UnlinkedExecutable extends base.SummaryClass {
bool get isExternal;
/**
- * If this executable's return type is inferrable, nonzero slot id
+ * If this executable's return type is inferable, nonzero slot id
* identifying which entry in [LinkedLibrary.types] contains the inferred
* return type. If there is no matching entry in [LinkedLibrary.types], then
* no return type was inferred for this variable, so its static type is
@@ -1172,17 +1172,23 @@ abstract class UnlinkedParam extends base.SummaryClass {
bool get isInitializingFormal;
/**
- * If this parameter's type is inferrable, nonzero slot id identifying which
+ * If this parameter's type is inferable, nonzero slot id identifying which
* entry in [LinkedLibrary.types] contains the inferred type. If there is no
* matching entry in [LinkedLibrary.types], then no type was inferred for
* this variable, so its static type is `dynamic`.
*
* Note that although strong mode considers initializing formals to be
- * inferrable, they are not marked as such in the summary; if their type is
+ * inferable, they are not marked as such in the summary; if their type is
* not specified, they always inherit the static type of the corresponding
* field.
*/
int get inferredTypeSlot;
+
+ /**
+ * If the parameter has a default value the constant expression in the
+ * default value.
+ */
+ UnlinkedConst get defaultValue;
}
/**
@@ -1522,7 +1528,7 @@ abstract class UnlinkedVariable extends base.SummaryClass {
int get propagatedTypeSlot;
/**
- * If this variable is inferrable, nonzero slot id identifying which entry in
+ * If this variable is inferable, nonzero slot id identifying which entry in
* [LinkedLibrary.types] contains the inferred type for this variable. If
* there is no matching entry in [LinkedLibrary.types], then no type was
* inferred for this variable, so its static type is `dynamic`.
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.dart ('k') | pkg/analyzer/lib/src/summary/summarize_ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698