MCPcopy Create free account
hub / github.com/Effect-TS/effect / at

Function at

packages/effect/src/internal/schema/codeExpression.ts:18–18  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

16 const isLiteral = (token: Token | undefined): boolean => token?.kind === "string" || token?.kind === "number"
17
18 const at = (text: string): boolean => tokens[index]?.text === text
19 const take = (text: string): boolean => at(text) ? (index++, true) : false
20 const expect = (text: string): void => {
21 if (!take(text)) fail()

Callers 3

takeFunction · 0.70
listFunction · 0.70
typeMemberFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected