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

Unified Diff: pkg/analyzer/lib/src/dart/ast/ast.dart

Issue 2342383002: Initial support for the NNBD proposal (Closed)
Patch Set: Addressed comments and added tests Created 4 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
« no previous file with comments | « pkg/analyzer/lib/dart/ast/ast.dart ('k') | pkg/analyzer/lib/src/dart/ast/utilities.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/ast/ast.dart
diff --git a/pkg/analyzer/lib/src/dart/ast/ast.dart b/pkg/analyzer/lib/src/dart/ast/ast.dart
index 234298d0d09eb2a28cbc69fb7c640e2589f50f4e..3ee70ceb9e8cf7cfb2d9e99f7c31acaf0b29e377 100644
--- a/pkg/analyzer/lib/src/dart/ast/ast.dart
+++ b/pkg/analyzer/lib/src/dart/ast/ast.dart
@@ -5453,6 +5453,9 @@ class FunctionTypedFormalParameterImpl extends NormalFormalParameterImpl
*/
FormalParameterList _parameters;
+ @override
+ Token question;
+
/**
* Initialize a newly created formal parameter. Either or both of the
* [comment] and [metadata] can be `null` if the parameter does not have the
@@ -5465,7 +5468,8 @@ class FunctionTypedFormalParameterImpl extends NormalFormalParameterImpl
TypeNameImpl returnType,
SimpleIdentifierImpl identifier,
TypeParameterListImpl typeParameters,
- FormalParameterListImpl parameters)
+ FormalParameterListImpl parameters,
+ this.question)
: super(comment, metadata, identifier) {
_returnType = _becomeParentOf(returnType);
_typeParameters = _becomeParentOf(typeParameters);
@@ -10290,6 +10294,9 @@ class TypeNameImpl extends AstNodeImpl implements TypeName {
*/
TypeArgumentList _typeArguments;
+ @override
+ Token question;
+
/**
* The type being named, or `null` if the AST structure has not been resolved.
*/
@@ -10299,7 +10306,8 @@ class TypeNameImpl extends AstNodeImpl implements TypeName {
* Initialize a newly created type name. The [typeArguments] can be `null` if
* there are no type arguments.
*/
- TypeNameImpl(IdentifierImpl name, TypeArgumentListImpl typeArguments) {
+ TypeNameImpl(
+ IdentifierImpl name, TypeArgumentListImpl typeArguments, this.question) {
_name = _becomeParentOf(name);
_typeArguments = _becomeParentOf(typeArguments);
}
« no previous file with comments | « pkg/analyzer/lib/dart/ast/ast.dart ('k') | pkg/analyzer/lib/src/dart/ast/utilities.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698