withFilePath method
Copy of this diagnostic reported against path instead of filePath.
Implementation
ScanDiagnostic withFilePath(String path) => ScanDiagnostic(
ruleName: ruleName,
filePath: path,
line: line,
column: column,
offset: offset,
length: length,
endLine: endLine,
endColumn: endColumn,
severity: severity,
problemMessage: problemMessage,
correctionMessage: correctionMessage,
impact: impact,
);