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

Method parseUnary

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

Source from the content-addressed store, hash-verified

164 }
165
166 private parseUnary(): ExprNode {
167 this.skipWhitespace();
168 if (this.consumeIf("-")) {
169 return {
170 kind: "unary",
171 op: "-",
172 operand: this.parseUnary(),
173 };
174 }
175 return this.parseAtom();
176 }
177
178 private parseAtom(): ExprNode {
179 this.skipWhitespace();

Callers 1

parseMultiplicativeMethod · 0.95

Calls 3

skipWhitespaceMethod · 0.95
consumeIfMethod · 0.95
parseAtomMethod · 0.95

Tested by

no test coverage detected