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

Method pushContext

src/main/java/org/dynjs/parser/js/Parser.java:127–134  ·  view source on GitHub ↗
(ContextType type)

Source from the content-addressed store, hash-verified

125 }
126
127 private void pushContext(ContextType type) {
128 ParserContext parent = currentContext();
129 ParserContext ctx = new ParserContext(parent, type);
130 if (this.forceStrict || (this.context.size() > 0 && currentContext().isStrict())) {
131 ctx.setStrict(true);
132 }
133 this.context.add(ctx);
134 }
135
136 private void popContext() {
137 this.context.remove(this.context.size() - 1);

Callers 10

programMethod · 0.95
propertySetMethod · 0.95
propertyGetMethod · 0.95
functionExpressionMethod · 0.95
functionDeclarationMethod · 0.95
functionDescriptorMethod · 0.95
blockMethod · 0.95
switchStatementMethod · 0.95
iterationStatementMethod · 0.95
doWhileStatementMethod · 0.95

Calls 5

currentContextMethod · 0.95
setStrictMethod · 0.95
isStrictMethod · 0.65
sizeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected