MCPcopy Create free account
hub / github.com/mozilla/rhino / getDirective

Method getDirective

rhino/src/main/java/org/mozilla/javascript/Parser.java:830–838  ·  view source on GitHub ↗
(AstNode n)

Source from the content-addressed store, hash-verified

828 }
829
830 private static String getDirective(AstNode n) {
831 if (n instanceof ExpressionStatement) {
832 AstNode e = ((ExpressionStatement) n).getExpression();
833 if (e instanceof StringLiteral) {
834 return ((StringLiteral) e).getValue();
835 }
836 }
837 return null;
838 }
839
840 private void parseFunctionParams(FunctionNode fnNode) throws IOException {
841 ++nestingOfFunctionParams;

Callers 2

parseMethod · 0.95
parseFunctionBodyMethod · 0.95

Calls 2

getValueMethod · 0.65
getExpressionMethod · 0.45

Tested by

no test coverage detected