MCPcopy Create free account
hub / github.com/tree-sitter/tree-sitter-javascript / commaSep1

Function commaSep1

grammar.js:1311–1313  ·  view source on GitHub ↗

* Creates a rule to match one or more of the rules separated by a comma * * @param {Rule} rule * * @returns {SeqRule}

(rule)

Source from the content-addressed store, hash-verified

1309 * @returns {SeqRule}
1310 */
1311function commaSep1(rule) {
1312 return seq(rule, repeat(seq(',', rule)));
1313}
1314
1315/**
1316 * Creates a rule to optionally match one or more of the rules separated by a comma

Callers 2

grammar.jsFile · 0.85
commaSepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…