MCPcopy Create free account
hub / github.com/TruthHun/BookStack / parseBracket

Function parseBracket

static/vuejs/vue.esm.js:5653–5669  ·  view source on GitHub ↗
(chr)

Source from the content-addressed store, hash-verified

5651}
5652
5653function parseBracket (chr) {
5654 var inBracket = 1;
5655 expressionPos = index$1;
5656 while (!eof()) {
5657 chr = next();
5658 if (isStringStart(chr)) {
5659 parseString(chr);
5660 continue
5661 }
5662 if (chr === 0x5B) { inBracket++; }
5663 if (chr === 0x5D) { inBracket--; }
5664 if (inBracket === 0) {
5665 expressionEndPos = index$1;
5666 break
5667 }
5668 }
5669}
5670
5671function parseString (chr) {
5672 var stringQuote = chr;

Callers 1

parseModelFunction · 0.70

Calls 4

eofFunction · 0.70
nextFunction · 0.70
isStringStartFunction · 0.70
parseStringFunction · 0.70

Tested by

no test coverage detected