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

Function break_cont

lib/parse-js.js:909–923  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

907 };
908
909 function break_cont(type) {
910 var name;
911 if (!can_insert_semicolon()) {
912 name = is("name") ? S.token.value : null;
913 }
914 if (name != null) {
915 next();
916 if (!member(name, S.labels))
917 croak("Label " + name + " without matching loop or statement");
918 }
919 else if (S.in_loop == 0)
920 croak(type + " not inside a loop or switch");
921 semicolon();
922 return as(type, name);
923 };
924
925 function for_() {
926 expect("(");

Callers 1

parseFunction · 0.85

Calls 7

can_insert_semicolonFunction · 0.85
isFunction · 0.85
nextFunction · 0.85
memberFunction · 0.85
croakFunction · 0.85
semicolonFunction · 0.85
asFunction · 0.85

Tested by

no test coverage detected