MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / isDartFile

Function isDartFile

src/extension/utils.ts:135–137  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

133}
134
135export function isDartFile(file: string): boolean {
136 return !!file && path.extname(file).toLowerCase() === ".dart" && existsAndIsFileSync(file);
137}
138
139export function isInsideFolderNamed(file: string | undefined, folderName: string): boolean {
140 if (!file)

Callers 4

isTestFileFunction · 0.85
isRunnableTestFileFunction · 0.85
isValidEntryFileFunction · 0.85

Calls 1

existsAndIsFileSyncFunction · 0.90

Tested by

no test coverage detected