analysisOptionsFromContext function

AnalysisOptions? analysisOptionsFromContext(
  1. AnalysisContext context
)

Implementation

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

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