mirror of https://github.com/AMT-Cheif/drift.git
Run dart format in drift_dev
This commit is contained in:
parent
1ed459c013
commit
c77fc3612f
|
@ -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,
|
||||
|
|
|
@ -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 = {};
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue