MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / parseIdentifier

Method parseIdentifier

tools/mcdevicetree.js:1395–1403  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1393 }
1394
1395 parseIdentifier() {
1396 const startPos = this.pos;
1397
1398 while (this.pos < this.length && this.isIdentifierChar(this.content.charCodeAt(this.pos))) {
1399 this.pos++;
1400 }
1401
1402 return this.content.slice(startPos, this.pos);
1403 }
1404
1405 static toDTS(tree) {
1406 let output = '';

Callers 2

parseValueMethod · 0.95
parseArrayMethod · 0.95

Calls 2

isIdentifierCharMethod · 0.95
sliceMethod · 0.65

Tested by

no test coverage detected