MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / parse

Method parse

packages/core/src/constraints/parser.ts:86–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 }
85
86 parse(): ExprNode {
87 this.skipWhitespace();
88 if (this.isEof()) {
89 this.fail("Unexpected end of input");
90 }
91 const node = this.parseExpr();
92 this.skipWhitespace();
93 if (!this.isEof()) {
94 const tok = this.peek();
95 this.fail(tok === null ? "Unexpected end of input" : `Unexpected token "${tok}"`);
96 }
97 return node;
98 }
99
100 private parseExpr(): ExprNode {
101 return this.parseTernary();

Callers 15

parseFunction · 0.95
loadFixtureFunction · 0.80
loadFixtureFunction · 0.80
loadFixtureByPathFunction · 0.80
loadJsonFunction · 0.80
parseReproBundleJsonFunction · 0.80
cloneDarkThemeFunction · 0.80
cloneThemeFunction · 0.80
cloneThemeFunction · 0.80
cloneThemeFunction · 0.80
loadFixtureFunction · 0.80

Calls 5

skipWhitespaceMethod · 0.95
isEofMethod · 0.95
failMethod · 0.95
parseExprMethod · 0.95
peekMethod · 0.95

Tested by 15

loadFixtureFunction · 0.64
loadFixtureFunction · 0.64
loadFixtureByPathFunction · 0.64
loadJsonFunction · 0.64
cloneDarkThemeFunction · 0.64
cloneThemeFunction · 0.64
cloneThemeFunction · 0.64
cloneThemeFunction · 0.64
loadFixtureFunction · 0.64
loadLayerHitFixtureFunction · 0.64
parseMessageFunction · 0.64
loadFixtureFunction · 0.64