analysisOptionsFromFile function

AnalysisOptions analysisOptionsFromFile(
  1. File? options,
  2. AnalysisContext context
)

Implementation

AnalysisOptions analysisOptionsFromFile(
  File? options,
  AnalysisContext context,
) =>
    options != null && options.existsSync()
        ? AnalysisOptions(
            options.path,
            _loadConfigFromYamlFile(
              options,
              context.currentSession.uriConverter,
            ),
          )
        : const AnalysisOptions(null, {});