MCPcopy Create free account
hub / github.com/codemix/graph / class

Method class

packages/graph/src/grammar.js:92–100  ·  view source on GitHub ↗
(expectation)

Source from the content-addressed store, hash-verified

90 },
91
92 class(expectation) {
93 const escapedParts = expectation.parts.map(
94 part => (Array.isArray(part)
95 ? classEscape(part[0]) + "-" + classEscape(part[1])
96 : classEscape(part))
97 );
98
99 return "[" + (expectation.inverted ? "^" : "") + escapedParts.join("") + "]" + (expectation.unicode ? "u" : "");
100 },
101
102 any() {
103 return "any character";

Callers

nothing calls this directly

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected