method Project.prototype.getSourceFileimport { Project } from "https://dotland.deno.dev/x/fresh@1.7.2/tests/deps.ts"; getSourceFile(fileNameOrPath: string): SourceFile | undefinedGets a source file by a file name or file path. Returns undefined if none exists. getSourceFile(searchFunction: (file: SourceFile) => boolean): SourceFile | undefinedGets a source file by a search function. Returns undefined if none exists. Gets a source file by a file name or file path. Returns undefined if none exists. ParametersfileNameOrPath: string File name or path that the path could end with or equal. ReturnsSourceFile | undefinedGets a source file by a search function. Returns undefined if none exists. ParameterssearchFunction: (file: SourceFile) => boolean Search function. ReturnsSourceFile | undefined