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

Method mulExpr

rhino/src/main/java/org/mozilla/javascript/Parser.java:2907–2922  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2905 }
2906
2907 private AstNode mulExpr() throws IOException {
2908 AstNode pn = expExpr();
2909 for (; ; ) {
2910 int tt = peekToken(), opPos = ts.tokenBeg;
2911 switch (tt) {
2912 case Token.MUL:
2913 case Token.DIV:
2914 case Token.MOD:
2915 consumeToken();
2916 pn = new InfixExpression(tt, pn, expExpr(), opPos);
2917 continue;
2918 }
2919 break;
2920 }
2921 return pn;
2922 }
2923
2924 private AstNode expExpr() throws IOException {
2925 AstNode pn = unaryExpr();

Callers 1

addExprMethod · 0.95

Calls 3

expExprMethod · 0.95
peekTokenMethod · 0.95
consumeTokenMethod · 0.95

Tested by

no test coverage detected