mirror of https://github.com/AMT-Cheif/drift.git
Remove usage of ParsedLibraryResultImpl.tmp
This commit is contained in:
parent
734ea86c6d
commit
2a51a04cc8
|
@ -1,7 +1,6 @@
|
|||
import 'package:analyzer/dart/element/element.dart';
|
||||
import 'package:analyzer/dart/element/type.dart';
|
||||
import 'package:analyzer/dart/analysis/results.dart';
|
||||
import 'package:analyzer/src/dart/analysis/results.dart'; // ignore: implementation_imports
|
||||
import 'package:moor/moor.dart' show Table;
|
||||
import 'package:moor_generator/src/parser/column_parser.dart';
|
||||
import 'package:moor_generator/src/parser/table_parser.dart';
|
||||
|
@ -30,8 +29,8 @@ class SharedState {
|
|||
}
|
||||
|
||||
ElementDeclarationResult loadElementDeclaration(Element element) {
|
||||
// ignore: deprecated_member_use
|
||||
final result = ParsedLibraryResultImpl.tmp(element.library);
|
||||
final result =
|
||||
element.library.session.getParsedLibraryByElement(element.library);
|
||||
return result.getElementDeclaration(element);
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ environment:
|
|||
sdk: '>=2.2.0 <3.0.0'
|
||||
|
||||
dependencies:
|
||||
analyzer: '>=0.35.2 <0.37.0'
|
||||
analyzer: '>=0.35.2 <0.38.0'
|
||||
recase: ^2.0.1
|
||||
built_value: '>=6.3.0 <7.0.0'
|
||||
source_gen: ^0.9.4
|
||||
|
|
Loading…
Reference in New Issue