Function
parseInitializer
(
this: Parser,
node: Undone<
N.ClassProperty | N.ClassPrivateProperty | N.ClassAccessorProperty
>,
)
Source from the content-addressed store, hash-verified
| 2176 | |
| 2177 | // https://tc39.es/ecma262/#prod-Initializer |
| 2178 | parseInitializer( |
| 2179 | this: Parser, |
| 2180 | node: Undone< |
| 2181 | N.ClassProperty | N.ClassPrivateProperty | N.ClassAccessorProperty |
| 2182 | >, |
| 2183 | ): void { |
| 2184 | this.scope.enter(ScopeFlag.CLASS | ScopeFlag.SUPER); |
| 2185 | this.expressionScope.enter(sharedExpressionScope); |
| 2186 | this.prodParam.enter(ParamKind.PARAM); |
| 2187 | node.value = this.eat(tt.eq) ? this.parseMaybeAssignAllowIn() : null; |
| 2188 | this.expressionScope.exit(); |
| 2189 | this.prodParam.exit(); |
| 2190 | this.scope.exit(); |
| 2191 | } |
| 2192 | |
| 2193 | parseClassId( |
| 2194 | node: Undone<N.Class | N.StructDeclaration>, |
Callers
nothing calls this directly
Tested by
no test coverage detected