blob: 340d5c7ff8aeffdfd1bbcfef298d8e8e74606929 [file] [log] [blame]
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:analyzer/dart/analysis/analysis_context.dart';
import 'package:analyzer/dart/analysis/session.dart';
import 'package:analyzer/file_system/file_system.dart' show ResourceProvider;
class DriverProviderImpl {
final ResourceProvider resourceProvider;
final AnalysisContext analysisContext;
DriverProviderImpl(this.resourceProvider, this.analysisContext);
/// Return the appropriate analysis session for the file with the given
/// [path].
AnalysisSession getAnalysisSession(String path) =>
analysisContext.currentSession;
}