MCPcopy Create free account
hub / github.com/Houseofmvps/codesight / parseSourceFile

Function parseSourceFile

src/ast/loader.ts:55–62  ·  view source on GitHub ↗
(ts: any, fileName: string, content: string)

Source from the content-addressed store, hash-verified

53}
54
55export function parseSourceFile(ts: any, fileName: string, content: string): any {
56 return ts.createSourceFile(
57 fileName,
58 content,
59 ts.ScriptTarget.Latest,
60 true // setParentNodes — needed for walking up the tree
61 );
62}
63
64/**
65 * Get decorators from a node, handling both TS 4.x (node.decorators)

Callers 4

extractDrizzleSchemaASTFunction · 0.85
extractTypeORMSchemaASTFunction · 0.85
extractRoutesASTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected