MCPcopy Create free account
hub / github.com/node-inspector/node-inspector / maybe_assign

Function maybe_assign

front-end/UglifyJS/parse-js.js:1151–1161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1149 };
1150
1151 function maybe_assign() {
1152 var left = maybe_conditional(), val = S.token.value;
1153 if (is("operator") && HOP(ASSIGNMENT, val)) {
1154 if (is_assignable(left)) {
1155 next();
1156 return as("assign", ASSIGNMENT[val], left, maybe_assign());
1157 }
1158 croak("Invalid assignment");
1159 }
1160 return left;
1161 };
1162
1163 function expression(commas) {
1164 if (arguments.length == 0)

Callers 1

expressionFunction · 0.85

Calls 7

maybe_conditionalFunction · 0.85
isFunction · 0.85
HOPFunction · 0.85
is_assignableFunction · 0.85
nextFunction · 0.85
asFunction · 0.85
croakFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…