MCPcopy Index your code
hub / github.com/pegjs/pegjs / peg$c4

Function peg$c4

lib/parser.js:160–174  ·  view source on GitHub ↗
(name, displayName, expression)

Source from the content-addressed store, hash-verified

158 peg$c2 = "=",
159 peg$c3 = peg$literalExpectation("=", false),
160 peg$c4 = function(name, displayName, expression) {
161 return {
162 type: "rule",
163 name: name,
164 expression: displayName !== null
165 ? {
166 type: "named",
167 name: displayName[0],
168 expression: expression,
169 location: location()
170 }
171 : expression,
172 location: location()
173 };
174 },
175 peg$c5 = "/",
176 peg$c6 = peg$literalExpectation("/", false),
177 peg$c7 = function(head, tail) {

Callers 1

peg$parseRuleFunction · 0.85

Calls 1

locationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…