Reactive-Extensions/RxJS

View on GitHub
src/core/expressions/compiler.js

Summary

Maintainability
F
3 wks
Test Coverage

Showing 63 of 63 total issues

File compiler.js has 1050 lines of code (exceeds 250 allowed). Consider refactoring.
Open

var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
Severity: Major
Found in src/core/expressions/compiler.js - About 2 days to fix

    Function LambdaCompiler has 194 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var LambdaCompiler = (function (_super) {
    __extends(LambdaCompiler, _super);
    function LambdaCompiler() {
    _super.call(this);
    this._stack = new Array();
    Severity: Major
    Found in src/core/expressions/compiler.js - About 7 hrs to fix

      Function Expression has 107 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var Expression = (function () {
      function Expression(nodeType) {
      this.nodeType = nodeType;
      }
      Expression.prototype.accept = function (visitor) {
      Severity: Major
      Found in src/core/expressions/compiler.js - About 4 hrs to fix

        Function BonsaiVisitor has 100 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var BonsaiVisitor = (function (_super) {
        __extends(BonsaiVisitor, _super);
        function BonsaiVisitor() {
        _super.apply(this, arguments);
        }
        Severity: Major
        Found in src/core/expressions/compiler.js - About 4 hrs to fix

          Function LambdaCompiler has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
          Open

          var LambdaCompiler = (function (_super) {
          __extends(LambdaCompiler, _super);
          function LambdaCompiler() {
          _super.call(this);
          this._stack = new Array();
          Severity: Minor
          Found in src/core/expressions/compiler.js - About 3 hrs to fix

          Function PrintVisitor has 60 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          var PrintVisitor = (function (_super) {
          __extends(PrintVisitor, _super);
          function PrintVisitor() {
          _super.apply(this, arguments);
          }
          Severity: Major
          Found in src/core/expressions/compiler.js - About 2 hrs to fix

            Function ExpressionVisitorGeneric has 51 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            var ExpressionVisitorGeneric = (function () {
            function ExpressionVisitorGeneric() {
            }
            ExpressionVisitorGeneric.prototype.visit = function (node) {
            if (node === null) {
            Severity: Major
            Found in src/core/expressions/compiler.js - About 2 hrs to fix

              Function ExpressionVisitor has 51 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              var ExpressionVisitor = (function () {
              function ExpressionVisitor() {
              }
              ExpressionVisitor.prototype.visit = function (node) {
              if (node === null) {
              Severity: Major
              Found in src/core/expressions/compiler.js - About 2 hrs to fix

                Function LambdaExpression has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                var LambdaExpression = (function (_super) {
                __extends(LambdaExpression, _super);
                function LambdaExpression(body, parameters) {
                _super.call(this, 2 /* Lambda */);
                this._body = body;
                Severity: Minor
                Found in src/core/expressions/compiler.js - About 1 hr to fix

                  Function visitBinary has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  LambdaCompiler.prototype.visitBinary = function (node) {
                  this.visit(node.left);
                  this.visit(node.right);
                  var r = this._stack.pop();
                  var l = this._stack.pop();
                  Severity: Minor
                  Found in src/core/expressions/compiler.js - About 1 hr to fix

                    Function FunctionCallExpression has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    var FunctionCallExpression = (function (_super) {
                    __extends(FunctionCallExpression, _super);
                    function FunctionCallExpression(expression, methodName, args) {
                    _super.call(this, 28 /* Call */);
                    this._expression = expression;
                    Severity: Minor
                    Found in src/core/expressions/compiler.js - About 1 hr to fix

                      Function ConditionalExpression has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      var ConditionalExpression = (function (_super) {
                      __extends(ConditionalExpression, _super);
                      function ConditionalExpression(test, ifTrue, ifFalse) {
                      _super.call(this, 26 /* Condition */);
                      this._test = test;
                      Severity: Minor
                      Found in src/core/expressions/compiler.js - About 1 hr to fix

                        Function visitBinary has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        BonsaiVisitor.prototype.visitBinary = function (node) {
                        var i = "";
                        switch (node.nodeType) {
                        case 3 /* Add */:
                        i = "+";
                        Severity: Minor
                        Found in src/core/expressions/compiler.js - About 1 hr to fix

                          Function BinaryExpression has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          var BinaryExpression = (function (_super) {
                          __extends(BinaryExpression, _super);
                          function BinaryExpression(nodeType, left, right) {
                          _super.call(this, nodeType);
                          this._left = left;
                          Severity: Minor
                          Found in src/core/expressions/compiler.js - About 1 hr to fix

                            Function FreeVariableScanner has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            var FreeVariableScanner = (function (_super) {
                            __extends(FreeVariableScanner, _super);
                            function FreeVariableScanner() {
                            _super.call(this);
                            this._stack = new Array();
                            Severity: Minor
                            Found in src/core/expressions/compiler.js - About 1 hr to fix

                              Function InvocationExpression has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              var InvocationExpression = (function (_super) {
                              __extends(InvocationExpression, _super);
                              function InvocationExpression(expression, args) {
                              _super.call(this, 21 /* Invoke */);
                              this._expression = expression;
                              Severity: Minor
                              Found in src/core/expressions/compiler.js - About 1 hr to fix

                                Function IndexExpression has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                var IndexExpression = (function (_super) {
                                __extends(IndexExpression, _super);
                                function IndexExpression(expression, args) {
                                _super.call(this, 30 /* Index */);
                                this._expression = expression;
                                Severity: Minor
                                Found in src/core/expressions/compiler.js - About 1 hr to fix

                                  Function MemberExpression has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  var MemberExpression = (function (_super) {
                                  __extends(MemberExpression, _super);
                                  function MemberExpression(obj, memberName) {
                                  _super.call(this, 29 /* Member */);
                                  this._obj = obj;
                                  Severity: Minor
                                  Found in src/core/expressions/compiler.js - About 1 hr to fix

                                    Function NewExpression has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    var NewExpression = (function (_super) {
                                    __extends(NewExpression, _super);
                                    function NewExpression(typeName, args) {
                                    _super.call(this, 27 /* New */);
                                    this._type = typeName;
                                    Severity: Minor
                                    Found in src/core/expressions/compiler.js - About 1 hr to fix

                                      Function Expression has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                      var Expression = (function () {
                                      function Expression(nodeType) {
                                      this.nodeType = nodeType;
                                      }
                                      Expression.prototype.accept = function (visitor) {
                                      Severity: Minor
                                      Found in src/core/expressions/compiler.js - About 1 hr to fix

                                      Function Binder has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      var Binder = (function (_super) {
                                      __extends(Binder, _super);
                                      function Binder(resources) {
                                      _super.call(this);
                                      this._stack = new Array();
                                      Severity: Minor
                                      Found in src/core/expressions/compiler.js - About 1 hr to fix

                                        Function BonsaiVisitor has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                        var BonsaiVisitor = (function (_super) {
                                        __extends(BonsaiVisitor, _super);
                                        function BonsaiVisitor() {
                                        _super.apply(this, arguments);
                                        }
                                        Severity: Minor
                                        Found in src/core/expressions/compiler.js - About 45 mins to fix

                                        Function Binder has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                        var Binder = (function (_super) {
                                        __extends(Binder, _super);
                                        function Binder(resources) {
                                        _super.call(this);
                                        this._stack = new Array();
                                        Severity: Minor
                                        Found in src/core/expressions/compiler.js - About 35 mins to fix

                                        Function FreeVariableScanner has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                        var FreeVariableScanner = (function (_super) {
                                        __extends(FreeVariableScanner, _super);
                                        function FreeVariableScanner() {
                                        _super.call(this);
                                        this._stack = new Array();
                                        Severity: Minor
                                        Found in src/core/expressions/compiler.js - About 35 mins to fix

                                        Function PrintVisitor has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                        var PrintVisitor = (function (_super) {
                                        __extends(PrintVisitor, _super);
                                        function PrintVisitor() {
                                        _super.apply(this, arguments);
                                        }
                                        Severity: Minor
                                        Found in src/core/expressions/compiler.js - About 25 mins to fix

                                        Identical blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        switch (node.nodeType) {
                                        case 3 /* Add */:
                                        i = "+";
                                        break;
                                        case 4 /* Subtract */:
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 1 other location - About 1 day to fix
                                        src/core/expressions/compiler.js on lines 1015..1070

                                        Identical blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        switch (node.nodeType) {
                                        case 3 /* Add */:
                                        i = "+";
                                        break;
                                        case 4 /* Subtract */:
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 1 other location - About 1 day to fix
                                        src/core/expressions/compiler.js on lines 685..740

                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        var InvocationExpression = (function (_super) {
                                        __extends(InvocationExpression, _super);
                                        function InvocationExpression(expression, args) {
                                        _super.call(this, 21 /* Invoke */);
                                        this._expression = expression;
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 1 other location - About 1 day to fix
                                        src/core/expressions/compiler.js on lines 520..554

                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        var IndexExpression = (function (_super) {
                                        __extends(IndexExpression, _super);
                                        function IndexExpression(expression, args) {
                                        _super.call(this, 30 /* Index */);
                                        this._expression = expression;
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 1 other location - About 1 day to fix
                                        src/core/expressions/compiler.js on lines 442..476

                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        var ConstantExpression = (function (_super) {
                                        __extends(ConstantExpression, _super);
                                        function ConstantExpression(value) {
                                        _super.call(this, 0 /* Constant */);
                                        this._value = value;
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 1 other location - About 6 hrs to fix
                                        src/core/expressions/compiler.js on lines 265..285

                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        var ParameterExpression = (function (_super) {
                                        __extends(ParameterExpression, _super);
                                        function ParameterExpression(name) {
                                        _super.call(this, 1 /* Parameter */);
                                        this._name = name;
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 1 other location - About 6 hrs to fix
                                        src/core/expressions/compiler.js on lines 244..264

                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        ExpressionVisitorGeneric.prototype.visitMany = function (nodes) {
                                        var res = new Array(nodes.length);
                                        for (var i = 0; i < nodes.length; i++) {
                                        var oldNode = nodes[i];
                                        var newNode = this.visit(oldNode);
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 1 other location - About 3 hrs to fix
                                        src/core/expressions/compiler.js on lines 233..241

                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        ExpressionVisitor.prototype.visitMany = function (nodes) {
                                        var res = new Array(nodes.length);
                                        for (var i = 0; i < nodes.length; i++) {
                                        var oldNode = nodes[i];
                                        var newNode = this.visit(oldNode);
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 1 other location - About 3 hrs to fix
                                        src/core/expressions/compiler.js on lines 180..188

                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        PrintVisitor.prototype.visitLambda = function (node) {
                                        var body = this.visit(node.body);
                                        var children = this.visitMany(node.parameters);
                                        children.unshift(body);
                                        return "Lambda(" + children.join(", ") + ")";
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 1 other location - About 2 hrs to fix
                                        src/core/expressions/compiler.js on lines 966..971

                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        PrintVisitor.prototype.visitInvoke = function (node) {
                                        var expression = this.visit(node.expression);
                                        var children = this.visitMany(node.args);
                                        children.unshift(expression);
                                        return "Invoke(" + children.join(", ") + ")";
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 1 other location - About 2 hrs to fix
                                        src/core/expressions/compiler.js on lines 960..965

                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                        Open

                                        Expression.lambda = function (body) {
                                        var parameters = [];
                                        for (var _i = 1; _i < arguments.length; _i++) {
                                        parameters[_i - 1] = arguments[_i];
                                        }
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 3 other locations - About 2 hrs to fix
                                        src/core/expressions/compiler.js on lines 105..111
                                        src/core/expressions/compiler.js on lines 112..118
                                        src/core/expressions/compiler.js on lines 129..135

                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                        Open

                                        Expression.invoke = function (expression) {
                                        var args = [];
                                        for (var _i = 1; _i < arguments.length; _i++) {
                                        args[_i - 1] = arguments[_i];
                                        }
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 3 other locations - About 2 hrs to fix
                                        src/core/expressions/compiler.js on lines 98..104
                                        src/core/expressions/compiler.js on lines 112..118
                                        src/core/expressions/compiler.js on lines 129..135

                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                        Open

                                        Expression.index = function (obj) {
                                        var args = [];
                                        for (var _i = 1; _i < arguments.length; _i++) {
                                        args[_i - 1] = arguments[_i];
                                        }
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 3 other locations - About 2 hrs to fix
                                        src/core/expressions/compiler.js on lines 98..104
                                        src/core/expressions/compiler.js on lines 105..111
                                        src/core/expressions/compiler.js on lines 112..118

                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                        Open

                                        Expression.new = function (typeName) {
                                        var args = [];
                                        for (var _i = 1; _i < arguments.length; _i++) {
                                        args[_i - 1] = arguments[_i];
                                        }
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 3 other locations - About 2 hrs to fix
                                        src/core/expressions/compiler.js on lines 98..104
                                        src/core/expressions/compiler.js on lines 105..111
                                        src/core/expressions/compiler.js on lines 129..135

                                        Identical blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        switch (node.nodeType) {
                                        case 23 /* Negate */:
                                        i = "-";
                                        break;
                                        case 24 /* UnaryPlus */:
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 1 other location - About 1 hr to fix
                                        src/core/expressions/compiler.js on lines 1075..1088

                                        Identical blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        switch (node.nodeType) {
                                        case 23 /* Negate */:
                                        i = "-";
                                        break;
                                        case 24 /* UnaryPlus */:
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 1 other location - About 1 hr to fix
                                        src/core/expressions/compiler.js on lines 661..674

                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        FreeVariableScanner.prototype.visitLambda = function (node) {
                                        this._stack.push(node.parameters);
                                        this.visit(node.body);
                                        this._stack.pop();
                                        return node;
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 1 other location - About 1 hr to fix
                                        src/core/expressions/compiler.js on lines 932..937

                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        Binder.prototype.visitLambda = function (node) {
                                        this._stack.push(node.parameters);
                                        this.visit(node.body);
                                        this._stack.pop();
                                        return node;
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 1 other location - About 1 hr to fix
                                        src/core/expressions/compiler.js on lines 870..875

                                        Identical blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        for (var i = this._stack.length - 1; i >= 0; i--) {
                                        if (this._stack[i].indexOf(node) >= 0) {
                                        found = true;
                                        break;
                                        }
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 1 other location - About 1 hr to fix
                                        src/core/expressions/compiler.js on lines 921..926

                                        Identical blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        for (var i = this._stack.length - 1; i >= 0; i--) {
                                        if (this._stack[i].indexOf(node) >= 0) {
                                        found = true;
                                        break;
                                        }
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 1 other location - About 1 hr to fix
                                        src/core/expressions/compiler.js on lines 859..864

                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        function ConditionalExpression(test, ifTrue, ifFalse) {
                                        _super.call(this, 26 /* Condition */);
                                        this._test = test;
                                        this._ifTrue = ifTrue;
                                        this._ifFalse = ifFalse;
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 1 other location - About 1 hr to fix
                                        src/core/expressions/compiler.js on lines 479..484

                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        function FunctionCallExpression(expression, methodName, args) {
                                        _super.call(this, 28 /* Call */);
                                        this._expression = expression;
                                        this._method = methodName;
                                        this._args = args;
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 1 other location - About 1 hr to fix
                                        src/core/expressions/compiler.js on lines 350..355

                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                        Open

                                        ExpressionVisitor.prototype.visitCall = function (node) {
                                        return node.update(this.visit(node.obj), this.visitMany(node.args));
                                        };
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 4 other locations - About 1 hr to fix
                                        src/core/expressions/compiler.js on lines 206..208
                                        src/core/expressions/compiler.js on lines 215..217
                                        src/core/expressions/compiler.js on lines 218..220
                                        src/core/expressions/compiler.js on lines 230..232

                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                        Open

                                        ExpressionVisitor.prototype.visitIndex = function (node) {
                                        return node.update(this.visit(node.obj), this.visitMany(node.args));
                                        };
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 4 other locations - About 1 hr to fix
                                        src/core/expressions/compiler.js on lines 206..208
                                        src/core/expressions/compiler.js on lines 215..217
                                        src/core/expressions/compiler.js on lines 218..220
                                        src/core/expressions/compiler.js on lines 221..223

                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                        Open

                                        ExpressionVisitor.prototype.visitBinary = function (node) {
                                        return node.update(this.visit(node.left), this.visit(node.right));
                                        };
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 4 other locations - About 1 hr to fix
                                        src/core/expressions/compiler.js on lines 215..217
                                        src/core/expressions/compiler.js on lines 218..220
                                        src/core/expressions/compiler.js on lines 221..223
                                        src/core/expressions/compiler.js on lines 230..232

                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                        Open

                                        ExpressionVisitor.prototype.visitLambda = function (node) {
                                        return node.update(this.visit(node.body), this.visitMany(node.parameters));
                                        };
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 4 other locations - About 1 hr to fix
                                        src/core/expressions/compiler.js on lines 206..208
                                        src/core/expressions/compiler.js on lines 218..220
                                        src/core/expressions/compiler.js on lines 221..223
                                        src/core/expressions/compiler.js on lines 230..232

                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                        Open

                                        ExpressionVisitor.prototype.visitInvoke = function (node) {
                                        return node.update(this.visit(node.expression), this.visitMany(node.args));
                                        };
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 4 other locations - About 1 hr to fix
                                        src/core/expressions/compiler.js on lines 206..208
                                        src/core/expressions/compiler.js on lines 215..217
                                        src/core/expressions/compiler.js on lines 221..223
                                        src/core/expressions/compiler.js on lines 230..232

                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                        Open

                                        for (var i = 0; i < n; i++) {
                                        args[n - i - 1] = this._stack.pop();
                                        }
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 4 other locations - About 55 mins to fix
                                        src/core/expressions/compiler.js on lines 766..768
                                        src/core/expressions/compiler.js on lines 779..781
                                        src/core/expressions/compiler.js on lines 797..799
                                        src/core/expressions/compiler.js on lines 833..835

                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                        Open

                                        for (var i = 0; i < n; i++) {
                                        args[n - i - 1] = this._stack.pop();
                                        }
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 4 other locations - About 55 mins to fix
                                        src/core/expressions/compiler.js on lines 766..768
                                        src/core/expressions/compiler.js on lines 779..781
                                        src/core/expressions/compiler.js on lines 809..811
                                        src/core/expressions/compiler.js on lines 833..835

                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                        Open

                                        for (var i = 0; i < n; i++) {
                                        args[n - i - 1] = this._stack.pop();
                                        }
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 4 other locations - About 55 mins to fix
                                        src/core/expressions/compiler.js on lines 779..781
                                        src/core/expressions/compiler.js on lines 797..799
                                        src/core/expressions/compiler.js on lines 809..811
                                        src/core/expressions/compiler.js on lines 833..835

                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                        Open

                                        for (var i = 0; i < n; i++) {
                                        args[n - i - 1] = this._stack.pop();
                                        }
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 4 other locations - About 55 mins to fix
                                        src/core/expressions/compiler.js on lines 766..768
                                        src/core/expressions/compiler.js on lines 779..781
                                        src/core/expressions/compiler.js on lines 797..799
                                        src/core/expressions/compiler.js on lines 809..811

                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                        Open

                                        for (var i = 0; i < n; i++) {
                                        args[n - i - 1] = this._stack.pop();
                                        }
                                        Severity: Major
                                        Found in src/core/expressions/compiler.js and 4 other locations - About 55 mins to fix
                                        src/core/expressions/compiler.js on lines 766..768
                                        src/core/expressions/compiler.js on lines 797..799
                                        src/core/expressions/compiler.js on lines 809..811
                                        src/core/expressions/compiler.js on lines 833..835

                                        Identical blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        if (node.obj !== null) {
                                        this.visit(node.obj);
                                        res = this._stack.pop() + ".";
                                        }
                                        Severity: Minor
                                        Found in src/core/expressions/compiler.js and 1 other location - About 50 mins to fix
                                        src/core/expressions/compiler.js on lines 819..822

                                        Identical blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        if (node.obj !== null) {
                                        this.visit(node.obj);
                                        res = this._stack.pop() + ".";
                                        }
                                        Severity: Minor
                                        Found in src/core/expressions/compiler.js and 1 other location - About 50 mins to fix
                                        src/core/expressions/compiler.js on lines 790..793

                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        UnaryExpression.prototype.update = function (operand) {
                                        if (operand !== this._operand) {
                                        return new UnaryExpression(this.nodeType, operand);
                                        }
                                        return this;
                                        Severity: Minor
                                        Found in src/core/expressions/compiler.js and 1 other location - About 50 mins to fix
                                        src/core/expressions/compiler.js on lines 582..587

                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        NewExpression.prototype.update = function (args) {
                                        if (args !== this._args) {
                                        return new NewExpression(this._type, args);
                                        }
                                        return this;
                                        Severity: Minor
                                        Found in src/core/expressions/compiler.js and 1 other location - About 50 mins to fix
                                        src/core/expressions/compiler.js on lines 305..310

                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        ExpressionVisitor.prototype.visit = function (node) {
                                        if (node === null) {
                                        return null;
                                        }
                                        return node.accept(this);
                                        Severity: Minor
                                        Found in src/core/expressions/compiler.js and 1 other location - About 35 mins to fix
                                        src/core/expressions/compiler.js on lines 141..146

                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                        Open

                                        ExpressionVisitorGeneric.prototype.visit = function (node) {
                                        if (node === null) {
                                        return null;
                                        }
                                        return node.acceptGeneric(this);
                                        Severity: Minor
                                        Found in src/core/expressions/compiler.js and 1 other location - About 35 mins to fix
                                        src/core/expressions/compiler.js on lines 194..199

                                        There are no issues that match your filters.

                                        Category
                                        Status