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

Function classdef

ServerEditorWeb/ace/worker-javascript.js:5471–5485  ·  view source on GitHub ↗
(stmt)

Source from the content-addressed store, hash-verified

5469 });
5470
5471 function classdef(stmt) {
5472 if (!state.option.inESNext()) {
5473 warning("W104", state.tokens.curr, "class");
5474 }
5475 if (stmt) {
5476 this.name = identifier();
5477 addlabel(this.name, { type: "unused", token: state.tokens.curr });
5478 } else if (state.tokens.next.identifier && state.tokens.next.value !== "extends") {
5479 this.name = identifier();
5480 } else {
5481 this.name = state.nameStack.infer();
5482 }
5483 classtail(this);
5484 return this;
5485 }
5486
5487 function classtail(c) {
5488 var strictness = state.directive["use strict"];

Callers

nothing calls this directly

Calls 4

warningFunction · 0.85
identifierFunction · 0.85
addlabelFunction · 0.85
classtailFunction · 0.85

Tested by

no test coverage detected