MCPcopy Create free account
hub / github.com/dynjs/dynjs / interpret

Method interpret

src/main/java/org/dynjs/parser/ast/WithStatement.java:53–58  ·  view source on GitHub ↗
(ExecutionContext context)

Source from the content-addressed store, hash-verified

51 }
52
53 @Override
54 public Completion interpret(ExecutionContext context) {
55 JSObject obj = Types.toObject(context, getValue(this.get, context, getExpr().interpret(context)));
56 BasicBlock block = compiledBlockStatement(context, "With", getBlock());
57 return(context.executeWith(obj, block));
58 }
59
60 public List<VariableDeclaration> getVariableDeclarations() {
61 return this.block.getVariableDeclarations();

Callers

nothing calls this directly

Calls 7

toObjectMethod · 0.95
getExprMethod · 0.95
getBlockMethod · 0.95
executeWithMethod · 0.80
interpretMethod · 0.65
getValueMethod · 0.45

Tested by

no test coverage detected