MCPcopy
hub / github.com/BuilderIO/mitosis / push

Method push

packages/core/src/generators/qwik/src-generator.ts:212–230  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

210 }
211
212 private push(value: string) {
213 if (
214 value.startsWith(')') ||
215 value.startsWith(':') ||
216 value.startsWith(']') ||
217 value.startsWith('}') ||
218 value.startsWith(',') ||
219 value.startsWith('?')
220 ) {
221 // clear last ',' or ';';
222 let index = this.buf.length - 1;
223 let ch: string = this.buf[index];
224 if (ch.endsWith(',') || ch.endsWith(';')) {
225 ch = ch.substring(0, ch.length - 1);
226 this.buf[index] = ch;
227 }
228 }
229 this.buf.push(value);
230 }
231
232 emitList(values: any[], sep: string = ',') {
233 let separator = false;

Callers 15

emitMethod · 0.95
CallExpressionFunction · 0.80
getTypesFromNodeFunction · 0.80
jsonObjectToAstFunction · 0.80
handleImportDeclarationFunction · 0.80
componentFunctionToJsonFunction · 0.80
resolveFunction · 0.80
PersonalizationContainerFunction · 0.80
extractSymbolsFunction · 0.80
parseChildrenFunction · 0.80
enterFunction · 0.80
parseActionFunction · 0.80

Calls

no outgoing calls

Tested by 2

findAndRunScriptsFunction · 0.64
findAndRunScriptsFunction · 0.64