MCPcopy Create free account
hub / github.com/dop251/goja / compileObjectAssignmentPattern

Method compileObjectAssignmentPattern

compiler_expr.go:3257–3263  ·  view source on GitHub ↗
(v *ast.ObjectPattern)

Source from the content-addressed store, hash-verified

3255}
3256
3257func (c *compiler) compileObjectAssignmentPattern(v *ast.ObjectPattern) compiledExpr {
3258 r := &compiledObjectAssignmentPattern{
3259 expr: v,
3260 }
3261 r.init(c, v.Idx0())
3262 return r
3263}
3264
3265func (e *compiledObjectAssignmentPattern) emitGetter(putOnStack bool) {
3266 if putOnStack {

Callers 1

compileExpressionMethod · 0.95

Calls 2

initMethod · 0.65
Idx0Method · 0.65

Tested by

no test coverage detected