MCPcopy Create free account
hub / github.com/dataform-co/dataform / push

Method push

sqlx/lexer.ts:253–265  ·  view source on GitHub ↗
(child: string | SyntaxTreeNode)

Source from the content-addressed store, hash-verified

251 }
252
253 public push(child: string | SyntaxTreeNode): this {
254 if (
255 this.allChildren.length > 0 &&
256 typeof child === "string" &&
257 typeof this.allChildren[this.allChildren.length - 1] === "string"
258 ) {
259 this.allChildren[this.allChildren.length - 1] =
260 this.allChildren[this.allChildren.length - 1] + child;
261 return this;
262 }
263 this.allChildren.push(child);
264 return this;
265 }
266
267 public equals(other: SyntaxTreeNode): boolean {
268 if (this.type !== other.type) {

Callers 13

api.spec.tsFile · 0.45
activateFunction · 0.45
runMethod · 0.45
constructorMethod · 0.45
addSuiteMethod · 0.45
addTestMethod · 0.45
addHookMethod · 0.45
runMethod · 0.45
runMainInVmFunction · 0.45
createMethod · 0.45
separateSqlxIntoPartsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected