code stringlengths 24 2.07M | docstring stringlengths 25 85.3k | func_name stringlengths 1 92 | language stringclasses 1
value | repo stringlengths 5 64 | path stringlengths 4 172 | url stringlengths 44 218 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
later = function() {
timeout = null;
if (!immediate) result = func.apply(context, args);
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | later | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
eq = function(a, b, aStack, bStack) {
// Identical objects are equal. `0 === -0`, but they aren't identical.
// See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.
if (a === b) return a !== 0 || 1 / a == 1 / b;
// A strict comparison is necessary because `null == undefi... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | eq | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
template = function(data) {
return render.call(this, data, _);
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | template | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
result = function(obj) {
return this._chain ? _(obj).chain() : obj;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | result | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function checkOption(name, t) {
name = name.trim();
if (/^[+-]W\d{3}$/g.test(name)) {
return true;
}
if (valOptions[name] === undefined && boolOptions[name] === undefined) {
if (t.type !== "jslint") {
error("E001", t, name);
return false;
}
}
return true;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | checkOption | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function isString(obj) {
return Object.prototype.toString.call(obj) === "[object String]";
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | isString | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function isIdentifier(tkn, value) {
if (!tkn)
return false;
if (!tkn.identifier || tkn.value !== value)
return false;
return true;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | isIdentifier | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function isReserved(token) {
if (!token.reserved) {
return false;
}
var meta = token.meta;
if (meta && meta.isFutureReservedWord && state.option.inES5()) {
// ES3 FutureReservedWord in an ES5 environment.
if (!meta.es5) {
return false;
}
// Some ES5 FutureReserved... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | isReserved | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function supplant(str, data) {
return str.replace(/\{([^{}]*)\}/g, function (a, b) {
var r = data[b];
return typeof r === "string" || typeof r === "number" ? r : a;
});
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | supplant | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function combine(dest, src) {
Object.keys(src).forEach(function (name) {
if (JSHINT.blacklist.hasOwnProperty(name)) return;
dest[name] = src[name];
});
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | combine | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function assume() {
if (state.option.es5) {
warning("I003");
}
if (state.option.couch) {
combine(predefined, vars.couch);
}
if (state.option.rhino) {
combine(predefined, vars.rhino);
}
if (state.option.shelljs) {
combine(predefined, vars.shelljs);
combine(pred... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | assume | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function quit(code, line, chr) {
var percentage = Math.floor((line / state.lines.length) * 100);
var message = messages.errors[code].desc;
throw {
name: "JSHintError",
line: line,
character: chr,
message: message + " (" + percentage + "% scanned).",
raw: message,
code: c... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | quit | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function isundef(scope, code, token, a) {
return JSHINT.undefs.push([scope, code, token, a]);
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | isundef | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function warning(code, t, a, b, c, d) {
var ch, l, w, msg;
if (/^W\d{3}$/.test(code)) {
if (state.ignored[code])
return;
msg = messages.warnings[code];
} else if (/E\d{3}/.test(code)) {
msg = messages.errors[code];
} else if (/I\d{3}/.test(code)) {
msg = messages.info[c... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | warning | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function warningAt(m, l, ch, a, b, c, d) {
return warning(m, {
line: l,
from: ch
}, a, b, c, d);
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | warningAt | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function error(m, t, a, b, c, d) {
warning(m, t, a, b, c, d);
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | error | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function errorAt(m, l, ch, a, b, c, d) {
return error(m, {
line: l,
from: ch
}, a, b, c, d);
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | errorAt | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function addInternalSrc(elem, src) {
var i;
i = {
id: "(internal)",
elem: elem,
value: src
};
JSHINT.internals.push(i);
return i;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | addInternalSrc | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function addlabel(name, opts) {
opts = opts || {};
var type = opts.type;
var token = opts.token;
var islet = opts.islet;
// Define label in the current function in the current scope.
if (type === "exception") {
if (_.has(funct["(context)"], name)) {
if (funct[name] !== true && !... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | addlabel | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function doOption() {
var nt = state.tokens.next;
var body = nt.body.split(",").map(function (s) { return s.trim(); });
var predef = {};
if (nt.type === "globals") {
body.forEach(function (g) {
g = g.split(":");
var key = (g[0] || "").trim();
var val = (g[1] || "").trim();... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | doOption | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function peek(p) {
var i = p || 0, j = 0, t;
while (j <= i) {
t = lookahead[j];
if (!t) {
t = lookahead[j] = lex.token();
}
j += 1;
}
return t;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | peek | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function advance(id, t) {
switch (state.tokens.curr.id) {
case "(number)":
if (state.tokens.next.id === ".") {
warning("W005", state.tokens.curr);
}
break;
case "-":
if (state.tokens.next.id === "-" || state.tokens.next.id === "--") {
warning("W006");
}
br... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | advance | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function isInfix(token) {
return token.infix || (!token.identifier && !!token.led);
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | isInfix | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function isEndOfExpr() {
var curr = state.tokens.curr;
var next = state.tokens.next;
if (next.id === ";" || next.id === "}" || next.id === ":") {
return true;
}
if (isInfix(next) === isInfix(curr) || (curr.id === "yield" && state.option.inMoz(true))) {
return curr.line !== next.line;
... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | isEndOfExpr | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function expression(rbp, initial) {
var left, isArray = false, isObject = false, isLetExpr = false;
// if current expression is a let expression
if (!initial && state.tokens.next.value === "let" && peek(0).value === "(") {
if (!state.option.inMoz(true)) {
warning("W118", state.tokens.next, "l... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | expression | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function adjacent(left, right) {
left = left || state.tokens.curr;
right = right || state.tokens.next;
if (state.option.white) {
if (left.character !== right.from && left.line === right.line) {
left.from += (left.character - left.from);
warning("W011", left, left.value);
}
}
... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | adjacent | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function nobreak(left, right) {
left = left || state.tokens.curr;
right = right || state.tokens.next;
if (state.option.white && (left.character !== right.from || left.line !== right.line)) {
warning("W012", right, right.value);
}
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | nobreak | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function nospace(left, right) {
left = left || state.tokens.curr;
right = right || state.tokens.next;
if (state.option.white && !left.comment) {
if (left.line === right.line) {
adjacent(left, right);
}
}
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | nospace | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function nonadjacent(left, right) {
if (state.option.white) {
left = left || state.tokens.curr;
right = right || state.tokens.next;
if (left.value === ";" && right.value === ";") {
return;
}
if (left.line === right.line && left.character === right.from) {
left.from +=... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | nonadjacent | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function nobreaknonadjacent(left, right) {
left = left || state.tokens.curr;
right = right || state.tokens.next;
if (!state.option.laxbreak && left.line !== right.line) {
warning("W014", right, right.value);
} else if (state.option.white) {
left = left || state.tokens.curr;
right = rig... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | nobreaknonadjacent | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function indentation(bias) {
if (!state.option.white && !state.option["(explicitIndent)"]) {
return;
}
if (state.tokens.next.id === "(end)") {
return;
}
var i = indent + (bias || 0);
if (state.tokens.next.from !== i) {
warning("W015", state.tokens.next, state.tokens.next.valu... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | indentation | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function nolinebreak(t) {
t = t || state.tokens.curr;
if (t.line !== state.tokens.next.line) {
warning("E022", t, t.value);
}
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | nolinebreak | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function nobreakcomma(left, right) {
if (left.line !== right.line) {
if (!state.option.laxcomma) {
if (comma.first) {
warning("I001");
comma.first = false;
}
warning("W014", left, right.value);
}
} else if (!left.comment && left.character !== right.from &&... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | nobreakcomma | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function comma(opts) {
opts = opts || {};
if (!opts.peek) {
nobreakcomma(state.tokens.curr, state.tokens.next);
advance(",");
} else {
nobreakcomma(state.tokens.prev, state.tokens.curr);
}
// TODO: This is a temporary solution to fight against false-positives in
// arrays and... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | comma | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function symbol(s, p) {
var x = state.syntax[s];
if (!x || typeof x !== "object") {
state.syntax[s] = x = {
id: s,
lbp: p,
value: s
};
}
return x;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | symbol | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function delim(s) {
return symbol(s, 0);
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | delim | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function stmt(s, f) {
var x = delim(s);
x.identifier = x.reserved = true;
x.fud = f;
return x;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | stmt | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function blockstmt(s, f) {
var x = stmt(s, f);
x.block = true;
return x;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | blockstmt | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function reserveName(x) {
var c = x.id.charAt(0);
if ((c >= "a" && c <= "z") || (c >= "A" && c <= "Z")) {
x.identifier = x.reserved = true;
}
return x;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | reserveName | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function prefix(s, f) {
var x = symbol(s, 150);
reserveName(x);
x.nud = (typeof f === "function") ? f : function () {
this.right = expression(150);
this.arity = "unary";
if (this.id === "++" || this.id === "--") {
if (state.option.plusplus) {
warning("W016", this, this.... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | prefix | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function type(s, f) {
var x = delim(s);
x.type = s;
x.nud = f;
return x;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | type | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function reserve(name, func) {
var x = type(name, func);
x.identifier = true;
x.reserved = true;
return x;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | reserve | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function FutureReservedWord(name, meta) {
var x = type(name, (meta && meta.nud) || function () {
return this;
});
meta = meta || {};
meta.isFutureReservedWord = true;
x.value = name;
x.identifier = true;
x.reserved = true;
x.meta = meta;
return x;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | FutureReservedWord | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function reservevar(s, v) {
return reserve(s, function () {
if (typeof v === "function") {
v(this);
}
return this;
});
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | reservevar | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function infix(s, f, p, w) {
var x = symbol(s, p);
reserveName(x);
x.infix = true;
x.led = function (left) {
if (!w) {
nobreaknonadjacent(state.tokens.prev, state.tokens.curr);
nonadjacent(state.tokens.curr, state.tokens.next);
}
if (s === "in" && left.id === "!") {
... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | infix | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function application(s) {
var x = symbol(s, 42);
x.led = function (left) {
if (!state.option.inESNext()) {
warning("W104", state.tokens.curr, "arrow function syntax (=>)");
}
nobreaknonadjacent(state.tokens.prev, state.tokens.curr);
nonadjacent(state.tokens.curr, state.tokens.n... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | application | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function relation(s, f) {
var x = symbol(s, 100);
x.led = function (left) {
nobreaknonadjacent(state.tokens.prev, state.tokens.curr);
nonadjacent(state.tokens.curr, state.tokens.next);
var right = expression(100);
if (isIdentifier(left, "NaN") || isIdentifier(right, "NaN")) {
w... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | relation | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function isPoorRelation(node) {
return node &&
((node.type === "(number)" && +node.value === 0) ||
(node.type === "(string)" && node.value === "") ||
(node.type === "null" && !state.option.eqnull) ||
node.type === "true" ||
node.type === "false" ||
node.type === "un... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | isPoorRelation | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function isTypoTypeof(left, right) {
if (state.option.notypeof)
return false;
if (!left || !right)
return false;
var values = [
"undefined", "object", "boolean", "number",
"string", "function", "xml", "object", "unknown"
];
if (right.type === "(identifier)" && right.value ... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | isTypoTypeof | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function findNativePrototype(left) {
var natives = [
"Array", "ArrayBuffer", "Boolean", "Collator", "DataView", "Date",
"DateTimeFormat", "Error", "EvalError", "Float32Array", "Float64Array",
"Function", "Infinity", "Intl", "Int16Array", "Int32Array", "Int8Array",
"Iterator", "Number", "Numb... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | findNativePrototype | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function walkPrototype(obj) {
if (typeof obj !== "object") return;
return obj.right === "prototype" ? obj : walkPrototype(obj.left);
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | walkPrototype | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function walkNative(obj) {
while (!obj.identifier && typeof obj.left === "object")
obj = obj.left;
if (obj.identifier && natives.indexOf(obj.value) >= 0)
return obj.value;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | walkNative | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function assignop(s, f, p) {
var x = infix(s, typeof f === "function" ? f : function (left, that) {
that.left = left;
if (left) {
if (state.option.freeze) {
var nativeObject = findNativePrototype(left);
if (nativeObject)
warning("W121", left, nativeObject);
... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | assignop | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function bitwise(s, f, p) {
var x = symbol(s, p);
reserveName(x);
x.led = (typeof f === "function") ? f : function (left) {
if (state.option.bitwise) {
warning("W016", this, this.id);
}
this.left = left;
this.right = expression(p);
return this;
};
return x;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | bitwise | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function bitwiseassignop(s) {
return assignop(s, function (left, that) {
if (state.option.bitwise) {
warning("W016", that, that.id);
}
nonadjacent(state.tokens.prev, state.tokens.curr);
nonadjacent(state.tokens.curr, state.tokens.next);
if (left) {
if (left.id === "." |... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | bitwiseassignop | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function suffix(s) {
var x = symbol(s, 150);
x.led = function (left) {
if (state.option.plusplus) {
warning("W016", this, this.id);
} else if ((!left.identifier || isReserved(left)) && left.id !== "." && left.id !== "[") {
warning("W017", this);
}
this.left = left;
... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | suffix | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function optionalidentifier(fnparam, prop) {
if (!state.tokens.next.identifier) {
return;
}
advance();
var curr = state.tokens.curr;
var val = state.tokens.curr.value;
if (!isReserved(curr)) {
return val;
}
if (prop) {
if (state.option.inES5()) {
return val... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | optionalidentifier | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function identifier(fnparam, prop) {
var i = optionalidentifier(fnparam, prop);
if (i) {
return i;
}
if (state.tokens.curr.id === "function" && state.tokens.next.id === "(") {
warning("W025");
} else {
error("E030", state.tokens.next, state.tokens.next.value);
}
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | identifier | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function reachable(s) {
var i = 0, t;
if (state.tokens.next.id !== ";" || noreach) {
return;
}
for (;;) {
do {
t = peek(i);
i += 1;
} while (t.id != "(end)" && t.id === "(comment)");
if (t.reach) {
return;
}
if (t.id !== "(endline)") {
... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | reachable | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function statement(noindent) {
var values;
var i = indent, r, s = scope, t = state.tokens.next;
if (t.id === ";") {
advance(";");
return;
}
// Is this a labelled statement?
var res = isReserved(t);
// We're being more tolerant here: if someone uses
// a FutureReservedWord ... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | statement | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function statements(startLine) {
var a = [], p;
while (!state.tokens.next.reach && state.tokens.next.id !== "(end)") {
if (state.tokens.next.id === ";") {
p = peek();
if (!p || (p.id !== "(" && p.id !== "[")) {
warning("W032");
}
advance(";");
} else {
... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | statements | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function directives() {
var i, p, pn;
for (;;) {
if (state.tokens.next.id === "(string)") {
p = peek(0);
if (p.id === "(endline)") {
i = 1;
do {
pn = peek(i);
i = i + 1;
} while (pn.id === "(endline)");
if (pn.id !== ";") {
... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | directives | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function block(ordinary, stmt, isfunc, isfatarrow, iscase) {
var a,
b = inblock,
old_indent = indent,
m,
s = scope,
t,
line,
d;
inblock = ordinary;
if (!ordinary || !state.option.funcscope)
scope = Object.create(scope);
nonadjacent(state.tokens.curr, st... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | block | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function countMember(m) {
if (membersOnly && typeof membersOnly[m] !== "boolean") {
warning("W036", state.tokens.curr, m);
}
if (typeof member[m] === "number") {
member[m] += 1;
} else {
member[m] = 1;
}
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | countMember | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function note_implied(tkn) {
var name = tkn.value;
var desc = Object.getOwnPropertyDescriptor(implied, name);
if (!desc)
implied[name] = [tkn.line];
else
desc.value.push(tkn.line);
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | note_implied | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function comprehensiveArrayExpression() {
var res = {};
res.exps = true;
funct["(comparray)"].stack();
// Handle reversed for expressions, used in spidermonkey
var reversed = false;
if (state.tokens.next.value !== "for") {
reversed = true;
if (!state.option.inMoz(true)) {
wa... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | comprehensiveArrayExpression | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function property_name() {
var id = optionalidentifier(false, true);
if (!id) {
if (state.tokens.next.id === "(string)") {
id = state.tokens.next.value;
advance();
} else if (state.tokens.next.id === "(number)") {
id = state.tokens.next.value.toString();
advance();
... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | property_name | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function functionparams(parsed) {
var curr, next;
var params = [];
var ident;
var tokens = [];
var t;
var pastDefault = false;
if (parsed) {
if (Array.isArray(parsed)) {
for (var i in parsed) {
curr = parsed[i];
if (curr.value === "...") {
if (!... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | functionparams | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function setprop(funct, name, values) {
if (!funct["(properties)"][name]) {
funct["(properties)"][name] = { unused: false };
}
_.extend(funct["(properties)"][name], values);
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | setprop | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function getprop(funct, name, prop) {
if (!funct["(properties)"][name])
return null;
return funct["(properties)"][name][prop] || null;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | getprop | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function functor(name, token, scope, overwrites) {
var funct = {
"(name)" : name,
"(breakage)" : 0,
"(loopage)" : 0,
"(scope)" : scope,
"(tokens)" : {},
"(properties)": {},
"(catch)" : false,
"(global)" : false,
"(line)" : null,
... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | functor | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function doFunction(name, statement, generator, fatarrowparams) {
var f;
var oldOption = state.option;
var oldIgnored = state.ignored;
var oldScope = scope;
state.option = Object.create(state.option);
state.ignored = Object.create(state.ignored);
scope = Object.create(scope);
funct = ... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | doFunction | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function createMetrics(functionStartToken) {
return {
statementCount: 0,
nestedBlockDepth: -1,
ComplexityCount: 1,
verifyMaxStatementsPerFunction: function () {
if (state.option.maxstatements &&
this.statementCount > state.option.maxstatements) {
warning("W071", ... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | createMetrics | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function increaseComplexityCount() {
funct["(metrics)"].ComplexityCount += 1;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | increaseComplexityCount | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function checkCondAssignment(expr) {
var id, paren;
if (expr) {
id = expr.id;
paren = expr.paren;
if (id === "," && (expr = expr.exprs[expr.exprs.length - 1])) {
id = expr.id;
paren = paren || expr.paren;
}
}
switch (id) {
case "=":
case "+=":
case "-=... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | checkCondAssignment | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function saveProperty(name, tkn) {
if (props[name] && _.has(props, name))
warning("W075", state.tokens.next, i);
else
props[name] = {};
props[name].basic = true;
props[name].basictkn = tkn;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | saveProperty | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function saveSetter(name, tkn) {
if (props[name] && _.has(props, name)) {
if (props[name].basic || props[name].setter)
warning("W075", state.tokens.next, i);
} else {
props[name] = {};
}
props[name].setter = true;
props[name].setterToken = tkn;
... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | saveSetter | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function saveGetter(name) {
if (props[name] && _.has(props, name)) {
if (props[name].basic || props[name].getter)
warning("W075", state.tokens.next, i);
} else {
props[name] = {};
}
props[name].getter = true;
props[name].getterToken = state.tokens... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | saveGetter | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function destructuringExpression() {
var id, ids;
var identifiers = [];
if (!state.option.inESNext()) {
warning("W104", state.tokens.curr, "destructuring expression");
}
var nextInnerDE = function () {
var ident;
if (_.contains(["[", "{"], state.tokens.next.value)) {
ids = ... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | destructuringExpression | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
nextInnerDE = function () {
var ident;
if (_.contains(["[", "{"], state.tokens.next.value)) {
ids = destructuringExpression();
for (var id in ids) {
id = ids[id];
identifiers.push({ id: id.id, token: id.token });
}
} else if (state.tokens.next.value === ",")... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | nextInnerDE | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function destructuringExpressionMatch(tokens, value) {
var first = value.first;
if (!first)
return;
_.zip(tokens, Array.isArray(first) ? first : [ first ]).forEach(function (val) {
var token = val[0];
var value = val[1];
if (token && value)
token.first = value;
else ... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | destructuringExpressionMatch | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function classdef(stmt) {
/*jshint validthis:true */
if (!state.option.inESNext()) {
warning("W104", state.tokens.curr, "class");
}
if (stmt) {
// BindingIdentifier
this.name = identifier();
addlabel(this.name, { type: "unused", token: state.tokens.curr });
} else if (state.t... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | classdef | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function classtail(c) {
var strictness = state.directive["use strict"];
// ClassHeritage(opt)
if (state.tokens.next.value === "extends") {
advance("extends");
c.heritage = expression(10);
}
// A ClassBody is always strict code.
state.directive["use strict"] = true;
advance("{")... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | classtail | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function doCatch() {
var oldScope = scope;
var e;
advance("catch");
nonadjacent(state.tokens.curr, state.tokens.next);
advance("(");
scope = Object.create(oldScope);
e = state.tokens.next.value;
if (state.tokens.next.type !== "(identifier)") {
e = null;
... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | doCatch | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
lookupBlockType = function () {
var pn, pn1;
var i = -1;
var bracketStack = 0;
var ret = {};
if (_.contains(["[", "{"], state.tokens.curr.value))
bracketStack += 1;
do {
pn = (i === -1) ? state.tokens.next : peek(i);
pn1 = peek(i + 1);
i = i + 1;
if (_.contains(["["... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | lookupBlockType | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function destructuringAssignOrJsonValue() {
// lookup for the assignment (esnext only)
// if it has semicolons, it is a block, so go parse it as a block
// or it's not a block, but there are assignments, check for undeclared variables
var block = lookupBlockType();
if (block.notJson) {
if (!s... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | destructuringAssignOrJsonValue | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
arrayComprehension = function () {
var CompArray = function () {
this.mode = "use";
this.variables = [];
};
var _carrays = [];
var _current;
function declare(v) {
var l = _current.variables.filter(function (elt) {
// if it has, change its undef state
if (elt.value =... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | arrayComprehension | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
CompArray = function () {
this.mode = "use";
this.variables = [];
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | CompArray | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function declare(v) {
var l = _current.variables.filter(function (elt) {
// if it has, change its undef state
if (elt.value === v) {
elt.undef = false;
return v;
}
}).length;
return l !== 0;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | declare | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function use(v) {
var l = _current.variables.filter(function (elt) {
// and if it has been defined
if (elt.value === v && !elt.undef) {
if (elt.unused === true) {
elt.unused = false;
}
return v;
}
}).length;
// otherwise we warn about i... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | use | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function jsonValue() {
function jsonObject() {
var o = {}, t = state.tokens.next;
advance("{");
if (state.tokens.next.id !== "}") {
for (;;) {
if (state.tokens.next.id === "(end)") {
error("E026", state.tokens.next, t.line);
} else if (state.tokens.next.id ... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | jsonValue | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function jsonObject() {
var o = {}, t = state.tokens.next;
advance("{");
if (state.tokens.next.id !== "}") {
for (;;) {
if (state.tokens.next.id === "(end)") {
error("E026", state.tokens.next, t.line);
} else if (state.tokens.next.id === "}") {
warni... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | jsonObject | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function jsonArray() {
var t = state.tokens.next;
advance("[");
if (state.tokens.next.id !== "]") {
for (;;) {
if (state.tokens.next.id === "(end)") {
error("E027", state.tokens.next, t.line);
} else if (state.tokens.next.id === "]") {
warning("W094"... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | jsonArray | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
blockScope = function () {
var _current = {};
var _variables = [_current];
function _checkBlockLabels() {
for (var t in _current) {
if (_current[t]["(type)"] === "unused") {
if (state.option.unused) {
var tkn = _current[t]["(token)"];
var line = tkn.line;
... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | blockScope | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function _checkBlockLabels() {
for (var t in _current) {
if (_current[t]["(type)"] === "unused") {
if (state.option.unused) {
var tkn = _current[t]["(token)"];
var line = tkn.line;
var chr = tkn.character;
warningAt("W098", line, chr, t);
... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | _checkBlockLabels | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
itself = function (s, o, g) {
var i, k, x;
var optionKeys;
var newOptionObj = {};
var newIgnoredObj = {};
o = _.clone(o);
state.reset();
if (o && o.scope) {
JSHINT.scope = o.scope;
} else {
JSHINT.errors = [];
JSHINT.undefs = [];
JSHINT.internals = [];
JSH... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | itself | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function each(obj, cb) {
if (!obj)
return;
if (!Array.isArray(obj) && typeof obj === "object")
obj = Object.keys(obj);
obj.forEach(cb);
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | each | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
get isJSON() {
return state.jsonMode;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | isJSON | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
markDefined = function (name, context) {
do {
if (typeof context[name] === "string") {
// JSHINT marks unused variables as 'unused' and
// unused function declaration as 'unction'. This
// code changes such instances back 'var' and
// 'closure' so that t... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | markDefined | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
clearImplied = function (name, line) {
if (!implied[name])
return;
var newImplied = [];
for (var i = 0; i < implied[name].length; i += 1) {
if (implied[name][i] !== line)
newImplied.push(implied[name][i]);
}
if (newImplied.length === 0)
... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | clearImplied | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.