@@ -26,45 +26,45 @@ import 'package:test/test.dart';
2626
2727mixin ElementsTypesMixin {
2828 InterfaceTypeImpl get boolNone {
29- var element = typeProvider.boolElement ;
30- return interfaceTypeNone (element);
29+ var element = typeProvider.boolElement2 ;
30+ return interfaceTypeNone2 (element);
3131 }
3232
3333 InterfaceTypeImpl get boolQuestion {
34- var element = typeProvider.boolElement ;
35- return interfaceTypeQuestion (element);
34+ var element = typeProvider.boolElement2 ;
35+ return interfaceTypeQuestion2 (element);
3636 }
3737
3838 InterfaceTypeImpl get doubleNone {
39- var element = typeProvider.doubleType.element ;
40- return interfaceTypeNone (element);
39+ var element = typeProvider.doubleElement2 ;
40+ return interfaceTypeNone2 (element);
4141 }
4242
4343 InterfaceTypeImpl get doubleQuestion {
44- var element = typeProvider.doubleType.element ;
45- return interfaceTypeQuestion (element);
44+ var element = typeProvider.doubleElement2 ;
45+ return interfaceTypeQuestion2 (element);
4646 }
4747
4848 TypeImpl get dynamicType => DynamicTypeImpl .instance;
4949
5050 InterfaceTypeImpl get functionNone {
51- var element = typeProvider.functionType.element ;
52- return interfaceTypeNone (element);
51+ var element = typeProvider.functionElement2 ;
52+ return interfaceTypeNone2 (element);
5353 }
5454
5555 InterfaceTypeImpl get functionQuestion {
56- var element = typeProvider.functionType.element ;
57- return interfaceTypeQuestion (element);
56+ var element = typeProvider.functionElement2 ;
57+ return interfaceTypeQuestion2 (element);
5858 }
5959
6060 InterfaceTypeImpl get intNone {
61- var element = typeProvider.intType.element ;
62- return interfaceTypeNone (element);
61+ var element = typeProvider.intElement2 ;
62+ return interfaceTypeNone2 (element);
6363 }
6464
6565 InterfaceTypeImpl get intQuestion {
66- var element = typeProvider.intType.element ;
67- return interfaceTypeQuestion (element);
66+ var element = typeProvider.intElement2 ;
67+ return interfaceTypeQuestion2 (element);
6868 }
6969
7070 TypeImpl get invalidType => InvalidTypeImpl .instance;
@@ -74,43 +74,43 @@ mixin ElementsTypesMixin {
7474 NeverTypeImpl get neverQuestion => NeverTypeImpl .instanceNullable;
7575
7676 InterfaceTypeImpl get nullNone {
77- var element = typeProvider.nullType.element ;
78- return interfaceTypeNone (element);
77+ var element = typeProvider.nullElement2 ;
78+ return interfaceTypeNone2 (element);
7979 }
8080
8181 InterfaceTypeImpl get numNone {
82- var element = typeProvider.numType.element ;
83- return interfaceTypeNone (element);
82+ var element = typeProvider.numElement2 ;
83+ return interfaceTypeNone2 (element);
8484 }
8585
8686 InterfaceTypeImpl get numQuestion {
87- var element = typeProvider.numType.element ;
88- return interfaceTypeQuestion (element);
87+ var element = typeProvider.numElement2 ;
88+ return interfaceTypeQuestion2 (element);
8989 }
9090
9191 InterfaceTypeImpl get objectNone {
92- var element = typeProvider.objectType.element ;
93- return interfaceTypeNone (element);
92+ var element = typeProvider.objectElement2 ;
93+ return interfaceTypeNone2 (element);
9494 }
9595
9696 InterfaceTypeImpl get objectQuestion {
97- var element = typeProvider.objectType.element ;
98- return interfaceTypeQuestion (element);
97+ var element = typeProvider.objectElement2 ;
98+ return interfaceTypeQuestion2 (element);
9999 }
100100
101101 InterfaceTypeImpl get recordNone {
102- var element = typeProvider.recordElement ;
103- return interfaceTypeNone (element);
102+ var element = typeProvider.recordElement2 ;
103+ return interfaceTypeNone2 (element);
104104 }
105105
106106 InterfaceTypeImpl get stringNone {
107- var element = typeProvider.stringType.element ;
108- return interfaceTypeNone (element);
107+ var element = typeProvider.stringElement2 ;
108+ return interfaceTypeNone2 (element);
109109 }
110110
111111 InterfaceTypeImpl get stringQuestion {
112- var element = typeProvider.stringType.element ;
113- return interfaceTypeQuestion (element);
112+ var element = typeProvider.stringElement2 ;
113+ return interfaceTypeQuestion2 (element);
114114 }
115115
116116 LibraryElementImpl get testLibrary => throw UnimplementedError ();
@@ -354,6 +354,16 @@ mixin ElementsTypesMixin {
354354 );
355355 }
356356
357+ InterfaceTypeImpl interfaceTypeNone2 (
358+ InterfaceElementImpl2 element, {
359+ List <DartType > typeArguments = const [],
360+ }) {
361+ return element.instantiate (
362+ typeArguments: typeArguments,
363+ nullabilitySuffix: NullabilitySuffix .none,
364+ );
365+ }
366+
357367 InterfaceTypeImpl interfaceTypeQuestion (
358368 InterfaceElementImpl element, {
359369 List <DartType > typeArguments = const [],
@@ -364,6 +374,16 @@ mixin ElementsTypesMixin {
364374 );
365375 }
366376
377+ InterfaceTypeImpl interfaceTypeQuestion2 (
378+ InterfaceElementImpl2 element, {
379+ List <DartType > typeArguments = const [],
380+ }) {
381+ return element.instantiate (
382+ typeArguments: typeArguments,
383+ nullabilitySuffix: NullabilitySuffix .question,
384+ );
385+ }
386+
367387 InterfaceTypeImpl iterableNone (DartType type) {
368388 return typeProvider.iterableElement.instantiate (
369389 typeArguments: [type],
0 commit comments