MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / checkPunctuators

Function checkPunctuators

lib/web/jshint.js:23938–23943  ·  view source on GitHub ↗

* Test whether a given token is a punctuator matching one of the specified values * @param {Token} token * @param {Array. } values * @returns {boolean}

(token, values)

Source from the content-addressed store, hash-verified

23936 * @returns {boolean}
23937 */
23938 function checkPunctuators(token, values) {
23939 if (token.type === "(punctuator)") {
23940 return _.contains(values, token.value);
23941 }
23942 return false;
23943 }
23944
23945 /**
23946 * Test whether a given token is a punctuator matching the specified value

Callers 5

jshint.jsFile · 0.85
functionparamsFunction · 0.85
nextInnerDEFunction · 0.85
doCatchFunction · 0.85
lookupBlockTypeFunction · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected