@@ -36,12 +36,12 @@ import 'package:meta/meta.dart';
3636/// [StringLiteral] [StringLiteral]+
3737class AdjacentStringsImpl extends StringLiteralImpl implements AdjacentStrings {
3838 /// The strings that are implicitly concatenated.
39- final NodeListImpl <StringLiteral > _strings = NodeListImpl ._();
39+ final NodeListImpl <StringLiteralImpl > _strings = NodeListImpl ._();
4040
4141 /// Initialize a newly created list of adjacent strings. To be syntactically
4242 /// valid, the list of [strings] must contain at least two elements.
4343 AdjacentStringsImpl ({
44- required List <StringLiteral > strings,
44+ required List <StringLiteralImpl > strings,
4545 }) {
4646 _strings._initialize (this , strings);
4747 }
@@ -53,7 +53,7 @@ class AdjacentStringsImpl extends StringLiteralImpl implements AdjacentStrings {
5353 Token get endToken => _strings.endToken! ;
5454
5555 @override
56- NodeListImpl <StringLiteral > get strings => _strings;
56+ NodeListImpl <StringLiteralImpl > get strings => _strings;
5757
5858 @override
5959 ChildEntities get _childEntities {
@@ -77,8 +77,7 @@ class AdjacentStringsImpl extends StringLiteralImpl implements AdjacentStrings {
7777 void _appendStringValue (StringBuffer buffer) {
7878 int length = strings.length;
7979 for (int i = 0 ; i < length; i++ ) {
80- var stringLiteral = strings[i] as StringLiteralImpl ;
81- stringLiteral._appendStringValue (buffer);
80+ strings[i]._appendStringValue (buffer);
8281 }
8382 }
8483}
@@ -342,7 +341,7 @@ class ArgumentListImpl extends AstNodeImpl implements ArgumentList {
342341 Token leftParenthesis;
343342
344343 /// The expressions producing the values of the arguments.
345- final NodeListImpl <Expression > _arguments = NodeListImpl ._();
344+ final NodeListImpl <ExpressionImpl > _arguments = NodeListImpl ._();
346345
347346 /// The right parenthesis.
348347 @override
@@ -360,14 +359,14 @@ class ArgumentListImpl extends AstNodeImpl implements ArgumentList {
360359 /// be `null` if there are no arguments.
361360 ArgumentListImpl ({
362361 required this .leftParenthesis,
363- required List <Expression > arguments,
362+ required List <ExpressionImpl > arguments,
364363 required this .rightParenthesis,
365364 }) {
366365 _arguments._initialize (this , arguments);
367366 }
368367
369368 @override
370- NodeListImpl <Expression > get arguments => _arguments;
369+ NodeListImpl <ExpressionImpl > get arguments => _arguments;
371370
372371 @override
373372 Token get beginToken => leftParenthesis;
@@ -1227,7 +1226,7 @@ class BlockImpl extends StatementImpl implements Block {
12271226 Token leftBracket;
12281227
12291228 /// The statements contained in the block.
1230- final NodeListImpl <Statement > _statements = NodeListImpl ._();
1229+ final NodeListImpl <StatementImpl > _statements = NodeListImpl ._();
12311230
12321231 /// The right curly bracket.
12331232 @override
@@ -1236,7 +1235,7 @@ class BlockImpl extends StatementImpl implements Block {
12361235 /// Initialize a newly created block of code.
12371236 BlockImpl ({
12381237 required this .leftBracket,
1239- required List <Statement > statements,
1238+ required List <StatementImpl > statements,
12401239 required this .rightBracket,
12411240 }) {
12421241 _statements._initialize (this , statements);
@@ -1249,7 +1248,7 @@ class BlockImpl extends StatementImpl implements Block {
12491248 Token get endToken => rightBracket;
12501249
12511250 @override
1252- NodeListImpl <Statement > get statements => _statements;
1251+ NodeListImpl <StatementImpl > get statements => _statements;
12531252
12541253 @override
12551254 ChildEntities get _childEntities => ChildEntities ()
@@ -1397,13 +1396,13 @@ class CascadeExpressionImpl extends ExpressionImpl
13971396 ExpressionImpl _target;
13981397
13991398 /// The cascade sections sharing the common target.
1400- final NodeListImpl <Expression > _cascadeSections = NodeListImpl ._();
1399+ final NodeListImpl <ExpressionImpl > _cascadeSections = NodeListImpl ._();
14011400
14021401 /// Initialize a newly created cascade expression. The list of
14031402 /// [cascadeSections] must contain at least one element.
14041403 CascadeExpressionImpl ({
14051404 required ExpressionImpl target,
1406- required List <Expression > cascadeSections,
1405+ required List <ExpressionImpl > cascadeSections,
14071406 }) : _target = target {
14081407 _becomeParentOf (_target);
14091408 _cascadeSections._initialize (this , cascadeSections);
@@ -1413,7 +1412,7 @@ class CascadeExpressionImpl extends ExpressionImpl
14131412 Token get beginToken => _target.beginToken;
14141413
14151414 @override
1416- NodeListImpl <Expression > get cascadeSections => _cascadeSections;
1415+ NodeListImpl <ExpressionImpl > get cascadeSections => _cascadeSections;
14171416
14181417 @override
14191418 Token get endToken => _cascadeSections.endToken! ;
@@ -1875,7 +1874,7 @@ class ClassDeclarationImpl extends NamedCompilationUnitMemberImpl
18751874 Token leftBracket;
18761875
18771876 /// The members defined by the class or mixin.
1878- final NodeListImpl <ClassMember > _members = NodeListImpl ._();
1877+ final NodeListImpl <ClassMemberImpl > _members = NodeListImpl ._();
18791878
18801879 /// The right curly bracket.
18811880 @override
@@ -1903,7 +1902,7 @@ class ClassDeclarationImpl extends NamedCompilationUnitMemberImpl
19031902 required ImplementsClauseImpl ? implementsClause,
19041903 required NativeClauseImpl ? nativeClause,
19051904 required this .leftBracket,
1906- required List <ClassMember > members,
1905+ required List <ClassMemberImpl > members,
19071906 required this .rightBracket,
19081907 }) : _typeParameters = typeParameters,
19091908 _extendsClause = extendsClause,
@@ -1946,7 +1945,7 @@ class ClassDeclarationImpl extends NamedCompilationUnitMemberImpl
19461945 }
19471946
19481947 @override
1949- NodeListImpl <ClassMember > get members => _members;
1948+ NodeListImpl <ClassMemberImpl > get members => _members;
19501949
19511950 @override
19521951 NativeClauseImpl ? get nativeClause => _nativeClause;
0 commit comments