Remove usage of ParsedLibraryResultImpl.tmp

This commit is contained in:
Simon Binder 2019-07-05 18:36:05 +02:00
parent 734ea86c6d
commit 2a51a04cc8
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
2 changed files with 3 additions and 4 deletions

View File

@ -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);
}

View File

@ -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