MCPcopy Index your code
hub / github.com/BloombergGraphics/whatiscode / matchAssign

Function matchAssign

scripts/libs/esprima.js:2184–2203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2182 // Return true if the next token is an assignment operator
2183
2184 function matchAssign() {
2185 var op;
2186
2187 if (lookahead.type !== Token.Punctuator) {
2188 return false;
2189 }
2190 op = lookahead.value;
2191 return op === '=' ||
2192 op === '*=' ||
2193 op === '/=' ||
2194 op === '%=' ||
2195 op === '+=' ||
2196 op === '-=' ||
2197 op === '<<=' ||
2198 op === '>>=' ||
2199 op === '>>>=' ||
2200 op === '&=' ||
2201 op === '^=' ||
2202 op === '|=';
2203 }
2204
2205 function consumeSemicolon() {
2206 // Catch the very common case first: immediately a semicolon (U+003B).

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected