MCPcopy
hub / github.com/lingodotdev/lingo.dev / parse

Function parse

packages/compiler/src/utils/index.spec.ts:14–17  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

12} from "./index";
13
14function parse(code: string) {
15 return createPayload({ code, params: {} as any, relativeFilePath: "x.tsx" })
16 .ast as unknown as t.Node;
17}
18
19describe("getOrCreateImport", () => {
20 it("inserts import when missing and reuses existing import when present", () => {

Callers 15

parseJSXFunction · 0.85
parseCodeFunction · 0.85
parseJSXFunction · 0.85
createMockDataFunction · 0.85
parseJSXFunction · 0.85
parseJSXFunction · 0.85
parseJSXFunction · 0.85
parseJSXFunction · 0.85
parseJSXFunction · 0.85
parseJSXFunction · 0.85
index.spec.tsFile · 0.85
extractCommentsFromJsoncFunction · 0.85

Calls 1

createPayloadFunction · 0.90

Tested by

no test coverage detected