MCPcopy
hub / github.com/PaulTaykalo/objc-dependency-visualizer / prefix

Function prefix

Scripts/ace/worker-javascript.js:3418–3439  ·  view source on GitHub ↗
(s, f)

Source from the content-addressed store, hash-verified

3416 }
3417
3418 function prefix(s, f) {
3419 var x = symbol(s, 150);
3420 reserveName(x);
3421
3422 x.nud = (typeof f === "function") ? f : function() {
3423 this.arity = "unary";
3424 this.right = expression(150);
3425
3426 if (this.id === "++" || this.id === "--") {
3427 if (state.option.plusplus) {
3428 warning("W016", this, this.id);
3429 } else if (this.right && (!this.right.identifier || isReserved(this.right)) &&
3430 this.right.id !== "." && this.right.id !== "[") {
3431 warning("W017", this);
3432 }
3433 }
3434
3435 return this;
3436 };
3437
3438 return x;
3439 }
3440
3441 function type(s, f) {
3442 var x = delim(s);

Callers 1

Calls 5

reserveNameFunction · 0.85
expressionFunction · 0.85
warningFunction · 0.85
isReservedFunction · 0.85
symbolFunction · 0.70

Tested by

no test coverage detected