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
function scanRegExpFlags() { var ch, str, flags, restore; str = ''; flags = ''; while (index < length) { ch = source[index]; if (!isIdentifierPart(ch.charCodeAt(0))) { break; } ++index; if (ch === '\\' && index...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
scanRegExpFlags
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function scanRegExp() { var start, body, flags, value; lookahead = null; skipComment(); start = index; body = scanRegExpBody(); flags = scanRegExpFlags(); value = testRegExp(body.value, flags.value); if (extra.tokenize) { return { ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
scanRegExp
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function isIdentifierName(token) { return token.type === Token.Identifier || token.type === Token.Keyword || token.type === Token.BooleanLiteral || token.type === Token.NullLiteral; }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
isIdentifierName
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function advanceSlash() { var prevToken, checkToken; // Using the following algorithm: // https://github.com/mozilla/sweet.js/wiki/design prevToken = extra.tokens[extra.tokens.length - 1]; if (!prevToken) { // Nothing before that: it cannot be a division. ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
advanceSlash
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function advance() { var ch; if (!state.inJSXChild) { skipComment(); } if (index >= length) { return { type: Token.EOF, lineNumber: lineNumber, lineStart: lineStart, range: [index, index] ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
advance
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function lex() { var token; token = lookahead; index = token.range[1]; lineNumber = token.lineNumber; lineStart = token.lineStart; lookahead = advance(); index = token.range[1]; lineNumber = token.lineNumber; lineStart = token.lineStart; ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
lex
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function peek() { var pos, line, start; pos = index; line = lineNumber; start = lineStart; lookahead = advance(); index = pos; lineNumber = line; lineStart = start; }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
peek
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function lookahead2() { var adv, pos, line, start, result; // If we are collecting the tokens, don't grab the next one yet. /* istanbul ignore next */ adv = (typeof extra.advance === 'function') ? extra.advance : advance; pos = index; line = lineNumber; start = ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
lookahead2
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function rewind(token) { index = token.range[0]; lineNumber = token.lineNumber; lineStart = token.lineStart; lookahead = token; }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
rewind
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function markerCreate() { if (!extra.loc && !extra.range) { return undefined; } skipComment(); return {offset: index, line: lineNumber, col: index - lineStart}; }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
markerCreate
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function markerCreatePreserveWhitespace() { if (!extra.loc && !extra.range) { return undefined; } return {offset: index, line: lineNumber, col: index - lineStart}; }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
markerCreatePreserveWhitespace
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function processComment(node) { var lastChild, trailingComments, bottomRight = extra.bottomRightStack, last = bottomRight[bottomRight.length - 1]; if (node.type === Syntax.Program) { /* istanbul ignore else */ if (node.body.length > 0) { ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
processComment
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function markerApply(marker, node) { if (extra.range) { node.range = [marker.offset, index]; } if (extra.loc) { node.loc = { start: { line: marker.line, column: marker.col }, end: { ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
markerApply
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function peekLineTerminator() { var pos, line, start, found; pos = index; line = lineNumber; start = lineStart; skipComment(); found = lineNumber !== line; index = pos; lineNumber = line; lineStart = start; return found; }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
peekLineTerminator
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function throwError(token, messageFormat) { var error, args = Array.prototype.slice.call(arguments, 2), msg = messageFormat.replace( /%(\d)/g, function (whole, idx) { assert(idx < args.length, 'Message reference must be in range'); ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
throwError
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function throwErrorTolerant() { try { throwError.apply(null, arguments); } catch (e) { if (extra.errors) { extra.errors.push(e); } else { throw e; } } }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
throwErrorTolerant
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function throwUnexpected(token) { if (token.type === Token.EOF) { throwError(token, Messages.UnexpectedEOS); } if (token.type === Token.NumericLiteral) { throwError(token, Messages.UnexpectedNumber); } if (token.type === Token.StringLiteral || token.type...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
throwUnexpected
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function expect(value) { var token = lex(); if (token.type !== Token.Punctuator || token.value !== value) { throwUnexpected(token); } }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
expect
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function expectKeyword(keyword, contextual) { var token = lex(); if (token.type !== (contextual ? Token.Identifier : Token.Keyword) || token.value !== keyword) { throwUnexpected(token); } }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
expectKeyword
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function expectContextualKeyword(keyword) { return expectKeyword(keyword, true); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
expectContextualKeyword
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function match(value) { return lookahead.type === Token.Punctuator && lookahead.value === value; }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
match
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function matchKeyword(keyword, contextual) { var expectedType = contextual ? Token.Identifier : Token.Keyword; return lookahead.type === expectedType && lookahead.value === keyword; }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
matchKeyword
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function matchContextualKeyword(keyword) { return matchKeyword(keyword, true); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
matchContextualKeyword
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function matchAssign() { var op; if (lookahead.type !== Token.Punctuator) { return false; } op = lookahead.value; return op === '=' || op === '*=' || op === '/=' || op === '%=' || op === '+=' || op === '-=' ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
matchAssign
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function matchYield() { return state.yieldAllowed && matchKeyword('yield', !strict); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
matchYield
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function matchAsync() { var backtrackToken = lookahead, matches = false; if (matchContextualKeyword('async')) { lex(); // Make sure peekLineTerminator() starts after 'async'. matches = !peekLineTerminator(); rewind(backtrackToken); // Revert the lex(). } ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
matchAsync
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function matchAwait() { return state.awaitAllowed && matchContextualKeyword('await'); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
matchAwait
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function consumeSemicolon() { var line, oldIndex = index, oldLineNumber = lineNumber, oldLineStart = lineStart, oldLookahead = lookahead; // Catch the very common case first: immediately a semicolon (char #59). if (source.charCodeAt(index) === 59) { lex(); re...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
consumeSemicolon
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function isLeftHandSide(expr) { return expr.type === Syntax.Identifier || expr.type === Syntax.MemberExpression; }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
isLeftHandSide
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function isAssignableLeftHandSide(expr) { return isLeftHandSide(expr) || expr.type === Syntax.ObjectPattern || expr.type === Syntax.ArrayPattern; }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
isAssignableLeftHandSide
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseArrayInitialiser() { var elements = [], blocks = [], filter = null, tmp, possiblecomprehension = true, marker = markerCreate(); expect('['); while (!match(']')) { if (lookahead.value === 'for' && lookahead.type === Token.Keyword) { ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseArrayInitialiser
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parsePropertyFunction(options) { var previousStrict, previousYieldAllowed, previousAwaitAllowed, params, defaults, body, marker = markerCreate(); previousStrict = strict; previousYieldAllowed = state.yieldAllowed; state.yieldAllowed = options.generator; prev...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parsePropertyFunction
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parsePropertyMethodFunction(options) { var previousStrict, tmp, method; previousStrict = strict; strict = true; tmp = parseParams(); if (tmp.stricted) { throwErrorTolerant(tmp.stricted, tmp.message); } method = parsePropertyFunction({ ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parsePropertyMethodFunction
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseObjectPropertyKey() { var marker = markerCreate(), token = lex(), propertyKey, result; // Note: This function is called only from parseObjectProperty(), where // EOF and Punctuator tokens are already filtered out. if (token.type === Tok...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseObjectPropertyKey
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseObjectProperty() { var token, key, id, param, computed, marker = markerCreate(), returnType, typeParameters; token = lookahead; computed = (token.value === '[' && token.type === Token.Punctuator); if (token.type === Token.Identifier || computed || matchAsync()...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseObjectProperty
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseObjectSpreadProperty() { var marker = markerCreate(); expect('...'); return markerApply(marker, delegate.createSpreadProperty(parseAssignmentExpression())); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseObjectSpreadProperty
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function getFieldName(key) { var toString = String; if (key.type === Syntax.Identifier) { return key.name; } return toString(key.value); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
getFieldName
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseObjectInitialiser() { var properties = [], property, name, kind, storedKind, map = new StringMap(), marker = markerCreate(), toString = String; expect('{'); while (!match('}')) { if (match('...')) { property = parseObjectSpreadProperty(); ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseObjectInitialiser
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseTemplateElement(option) { var marker = markerCreate(), token = scanTemplateElement(option); if (strict && token.octal) { throwError(token, Messages.StrictOctalLiteral); } return markerApply(marker, delegate.createTemplateElement({ raw: token.value.ra...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseTemplateElement
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseTemplateLiteral() { var quasi, quasis, expressions, marker = markerCreate(); quasi = parseTemplateElement({ head: true }); quasis = [ quasi ]; expressions = []; while (!quasi.tail) { expressions.push(parseExpression()); quasi = parseTemplat...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseTemplateLiteral
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseGroupExpression() { var expr, marker, typeAnnotation; expect('('); ++state.parenthesizedCount; marker = markerCreate(); expr = parseExpression(); if (match(':')) { typeAnnotation = parseTypeAnnotation(); expr = markerApply(marker...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseGroupExpression
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function matchAsyncFuncExprOrDecl() { var token; if (matchAsync()) { token = lookahead2(); if (token.type === Token.Keyword && token.value === 'function') { return true; } } return false; }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
matchAsyncFuncExprOrDecl
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parsePrimaryExpression() { var marker, type, token, expr; type = lookahead.type; if (type === Token.Identifier) { marker = markerCreate(); return markerApply(marker, delegate.createIdentifier(lex().value)); } if (type === Token.StringLiteral ||...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parsePrimaryExpression
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseArguments() { var args = [], arg; expect('('); if (!match(')')) { while (index < length) { arg = parseSpreadOrAssignmentExpression(); args.push(arg); if (match(')')) { break; } else i...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseArguments
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseSpreadOrAssignmentExpression() { if (match('...')) { var marker = markerCreate(); lex(); return markerApply(marker, delegate.createSpreadElement(parseAssignmentExpression())); } return parseAssignmentExpression(); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseSpreadOrAssignmentExpression
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseNonComputedProperty() { var marker = markerCreate(), token = lex(); if (!isIdentifierName(token)) { throwUnexpected(token); } return markerApply(marker, delegate.createIdentifier(token.value)); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseNonComputedProperty
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseNonComputedMember() { expect('.'); return parseNonComputedProperty(); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseNonComputedMember
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseComputedMember() { var expr; expect('['); expr = parseExpression(); expect(']'); return expr; }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseComputedMember
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseNewExpression() { var callee, args, marker = markerCreate(); expectKeyword('new'); callee = parseLeftHandSideExpression(); args = match('(') ? parseArguments() : []; return markerApply(marker, delegate.createNewExpression(callee, args)); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseNewExpression
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseLeftHandSideExpressionAllowCall() { var expr, args, marker = markerCreate(); expr = matchKeyword('new') ? parseNewExpression() : parsePrimaryExpression(); while (match('.') || match('[') || match('(') || lookahead.type === Token.Template) { if (match('(')) { ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseLeftHandSideExpressionAllowCall
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseLeftHandSideExpression() { var expr, marker = markerCreate(); expr = matchKeyword('new') ? parseNewExpression() : parsePrimaryExpression(); while (match('.') || match('[') || lookahead.type === Token.Template) { if (match('[')) { expr = markerApply(mar...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseLeftHandSideExpression
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parsePostfixExpression() { var marker = markerCreate(), expr = parseLeftHandSideExpressionAllowCall(), token; if (lookahead.type !== Token.Punctuator) { return expr; } if ((match('++') || match('--')) && !peekLineTerminator()) { ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parsePostfixExpression
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseUnaryExpression() { var marker, token, expr; if (lookahead.type !== Token.Punctuator && lookahead.type !== Token.Keyword) { return parsePostfixExpression(); } if (match('++') || match('--')) { marker = markerCreate(); token = lex(); ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseUnaryExpression
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function binaryPrecedence(token, allowIn) { var prec = 0; if (token.type !== Token.Punctuator && token.type !== Token.Keyword) { return 0; } switch (token.value) { case '||': prec = 1; break; case '&&': prec = 2; ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
binaryPrecedence
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseBinaryExpression() { var expr, token, prec, previousAllowIn, stack, right, operator, left, i, marker, markers; previousAllowIn = state.allowIn; state.allowIn = true; marker = markerCreate(); left = parseUnaryExpression(); token = lookahead; ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseBinaryExpression
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseConditionalExpression() { var expr, previousAllowIn, consequent, alternate, marker = markerCreate(); expr = parseBinaryExpression(); if (match('?')) { lex(); previousAllowIn = state.allowIn; state.allowIn = true; consequent = parseAs...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseConditionalExpression
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function reinterpretAsAssignmentBindingPattern(expr) { var i, len, property, element; if (expr.type === Syntax.ObjectExpression) { expr.type = Syntax.ObjectPattern; for (i = 0, len = expr.properties.length; i < len; i += 1) { property = expr.properties[i]; ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
reinterpretAsAssignmentBindingPattern
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function reinterpretAsDestructuredParameter(options, expr) { var i, len, property, element; if (expr.type === Syntax.ObjectExpression) { expr.type = Syntax.ObjectPattern; for (i = 0, len = expr.properties.length; i < len; i += 1) { property = expr.properties[i]; ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
reinterpretAsDestructuredParameter
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function reinterpretAsCoverFormalsList(expressions) { var i, len, param, params, defaults, defaultCount, options, rest; params = []; defaults = []; defaultCount = 0; rest = null; options = { paramSet: new StringMap() }; for (i = 0, len = expr...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
reinterpretAsCoverFormalsList
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseArrowFunctionExpression(options, marker) { var previousStrict, previousYieldAllowed, previousAwaitAllowed, body; expect('=>'); previousStrict = strict; previousYieldAllowed = state.yieldAllowed; state.yieldAllowed = false; previousAwaitAllowed = state.awai...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseArrowFunctionExpression
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseAssignmentExpression() { var marker, expr, token, params, oldParenthesizedCount, startsWithParen = false, backtrackToken = lookahead, possiblyAsync = false; if (matchYield()) { return parseYieldExpression(); } if (matchAwait()) { ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseAssignmentExpression
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseExpression() { var marker, expr, expressions, sequence, spreadFound; marker = markerCreate(); expr = parseAssignmentExpression(); expressions = [ expr ]; if (match(',')) { while (index < length) { if (!match(',')) { ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseExpression
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseStatementList() { var list = [], statement; while (index < length) { if (match('}')) { break; } statement = parseSourceElement(); if (typeof statement === 'undefined') { break; } ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseStatementList
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseBlock() { var block, marker = markerCreate(); expect('{'); block = parseStatementList(); expect('}'); return markerApply(marker, delegate.createBlockStatement(block)); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseBlock
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseTypeParameterDeclaration() { var marker = markerCreate(), paramTypes = []; expect('<'); while (!match('>')) { paramTypes.push(parseTypeAnnotatableIdentifier()); if (!match('>')) { expect(','); } } expect('>'); ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseTypeParameterDeclaration
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseTypeParameterInstantiation() { var marker = markerCreate(), oldInType = state.inType, paramTypes = []; state.inType = true; expect('<'); while (!match('>')) { paramTypes.push(parseType()); if (!match('>')) { expect(','); ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseTypeParameterInstantiation
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseObjectTypeIndexer(marker, isStatic) { var id, key, value; expect('['); id = parseObjectPropertyKey(); expect(':'); key = parseType(); expect(']'); expect(':'); value = parseType(); return markerApply(marker, delegate.createObjectTyp...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseObjectTypeIndexer
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseObjectTypeMethodish(marker) { var params = [], rest = null, returnType, typeParameters = null; if (match('<')) { typeParameters = parseTypeParameterDeclaration(); } expect('('); while (lookahead.type === Token.Identifier) { params.push(parse...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseObjectTypeMethodish
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseObjectTypeMethod(marker, isStatic, key) { var optional = false, value; value = parseObjectTypeMethodish(marker); return markerApply(marker, delegate.createObjectTypeProperty( key, value, optional, isStatic )); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseObjectTypeMethod
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseObjectTypeCallProperty(marker, isStatic) { var valueMarker = markerCreate(); return markerApply(marker, delegate.createObjectTypeCallProperty( parseObjectTypeMethodish(valueMarker), isStatic )); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseObjectTypeCallProperty
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseObjectType(allowStatic) { var callProperties = [], indexers = [], marker, optional = false, properties = [], propertyKey, propertyTypeAnnotation, token, isStatic, matchStatic; expect('{'); while (!match('}')) { marker = markerCreate(); ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseObjectType
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseGenericType() { var marker = markerCreate(), typeParameters = null, typeIdentifier; typeIdentifier = parseVariableIdentifier(); while (match('.')) { expect('.'); typeIdentifier = markerApply(marker, delegate.createQualifiedTypeIdentifier( ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseGenericType
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseVoidType() { var marker = markerCreate(); expectKeyword('void'); return markerApply(marker, delegate.createVoidTypeAnnotation()); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseVoidType
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseTypeofType() { var argument, marker = markerCreate(); expectKeyword('typeof'); argument = parsePrimaryType(); return markerApply(marker, delegate.createTypeofTypeAnnotation( argument )); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseTypeofType
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseTupleType() { var marker = markerCreate(), types = []; expect('['); // We allow trailing commas while (index < length && !match(']')) { types.push(parseType()); if (match(']')) { break; } expect(','); }...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseTupleType
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseFunctionTypeParam() { var marker = markerCreate(), name, optional = false, typeAnnotation; name = parseVariableIdentifier(); if (match('?')) { lex(); optional = true; } expect(':'); typeAnnotation = parseType(); return markerA...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseFunctionTypeParam
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseFunctionTypeParams() { var ret = { params: [], rest: null }; while (lookahead.type === Token.Identifier) { ret.params.push(parseFunctionTypeParam()); if (!match(')')) { expect(','); } } if (match('...')) { lex...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseFunctionTypeParams
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parsePrimaryType() { var params = null, returnType = null, marker = markerCreate(), rest = null, tmp, typeParameters, token, type, isGroupedType = false; switch (lookahead.type) { case Token.Identifier: switch (lookahead.value) { case 'an...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parsePrimaryType
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parsePostfixType() { var marker = markerCreate(), t = parsePrimaryType(); if (match('[')) { expect('['); expect(']'); return markerApply(marker, delegate.createArrayTypeAnnotation(t)); } return t; }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parsePostfixType
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parsePrefixType() { var marker = markerCreate(); if (match('?')) { lex(); return markerApply(marker, delegate.createNullableTypeAnnotation( parsePrefixType() )); } return parsePostfixType(); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parsePrefixType
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseIntersectionType() { var marker = markerCreate(), type, types; type = parsePrefixType(); types = [type]; while (match('&')) { lex(); types.push(parsePrefixType()); } return types.length === 1 ? type : ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseIntersectionType
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseUnionType() { var marker = markerCreate(), type, types; type = parseIntersectionType(); types = [type]; while (match('|')) { lex(); types.push(parseIntersectionType()); } return types.length === 1 ? type : ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseUnionType
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseType() { var oldInType = state.inType, type; state.inType = true; type = parseUnionType(); state.inType = oldInType; return type; }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseType
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseTypeAnnotation() { var marker = markerCreate(), type; expect(':'); type = parseType(); return markerApply(marker, delegate.createTypeAnnotation(type)); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseTypeAnnotation
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseVariableIdentifier() { var marker = markerCreate(), token = lex(); if (token.type !== Token.Identifier) { throwUnexpected(token); } return markerApply(marker, delegate.createIdentifier(token.value)); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseVariableIdentifier
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseTypeAnnotatableIdentifier(requireTypeAnnotation, canBeOptionalParam) { var marker = markerCreate(), ident = parseVariableIdentifier(), isOptionalParam = false; if (canBeOptionalParam && match('?')) { expect('?'); isOptionalParam = true; ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseTypeAnnotatableIdentifier
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseVariableDeclaration(kind) { var id, marker = markerCreate(), init = null, typeAnnotationMarker = markerCreate(); if (match('{')) { id = parseObjectInitialiser(); reinterpretAsAssignmentBindingPattern(id); if (match(':'...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseVariableDeclaration
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseVariableDeclarationList(kind) { var list = []; do { list.push(parseVariableDeclaration(kind)); if (!match(',')) { break; } lex(); } while (index < length); return list; }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseVariableDeclarationList
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseVariableStatement() { var declarations, marker = markerCreate(); expectKeyword('var'); declarations = parseVariableDeclarationList(); consumeSemicolon(); return markerApply(marker, delegate.createVariableDeclaration(declarations, 'var')); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseVariableStatement
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseConstLetDeclaration(kind) { var declarations, marker = markerCreate(); expectKeyword(kind); declarations = parseVariableDeclarationList(kind); consumeSemicolon(); return markerApply(marker, delegate.createVariableDeclaration(declarations, kind)); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseConstLetDeclaration
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseModuleSpecifier() { var marker = markerCreate(), specifier; if (lookahead.type !== Token.StringLiteral) { throwError({}, Messages.InvalidModuleSpecifier); } specifier = delegate.createModuleSpecifier(lookahead); lex(); return markerA...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseModuleSpecifier
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseExportBatchSpecifier() { var marker = markerCreate(); expect('*'); return markerApply(marker, delegate.createExportBatchSpecifier()); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseExportBatchSpecifier
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseExportSpecifier() { var id, name = null, marker = markerCreate(), from; if (matchKeyword('default')) { lex(); id = markerApply(marker, delegate.createIdentifier('default')); // export {default} from "something"; } else { id = parseVar...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseExportSpecifier
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseExportDeclaration() { var declaration = null, possibleIdentifierToken, sourceElement, isExportFromIdentifier, src = null, specifiers = [], marker = markerCreate(); expectKeyword('export'); if (matchKeyword('default')) { ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseExportDeclaration
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseImportSpecifier() { // import {<foo as bar>} ...; var id, name = null, marker = markerCreate(); id = parseNonComputedProperty(); if (matchContextualKeyword('as')) { lex(); name = parseVariableIdentifier(); } return markerApply(marke...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseImportSpecifier
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseNamedImports() { var specifiers = []; // {foo, bar as bas} expect('{'); if (!match('}')) { do { specifiers.push(parseImportSpecifier()); } while (match(',') && lex()); } expect('}'); return specifiers; }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseNamedImports
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseImportDefaultSpecifier() { // import <foo> ...; var id, marker = markerCreate(); id = parseNonComputedProperty(); return markerApply(marker, delegate.createImportDefaultSpecifier(id)); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseImportDefaultSpecifier
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseImportNamespaceSpecifier() { // import <* as foo> ...; var id, marker = markerCreate(); expect('*'); if (!matchContextualKeyword('as')) { throwError({}, Messages.NoAsAfterImportNamespace); } lex(); id = parseNonComputedProperty(); ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseImportNamespaceSpecifier
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseImportDeclaration() { var specifiers, src, marker = markerCreate(), isType = false, token2; expectKeyword('import'); if (matchContextualKeyword('type')) { token2 = lookahead2(); if ((token2.type === Token.Identifier && token2.value !== 'from') || ...
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseImportDeclaration
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT
function parseEmptyStatement() { var marker = markerCreate(); expect(';'); return markerApply(marker, delegate.createEmptyStatement()); }
Whether or not the given `val` is an array. example: isArray([]); // > true isArray(arguments); // > false isArray(''); // > false @param {mixed} val @return {bool}
parseEmptyStatement
javascript
3Dparallax/insight
src/devtools2/lib/JSXTransformer.js
https://github.com/3Dparallax/insight/blob/master/src/devtools2/lib/JSXTransformer.js
MIT