MCPcopy Index your code
hub / github.com/CoderLine/alphaTab / valueToText

Function valueToText

packages/lsp/src/server/hover.ts:162–172  ·  view source on GitHub ↗
(value: alphaTab.importer.alphaTex.IAlphaTexArgumentValue)

Source from the content-addressed store, hash-verified

160}
161
162function valueToText(value: alphaTab.importer.alphaTex.IAlphaTexArgumentValue): string {
163 switch (value.nodeType) {
164 case alphaTab.importer.alphaTex.AlphaTexNodeType.Ident:
165 case alphaTab.importer.alphaTex.AlphaTexNodeType.String:
166 return (value as alphaTab.importer.alphaTex.AlphaTexTextNode).text;
167 case alphaTab.importer.alphaTex.AlphaTexNodeType.Number:
168 return (value as alphaTab.importer.alphaTex.AlphaTexNumberLiteral).value.toString();
169 }
170
171 return '';
172}
173
174function createArgumentsHover(
175 values: alphaTab.importer.alphaTex.AlphaTexArgumentList,

Callers 1

createArgumentsHoverFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected