analysisOptionsFromContext function

Future<AnalysisOptions?> analysisOptionsFromContext(
  1. AnalysisContext context
)

Implementation

Future<AnalysisOptions?> analysisOptionsFromContext(
  AnalysisContext context,
) async {
  final optionsFilePath = context.contextRoot.optionsFile?.path;

  // print('optionsFilePath=${optionsFilePath}');

  return optionsFilePath == null
      ? null
      : analysisOptionsFromFile(File(optionsFilePath));
}