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

Function classdef

Scripts/ace/worker-javascript.js:5757–5772  ·  view source on GitHub ↗
(isStatement)

Source from the content-addressed store, hash-verified

5755 });
5756
5757 function classdef(isStatement) {
5758 if (!state.option.inESNext()) {
5759 warning("W104", state.tokens.curr, "class");
5760 }
5761 if (isStatement) {
5762 this.name = identifier();
5763 addlabel(this.name, { type: "unused", token: state.tokens.curr });
5764 } else if (state.tokens.next.identifier && state.tokens.next.value !== "extends") {
5765 this.name = identifier();
5766 this.namedExpr = true;
5767 } else {
5768 this.name = state.nameStack.infer();
5769 }
5770 classtail(this);
5771 return this;
5772 }
5773
5774 function classtail(c) {
5775 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