File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import 'dart:collection';
16
16
17
17
import 'package:analyzer/dart/ast/ast.dart' as ast;
18
18
import 'package:analyzer/dart/constant/value.dart' ;
19
- import 'package:analyzer/dart/element/element.dart' ;
20
19
import 'package:analyzer/dart/element/element2.dart' ;
21
20
import 'package:analyzer/dart/element/nullability_suffix.dart' ;
22
21
import 'package:analyzer/dart/element/type.dart' as analyzer;
@@ -77,7 +76,7 @@ class MockBuilder implements Builder {
77
76
@override
78
77
Future <void > build (BuildStep buildStep) async {
79
78
if (! await buildStep.resolver.isLibrary (buildStep.inputId)) return ;
80
- final entryLib = await buildStep.inputLibrary2 ;
79
+ final entryLib = await buildStep.inputLibrary ;
81
80
final sourceLibIsNonNullable = true ;
82
81
83
82
final mockLibraryAsset = buildStep.allowedOutputs.singleOrNull;
@@ -244,7 +243,7 @@ $rawOutput
244
243
final exportingLibrary = _findExportOf (librariesWithTypes, element);
245
244
246
245
try {
247
- final typeAssetId = await resolver.assetIdForElement2 (exportingLibrary);
246
+ final typeAssetId = await resolver.assetIdForElement (exportingLibrary);
248
247
249
248
if (typeAssetId.path.startsWith ('lib/' )) {
250
249
typeUris[element] = typeAssetId.uri.toString ();
You can’t perform that action at this time.
0 commit comments