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

Method currentContext

src/main/java/org/dynjs/parser/js/Parser.java:140–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138 }
139
140 private ParserContext currentContext() {
141 if (this.context.isEmpty()) {
142 return null;
143 }
144 return this.context.get(this.context.size() - 1);
145 }
146
147 private boolean isValidReturn() {
148 return currentContext().isValidReturn();

Callers 15

pushContextMethod · 0.95
isValidReturnMethod · 0.95
isValidBreakMethod · 0.95
isValidContinueMethod · 0.95
isValidIdentifierMethod · 0.95
programMethod · 0.95
primaryExpressionMethod · 0.95
objectLiteralMethod · 0.95
isAssignableNameMethod · 0.95
assignmentExpressionMethod · 0.95
checkAssignmentLHSMethod · 0.95
unaryExpressionMethod · 0.95

Calls 3

getMethod · 0.65
isEmptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected