MCPcopy Create free account
hub / github.com/browserify/static-module / tryContextual

Function tryContextual

bench/input.js:1258–1270  ·  view source on GitHub ↗
(k, noLineBreak)

Source from the content-addressed store, hash-verified

1256
1257 var method = this.startNode();
1258 var tryContextual = function (k, noLineBreak) {
1259 if ( noLineBreak === void 0 ) noLineBreak = false;
1260
1261 var start = this$1.start, startLoc = this$1.startLoc;
1262 if (!this$1.eatContextual(k)) { return false }
1263 if (this$1.type !== types.parenL && (!noLineBreak || !this$1.canInsertSemicolon())) { return true }
1264 if (method.key) { this$1.unexpected(); }
1265 method.computed = false;
1266 method.key = this$1.startNodeAt(start, startLoc);
1267 method.key.name = k;
1268 this$1.finishNode(method.key, "Identifier");
1269 return false
1270 };
1271
1272 method.kind = "method";
1273 method.static = tryContextual("static");

Callers 1

input.jsFile · 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…