MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / writeIdentifier

Function writeIdentifier

packages/transpiler/src/AstPrinterBase.ts:232–240  ·  view source on GitHub ↗
(expr: cs.Identifier | string)

Source from the content-addressed store, hash-verified

230 }
231
232 protected writeIdentifier(expr: cs.Identifier | string) {
233 let name: string;
234 if (typeof expr !== 'string') {
235 name = this._context.getSymbolName(expr) ?? expr.text;
236 } else {
237 name = expr;
238 }
239 this.write(this.escapeIdentifier(name));
240 }
241
242 protected abstract escapeIdentifier(identifier: string): string;
243

Callers

nothing calls this directly

Calls 3

writeMethod · 0.65
getSymbolNameMethod · 0.45
escapeIdentifierMethod · 0.45

Tested by

no test coverage detected