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

Method parseNamedAtom

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

Source from the content-addressed store, hash-verified

195 }
196
197 private parseNamedAtom(): ExprNode {
198 const identStart = this.pos;
199 const ident = this.readIdentifier();
200 this.skipWhitespace();
201 const next = this.peek();
202
203 if (next === "(") return this.parseCall(ident, identStart);
204 if (next === ".") return this.parseScopedRef(ident);
205 this.fail(`Unknown identifier "${ident}"`, identStart);
206 }
207
208 private parseCall(name: string, namePosition: number): ExprNode {
209 if (!isKnownConstraintFunctionName(name)) {

Callers 1

parseAtomMethod · 0.95

Calls 6

readIdentifierMethod · 0.95
skipWhitespaceMethod · 0.95
peekMethod · 0.95
parseCallMethod · 0.95
parseScopedRefMethod · 0.95
failMethod · 0.95

Tested by

no test coverage detected