MCPcopy
hub / github.com/graphql/graphiql / p

Function p

packages/graphql-language-service/src/parser/RuleHelpers.ts:47–53  ·  view source on GitHub ↗
(value: string, style?: string)

Source from the content-addressed store, hash-verified

45
46// Punctuator
47export function p(value: string, style?: string): Rule {
48 return {
49 style: style || 'punctuation',
50 match: (token: Token) =>
51 token.kind === 'Punctuation' && token.value === value,
52 };
53}

Callers 5

mode.tsFile · 0.90
mode.tsFile · 0.90
Rules.tsFile · 0.90
constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected