MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / consumeStringOrPath

Function consumeStringOrPath

src/ext/intercept.js:31–34  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

29}
30
31function consumeStringOrPath(parser) {
32 if (parser.currentToken().type === "STRING") return parser.consumeToken().value;
33 return consumeNakedPath(parser);
34}
35
36function consumeStrategy(parser) {
37 var name = parser.requireTokenType("IDENTIFIER").value;

Callers 1

parseMethod · 0.85

Calls 3

consumeNakedPathFunction · 0.85
currentTokenMethod · 0.45
consumeTokenMethod · 0.45

Tested by

no test coverage detected