(isStatement)
| 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"]; |
nothing calls this directly
no test coverage detected