MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / isAbsoluteSourceFile

Function isAbsoluteSourceFile

packages/nativescript-inspector/src/index.ts:2245–2251  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

2243}
2244
2245function isAbsoluteSourceFile(file: string): boolean {
2246 return (
2247 file.startsWith("/") ||
2248 /^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(file) ||
2249 /^[A-Za-z]:[\\/]/.test(file)
2250 );
2251}
2252
2253function sourceLocationForView(view: any, sourceRoot = ""): JSONObject | null {
2254 const raw = safeCall(

Callers 2

normalizeSourceRootFunction · 0.70
absoluteSourceFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected