Run dart format in drift_dev

This commit is contained in:
Simon Binder 2022-11-18 17:01:21 +01:00
parent 1ed459c013
commit c77fc3612f
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
4 changed files with 5 additions and 6 deletions

View File

@ -20,14 +20,14 @@ abstract class DriftBackend {
}
/// Resolves a Dart library by its uri.
///
///
/// This should also be able to resolve SDK libraries.
/// If no Dart library can be found under that uri, throws a
/// [NotALibraryException].
Future<LibraryElement> readDart(Uri uri);
/// Loads the resolved AST node defining the given [element].
///
///
/// Depending on how the analyzer is accessed, this may throw an exception if
/// the resolved AST is not available.
/// When the [element] does not have a syntactic representation in the AST,

View File

@ -2,10 +2,9 @@ import '../results/element.dart';
import 'state.dart';
/// An in-memory cache of analysis results for drift elements.
///
///
/// At the moment, the cache is not set up to handle changing files.
class DriftAnalysisCache {
final Map<Uri, Map<String, Object?>> serializedElements = {};
final Map<Uri, FileState> knownFiles = {};
final Map<DriftElementId, DiscoveredElement> discoveredElements = {};

View File

@ -161,7 +161,7 @@ class DriftAnalysisDriver {
}
/// Runs the second analysis step (element analysis) on a file.
///
///
/// The file, as well as all imports, should have undergone the first analysis
/// step (discovery) at this point, so that the resolver is able to
/// recognize dependencies between different elements.

View File

@ -49,7 +49,7 @@ class DriftPreprocessorResult {
}
/// Processes `.drift` files to extract all embedded Dart snippets.
///
///
/// To analyze drift files in the build system, we extract these snippets into
/// a standalone Dart file so that we're able to analyze them with the resolvers
/// provided by the build system.