Showing 193 of 398 total issues
Function Parser
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Parser(code, options, delegate) {
if (options === void 0) { options = {}; }
this.config = {
range: (typeof options.range === 'boolean') && options.range,
loc: (typeof options.loc === 'boolean') && options.loc,
Function scanPunctuator
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Scanner.prototype.scanPunctuator = function () {
var token = {
type: token_1.Token.Punctuator,
value: '',
lineNumber: this.lineNumber,
Function split
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_brackets.split = function split (str, tmpl, _bp) {
// istanbul ignore next: _bp is for the compiler
if (!_bp) _bp = _cache;
var
Function split
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_brackets.split = function split (str, tmpl, _bp) {
// istanbul ignore next: _bp is for the compiler
if (!_bp) _bp = _cache
var
Function split
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_brackets.split = function split (str, tmpl, _bp) {
// istanbul ignore next: _bp is for the compiler
if (!_bp) _bp = _cache
var
Function split
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_brackets.split = function split (str, tmpl, _bp) {
// istanbul ignore next: _bp is for the compiler
if (!_bp) _bp = _cache
// Template text is easy: closing brackets are ignored, all we have to do is find
Function scanComments
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Scanner.prototype.scanComments = function () {
var comments;
if (this.trackComment) {
comments = [];
}
Function parseAssignmentExpression
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Parser.prototype.parseAssignmentExpression = function () {
var expr;
if (!this.context.allowYield && this.matchKeyword('yield')) {
expr = this.parseYieldExpression();
}
Function scanNumericLiteral
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Scanner.prototype.scanNumericLiteral = function () {
var start = this.index;
var ch = this.source[start];
assert_1.assert(character_1.Character.isDecimalDigit(ch.charCodeAt(0)) || (ch === '.'), 'Numeric literal must start with a decimal digit or a decimal point');
var number = '';
Function skipMultiLineComment
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Scanner.prototype.skipMultiLineComment = function () {
var comments;
var start, loc;
if (this.trackComment) {
comments = [];
Function getNextToken
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tokenizer.prototype.getNextToken = function () {
if (this.buffer.length === 0) {
var comments = this.scanner.scanComments();
if (this.scanner.trackComment) {
for (var i = 0; i < comments.length; ++i) {
Function Reader
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Reader = (function () {
function Reader() {
this.values = [];
this.curly = this.paren = -1;
}
Function hoist
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function hoist(ast){
var parentStack = [];
var variables = [];
var functions = [];
Function skipRegex
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var skipRegex = (function () { //eslint-disable-line no-unused-vars
var beforeReChars = '[{(,;:?=|&!^~>%*/'
var beforeReWords = [
Function skipSingleLineComment
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Scanner.prototype.skipSingleLineComment = function (offset) {
var comments;
var start, loc;
if (this.trackComment) {
comments = [];
Function skipRegex
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var skipRegex = (function () { //eslint-disable-line no-unused-vars
var beforeReChars = '[{(,;:?=|&!^~>%*/';
var beforeReWords = [
Function skipRegex
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var skipRegex = (function () { //eslint-disable-line no-unused-vars
var beforeReChars = '[{(,;:?=|&!^~>%*/'
var beforeReWords = [
Function skipRegex
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var skipRegex = (function () { //eslint-disable-line no-unused-vars
// safe characters to precced a regex (including `=>`, `**`, and `...`)
var beforeReChars = '[{(,;:?=|&!^~>%*/'
Function ErrorHandler
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ErrorHandler = (function () {
function ErrorHandler() {
this.errors = [];
this.tolerant = false;
}
Function getComplexIdentifier
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Scanner.prototype.getComplexIdentifier = function () {
var cp = this.codePointAt(this.index);
var id = character_1.Character.fromCodePoint(cp);
this.index += id.length;
// '\u' (U+005C, U+0075) denotes an escaped character.