MCPcopy
hub / github.com/mishoo/UglifyJS-old / vardefs

Function vardefs

lib/parse-js.js:1056–1074  ·  view source on GitHub ↗
(no_in)

Source from the content-addressed store, hash-verified

1054 };
1055
1056 function vardefs(no_in) {
1057 var a = [];
1058 for (;;) {
1059 if (!is("name"))
1060 unexpected();
1061 var name = S.token.value;
1062 next();
1063 if (is("operator", "=")) {
1064 next();
1065 a.push([ name, expression(false, no_in) ]);
1066 } else {
1067 a.push([ name ]);
1068 }
1069 if (!is("punc", ","))
1070 break;
1071 next();
1072 }
1073 return a;
1074 };
1075
1076 function var_(no_in) {
1077 return as("var", vardefs(no_in));

Callers 2

var_Function · 0.85
const_Function · 0.85

Calls 3

isFunction · 0.85
unexpectedFunction · 0.85
nextFunction · 0.85

Tested by

no test coverage detected