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