Showing 141 of 225 total issues
Function parseObjectProperty
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseObjectProperty() {
var token, key, id, value, param;
token = lookahead;
Function advanceSlash
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function advanceSlash() {
var prevToken,
checkToken;
// Using the following algorithm:
// https://github.com/mozilla/sweet.js/wiki/design
Function parseFunctionExpression
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseFunctionExpression() {
var token, id = null, firstRestricted, message, tmp, body, previousStrict, previousYieldAllowed, generator, expression;
expectKeyword('function');
Function 5
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./abstract_compiler":2,"./source_modifier":10,"./utils":11}],5:[function(require,module,exports){
"use strict";
var $__superDescriptor = function(proto, name) {
if (!proto) throw new TypeError('super is null');
return Object.getPropertyDescriptor(proto, name);
Function parseAssignmentExpression
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseAssignmentExpression() {
var expr, token, params, oldParenthesizedCount;
if (matchKeyword('yield')) {
return parseYieldExpression();
Function parseParam
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseParam(options) {
var token, rest, param, def;
token = lookahead;
if (token.value === '...') {
Function advance
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function advance() {
var ch;
skipComment();
Function parseExpression
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseExpression() {
var expr, expressions, sequence, coverFormalsList, spreadFound, oldParenthesizedCount;
oldParenthesizedCount = state.parenthesizedCount;
Function SourceModifier
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var SourceModifier = function() {
'use strict';
var $SourceModifier = ($__createClassNoExtends)({
constructor: function(source) {
this.source = source;
Function parseObjectInitialiser
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseObjectInitialiser() {
var properties = [], property, name, key, kind, map = {}, toString = String;
expect('{');
Function Compiler
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Compiler = function() {
'use strict';
var $Compiler = ($__createClassNoExtends)({
constructor: function(string, moduleName, options) {
if (moduleName == null) {
Function polyfillString
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function polyfillString(String) {
// Harmony String Extras
// http://wiki.ecmascript.org/doku.php?id=harmony:string_extras
Object.defineProperties(String.prototype, {
startsWith: method(function(s) {
Function getEscapedIdentifier
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getEscapedIdentifier() {
var ch, id;
ch = source.charCodeAt(index++);
id = String.fromCharCode(ch);
Function visit
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function visit(node) {
var start, end;
if (isBinary(node.left)) {
visit(node.left);
Function parseBinaryExpression
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseBinaryExpression() {
var expr, token, prec, previousAllowIn, stack, right, operator, left, i;
previousAllowIn = state.allowIn;
state.allowIn = true;
Function walk
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
walk: function(node) {
if (node.type) {
var processor = this['process' + node.type];
if (processor) {
var result = processor.call(this, node);
Function reinterpretAsAssignmentBindingPattern
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function reinterpretAsAssignmentBindingPattern(expr) {
var i, len, property, element;
if (expr.type === Syntax.ObjectExpression) {
expr.type = Syntax.ObjectPattern;
Function collectRegex
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function collectRegex() {
var pos, loc, regex, token;
skipComment();
Function parseProgramElements
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseProgramElements() {
var sourceElement, sourceElements = [], token, directive, firstRestricted;
while (index < length) {
token = lookahead;
Function parseUnaryExpression
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseUnaryExpression() {
var token, expr;
if (lookahead.type !== Token.Punctuator && lookahead.type !== Token.Keyword) {
return parsePostfixExpression();