MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / startsWithPrefix

Function startsWithPrefix

packages/queryLanguage/src/tokens.ts:103–105  ·  view source on GitHub ↗

* Checks if current position starts with a prefix keyword.

(input: InputStream)

Source from the content-addressed store, hash-verified

101 * Checks if current position starts with a prefix keyword.
102 */
103function startsWithPrefix(input: InputStream): boolean {
104 return startsWithPrefixAt(input, 0);
105}
106
107/**
108 * Checks if the input at the given offset starts with a prefix keyword.

Callers 1

tokens.tsFile · 0.85

Calls 1

startsWithPrefixAtFunction · 0.85

Tested by

no test coverage detected