MCPcopy
hub / github.com/CopilotKit/CopilotKit / parse

Method parse

scripts/docs/lib/source.ts:37–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 constructor(private readonly filePath: string) {}
36
37 parse() {
38 const fileContents = fs.readFileSync(this.filePath, "utf8");
39 this.sourceFile = ts.createSourceFile(
40 this.filePath,
41 fileContents,
42 ts.ScriptTarget.Latest,
43 true,
44 );
45 }
46
47 /**
48 * Get the interface definition of the first argument of the function or class constructor.

Callers 15

getArg0InterfaceMethod · 0.95
visitMethod · 0.95
onCustomEventFunction · 0.80
tsMethod · 0.80
getHistoricRunsMethod · 0.80
decodeInteractionFunction · 0.80
handlePostMethod · 0.80
onCustomEventFunction · 0.80
client.test.tsFile · 0.80

Calls

no outgoing calls

Tested by 15

mockFetchFunction · 0.64
cloneMethod · 0.64
cloneMethod · 0.64
mockFetchFunction · 0.64
mockFetchFunction · 0.64
mockFetchFunction · 0.64
_cloneImplMethod · 0.64
bodyOfFunction · 0.64
telemetryPostsFunction · 0.64
parseDebugEnvelopesFunction · 0.64
safeParseToolArgsFunction · 0.64
cloneMethod · 0.64