MCPcopy Index your code
hub / github.com/glideapps/quicktype / constructor

Method constructor

test/fixtures.ts:311–334  ·  view source on GitHub ↗
(language: languages.Language)

Source from the content-addressed store, hash-verified

309 private readonly runLanguage: languages.Language;
310
311 constructor(language: languages.Language) {
312 const schemaLanguage: languages.Language = {
313 name: "schema",
314 base: language.base,
315 setupCommand: language.setupCommand,
316 runCommand: (sample: string) => {
317 return panic("This must not be called!");
318 },
319 diffViaSchema: false,
320 allowMissingNull: language.allowMissingNull,
321 output: "schema.json",
322 topLevel: "schema",
323 skipJSON: [
324 "blns-object.json", // AJV refuses to even "compile" the schema we generate
325 "31189.json" // same here
326 ],
327 skipSchema: [],
328 rendererOptions: {},
329 quickTestRendererOptions: []
330 };
331 super(schemaLanguage);
332 this.runLanguage = language;
333 this.name = `schema-json-${language.name}`;
334 }
335
336 runForName(name: string): boolean {
337 return this.name === name || name === "schema-json";

Callers

nothing calls this directly

Calls 1

panicFunction · 0.90

Tested by

no test coverage detected