MCPcopy Index your code
hub / github.com/Macuyiko/minecraft-python / prefix

Function prefix

ServerEditorWeb/ace/worker-javascript.js:3276–3297  ·  view source on GitHub ↗
(s, f)

Source from the content-addressed store, hash-verified

3274 }
3275
3276 function prefix(s, f) {
3277 var x = symbol(s, 150);
3278 reserveName(x);
3279
3280 x.nud = (typeof f === "function") ? f : function () {
3281 this.right = expression(150);
3282 this.arity = "unary";
3283
3284 if (this.id === "++" || this.id === "--") {
3285 if (state.option.plusplus) {
3286 warning("W016", this, this.id);
3287 } else if (this.right && (!this.right.identifier || isReserved(this.right)) &&
3288 this.right.id !== "." && this.right.id !== "[") {
3289 warning("W017", this);
3290 }
3291 }
3292
3293 return this;
3294 };
3295
3296 return x;
3297 }
3298
3299 function type(s, f) {
3300 var x = delim(s);

Callers 1

Calls 5

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

Tested by

no test coverage detected