MCPcopy Create free account
hub / github.com/facebook/pyrefly / asObject

Function asObject

lsp/src/codeLens.ts:40–42  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

38const shownRunnableCodeLensErrors = new Set<string>();
39
40function asObject(value: unknown): Record<string, unknown> | undefined {
41 return value != null && typeof value === 'object' ? (value as Record<string, unknown>) : undefined;
42}
43
44function parsePosition(value: unknown): CodeLensPosition | undefined {
45 const position = asObject(value);

Callers 3

parsePositionFunction · 0.85
parseRunMainArgsFunction · 0.85
parseRunTestArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected