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

Method getAttribute

packages/alphatab/src/xml/XmlNode.ts:65–70  ·  view source on GitHub ↗
(name: string, defaultValue: string = '')

Source from the content-addressed store, hash-verified

63 }
64
65 public getAttribute(name: string, defaultValue: string = ''): string {
66 if (this.attributes.has(name)) {
67 return this.attributes.get(name)!;
68 }
69 return defaultValue;
70 }
71
72 public getElementsByTagName(name: string, recursive: boolean = false): XmlNode[] {
73 const tags: XmlNode[] = [];

Callers 15

XmlParse.test.tsFile · 0.80
_parseAssetsMethod · 0.80
_parseTrackMethod · 0.80
_parseStaffPropertyMethod · 0.80
_parseTrackPropertyMethod · 0.80
_parseGeneralMidiMethod · 0.80
_parseMasterBarMethod · 0.80
_parseBarMethod · 0.80
_parseVoiceMethod · 0.80

Calls 2

getMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected