MCPcopy Create free account
hub / github.com/BuilderIO/mitosis / inlineCode

Function inlineCode

packages/core/src/generators/qwik/component.ts:253–264  ·  view source on GitHub ↗
(code: string | undefined)

Source from the content-addressed store, hash-verified

251}
252
253function inlineCode(code: string | undefined) {
254 return function (this: SrcBuilder) {
255 if (code) {
256 // HACK: remove the return value as it is not the state we are creating.
257 code = code
258 .trim()
259 .replace(/return main\(\);?$/, '')
260 .trim();
261 this.emit(code, ';');
262 }
263 };
264}
265
266function generateQrl(
267 fromFile: File,

Callers 1

addComponentOnMountFunction · 0.85

Calls 1

emitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…