@@ -1315,8 +1315,8 @@ class _MockClassInfo {
1315
1315
void _buildOverridingMethod (MethodBuilder builder, MethodElement method) {
1316
1316
var name = method.displayName;
1317
1317
if (method.isOperator) name = 'operator$name ' ;
1318
- final returnType = method.type. returnType;
1319
- _withTypeParameters (method.type.typeFormals , (typeParamsWithBounds, _) {
1318
+ final returnType = method.returnType;
1319
+ _withTypeParameters (method.typeParameters , (typeParamsWithBounds, _) {
1320
1320
builder
1321
1321
..name = name
1322
1322
..annotations.add (referImported ('override' , 'dart:core' ))
@@ -1333,7 +1333,7 @@ class _MockClassInfo {
1333
1333
final invocationNamedArgs = < Expression , Expression > {};
1334
1334
1335
1335
var position = 0 ;
1336
- for (final parameter in method.type. parameters) {
1336
+ for (final parameter in method.parameters) {
1337
1337
if (parameter.isRequiredPositional || parameter.isOptionalPositional) {
1338
1338
final superParameterType =
1339
1339
_escapeCovariance (parameter, position: position);
@@ -1370,7 +1370,7 @@ class _MockClassInfo {
1370
1370
1371
1371
final fallbackGenerator = fallbackGenerators[method.name];
1372
1372
final parametersContainPrivateName =
1373
- method.type. parameters.any ((p) => p.type.containsPrivateName);
1373
+ method.parameters.any ((p) => p.type.containsPrivateName);
1374
1374
final throwsUnsupported = fallbackGenerator == null &&
1375
1375
(returnType.containsPrivateName || parametersContainPrivateName);
1376
1376
@@ -1443,7 +1443,7 @@ class _MockClassInfo {
1443
1443
ExecutableElement method, ExecutableElement function) {
1444
1444
final positionalArguments = < Expression > [];
1445
1445
final namedArguments = < String , Expression > {};
1446
- for (final parameter in method.type. parameters) {
1446
+ for (final parameter in method.parameters) {
1447
1447
if (parameter.isPositional) {
1448
1448
positionalArguments.add (refer (parameter.name));
1449
1449
} else if (parameter.isNamed) {
@@ -1453,7 +1453,7 @@ class _MockClassInfo {
1453
1453
final functionReference =
1454
1454
referImported (function.name, _typeImport (function));
1455
1455
return functionReference.call (positionalArguments, namedArguments, [
1456
- for (final t in method.type.typeFormals )
1456
+ for (final t in method.typeParameters )
1457
1457
_typeParameterReference (t, withBound: false )
1458
1458
]);
1459
1459
}
0 commit comments