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

Method compilePatternInitExpr

compiler_expr.go:3456–3463  ·  view source on GitHub ↗
(emitSrc func(), def ast.Expression, idx file.Idx)

Source from the content-addressed store, hash-verified

3454}
3455
3456func (c *compiler) compilePatternInitExpr(emitSrc func(), def ast.Expression, idx file.Idx) compiledExpr {
3457 r := &compiledPatternInitExpr{
3458 emitSrc: emitSrc,
3459 def: c.compileExpression(def),
3460 }
3461 r.init(c, idx)
3462 return r
3463}
3464
3465type compiledEmitterExpr struct {
3466 baseCompiledExpr

Callers 3

emitObjectPatternMethod · 0.95
emitArrayPatternMethod · 0.95
compileMethod · 0.80

Calls 2

compileExpressionMethod · 0.95
initMethod · 0.65

Tested by

no test coverage detected