analyzeWithResolver method

List<LintIssue> analyzeWithResolver(
  1. CompilationUnit unit,
  2. dynamic resolver
)

Analyze the given CompilationUnit with resolver context and return a list of LintIssues.

This method provides access to the resolver for file path and other context information. Default implementation calls analyze(unit) for backward compatibility.

Implementation

List<LintIssue> analyzeWithResolver(CompilationUnit unit, dynamic resolver) {
  return analyze(unit);
}