UNPKG

@liftr/tscov

Version:

Check the type coverage of any TypeScript project with this easy npm package

191 lines (190 loc) 9.91 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ignoreTypes = void 0; const tslib_1 = require("tslib"); const typescript_1 = tslib_1.__importDefault(require("typescript")); exports.ignoreTypes = new Set([ typescript_1.default.SyntaxKind.Unknown, typescript_1.default.SyntaxKind.EndOfFileToken, typescript_1.default.SyntaxKind.SingleLineCommentTrivia, typescript_1.default.SyntaxKind.MultiLineCommentTrivia, typescript_1.default.SyntaxKind.NewLineTrivia, typescript_1.default.SyntaxKind.WhitespaceTrivia, typescript_1.default.SyntaxKind.ShebangTrivia, typescript_1.default.SyntaxKind.ConflictMarkerTrivia, typescript_1.default.SyntaxKind.NumericLiteral, typescript_1.default.SyntaxKind.StringLiteral, typescript_1.default.SyntaxKind.JsxText, typescript_1.default.SyntaxKind.JsxTextAllWhiteSpaces, typescript_1.default.SyntaxKind.RegularExpressionLiteral, typescript_1.default.SyntaxKind.NoSubstitutionTemplateLiteral, typescript_1.default.SyntaxKind.TemplateHead, typescript_1.default.SyntaxKind.TemplateMiddle, typescript_1.default.SyntaxKind.TemplateTail, typescript_1.default.SyntaxKind.OpenBraceToken, typescript_1.default.SyntaxKind.CloseBraceToken, typescript_1.default.SyntaxKind.OpenParenToken, typescript_1.default.SyntaxKind.CloseParenToken, typescript_1.default.SyntaxKind.OpenBracketToken, typescript_1.default.SyntaxKind.CloseBracketToken, typescript_1.default.SyntaxKind.DotToken, typescript_1.default.SyntaxKind.DotDotDotToken, typescript_1.default.SyntaxKind.SemicolonToken, typescript_1.default.SyntaxKind.CommaToken, typescript_1.default.SyntaxKind.LessThanToken, typescript_1.default.SyntaxKind.LessThanSlashToken, typescript_1.default.SyntaxKind.GreaterThanToken, typescript_1.default.SyntaxKind.LessThanEqualsToken, typescript_1.default.SyntaxKind.GreaterThanEqualsToken, typescript_1.default.SyntaxKind.EqualsEqualsToken, typescript_1.default.SyntaxKind.ExclamationEqualsToken, typescript_1.default.SyntaxKind.EqualsEqualsEqualsToken, typescript_1.default.SyntaxKind.ExclamationEqualsEqualsToken, typescript_1.default.SyntaxKind.EqualsGreaterThanToken, typescript_1.default.SyntaxKind.PlusToken, typescript_1.default.SyntaxKind.MinusToken, typescript_1.default.SyntaxKind.AsteriskToken, typescript_1.default.SyntaxKind.AsteriskAsteriskToken, typescript_1.default.SyntaxKind.SlashToken, typescript_1.default.SyntaxKind.PercentToken, typescript_1.default.SyntaxKind.PlusPlusToken, typescript_1.default.SyntaxKind.MinusMinusToken, typescript_1.default.SyntaxKind.LessThanLessThanToken, typescript_1.default.SyntaxKind.GreaterThanGreaterThanToken, typescript_1.default.SyntaxKind.GreaterThanGreaterThanGreaterThanToken, typescript_1.default.SyntaxKind.AmpersandToken, typescript_1.default.SyntaxKind.BarToken, typescript_1.default.SyntaxKind.CaretToken, typescript_1.default.SyntaxKind.ExclamationToken, typescript_1.default.SyntaxKind.TildeToken, typescript_1.default.SyntaxKind.AmpersandAmpersandToken, typescript_1.default.SyntaxKind.BarBarToken, typescript_1.default.SyntaxKind.QuestionToken, typescript_1.default.SyntaxKind.ColonToken, typescript_1.default.SyntaxKind.AtToken, typescript_1.default.SyntaxKind.QuestionQuestionToken, typescript_1.default.SyntaxKind.EqualsToken, typescript_1.default.SyntaxKind.PlusEqualsToken, typescript_1.default.SyntaxKind.MinusEqualsToken, typescript_1.default.SyntaxKind.AsteriskEqualsToken, typescript_1.default.SyntaxKind.AsteriskAsteriskEqualsToken, typescript_1.default.SyntaxKind.SlashEqualsToken, typescript_1.default.SyntaxKind.PercentEqualsToken, typescript_1.default.SyntaxKind.LessThanLessThanEqualsToken, typescript_1.default.SyntaxKind.GreaterThanGreaterThanEqualsToken, typescript_1.default.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken, typescript_1.default.SyntaxKind.AmpersandEqualsToken, typescript_1.default.SyntaxKind.BarEqualsToken, typescript_1.default.SyntaxKind.CaretEqualsToken, typescript_1.default.SyntaxKind.BreakKeyword, typescript_1.default.SyntaxKind.CaseKeyword, typescript_1.default.SyntaxKind.CatchKeyword, typescript_1.default.SyntaxKind.ClassKeyword, typescript_1.default.SyntaxKind.ConstKeyword, typescript_1.default.SyntaxKind.ContinueKeyword, typescript_1.default.SyntaxKind.DebuggerKeyword, typescript_1.default.SyntaxKind.DefaultKeyword, typescript_1.default.SyntaxKind.DeleteKeyword, typescript_1.default.SyntaxKind.DoKeyword, typescript_1.default.SyntaxKind.ElseKeyword, typescript_1.default.SyntaxKind.EnumKeyword, typescript_1.default.SyntaxKind.ExportKeyword, typescript_1.default.SyntaxKind.ExtendsKeyword, typescript_1.default.SyntaxKind.FalseKeyword, typescript_1.default.SyntaxKind.FinallyKeyword, typescript_1.default.SyntaxKind.ForKeyword, typescript_1.default.SyntaxKind.FunctionKeyword, typescript_1.default.SyntaxKind.IfKeyword, typescript_1.default.SyntaxKind.ImportKeyword, typescript_1.default.SyntaxKind.InKeyword, typescript_1.default.SyntaxKind.InstanceOfKeyword, typescript_1.default.SyntaxKind.NewKeyword, typescript_1.default.SyntaxKind.NullKeyword, typescript_1.default.SyntaxKind.ReturnKeyword, typescript_1.default.SyntaxKind.SuperKeyword, typescript_1.default.SyntaxKind.SwitchKeyword, typescript_1.default.SyntaxKind.ThrowKeyword, typescript_1.default.SyntaxKind.TrueKeyword, typescript_1.default.SyntaxKind.TryKeyword, typescript_1.default.SyntaxKind.TypeOfKeyword, typescript_1.default.SyntaxKind.VarKeyword, typescript_1.default.SyntaxKind.VoidKeyword, typescript_1.default.SyntaxKind.WhileKeyword, typescript_1.default.SyntaxKind.WithKeyword, typescript_1.default.SyntaxKind.ImplementsKeyword, typescript_1.default.SyntaxKind.InterfaceKeyword, typescript_1.default.SyntaxKind.LetKeyword, typescript_1.default.SyntaxKind.PackageKeyword, typescript_1.default.SyntaxKind.PrivateKeyword, typescript_1.default.SyntaxKind.ProtectedKeyword, typescript_1.default.SyntaxKind.PublicKeyword, typescript_1.default.SyntaxKind.StaticKeyword, typescript_1.default.SyntaxKind.YieldKeyword, typescript_1.default.SyntaxKind.AbstractKeyword, typescript_1.default.SyntaxKind.AsKeyword, typescript_1.default.SyntaxKind.AnyKeyword, typescript_1.default.SyntaxKind.AsyncKeyword, typescript_1.default.SyntaxKind.AwaitKeyword, typescript_1.default.SyntaxKind.BooleanKeyword, typescript_1.default.SyntaxKind.ConstructorKeyword, typescript_1.default.SyntaxKind.DeclareKeyword, typescript_1.default.SyntaxKind.GetKeyword, typescript_1.default.SyntaxKind.IsKeyword, typescript_1.default.SyntaxKind.KeyOfKeyword, typescript_1.default.SyntaxKind.ModuleKeyword, typescript_1.default.SyntaxKind.NamespaceKeyword, typescript_1.default.SyntaxKind.NeverKeyword, typescript_1.default.SyntaxKind.ReadonlyKeyword, typescript_1.default.SyntaxKind.RequireKeyword, typescript_1.default.SyntaxKind.NumberKeyword, typescript_1.default.SyntaxKind.ObjectKeyword, typescript_1.default.SyntaxKind.SetKeyword, typescript_1.default.SyntaxKind.StringKeyword, typescript_1.default.SyntaxKind.SymbolKeyword, typescript_1.default.SyntaxKind.TypeKeyword, typescript_1.default.SyntaxKind.UndefinedKeyword, typescript_1.default.SyntaxKind.UniqueKeyword, typescript_1.default.SyntaxKind.UnknownKeyword, typescript_1.default.SyntaxKind.FromKeyword, typescript_1.default.SyntaxKind.GlobalKeyword, typescript_1.default.SyntaxKind.BigIntKeyword, typescript_1.default.SyntaxKind.OfKeyword, typescript_1.default.SyntaxKind.OptionalType, typescript_1.default.SyntaxKind.ThisType, typescript_1.default.SyntaxKind.OmittedExpression, typescript_1.default.SyntaxKind.EmptyStatement, typescript_1.default.SyntaxKind.ContinueStatement, typescript_1.default.SyntaxKind.BreakStatement, typescript_1.default.SyntaxKind.DebuggerStatement, typescript_1.default.SyntaxKind.JsxOpeningFragment, typescript_1.default.SyntaxKind.JsxClosingFragment, typescript_1.default.SyntaxKind.EnumMember, typescript_1.default.SyntaxKind.SourceFile, typescript_1.default.SyntaxKind.Bundle, typescript_1.default.SyntaxKind.JSDocTypeExpression, typescript_1.default.SyntaxKind.JSDocAllType, typescript_1.default.SyntaxKind.JSDocUnknownType, typescript_1.default.SyntaxKind.JSDocNullableType, typescript_1.default.SyntaxKind.JSDocNonNullableType, typescript_1.default.SyntaxKind.JSDocOptionalType, typescript_1.default.SyntaxKind.JSDocFunctionType, typescript_1.default.SyntaxKind.JSDocVariadicType, typescript_1.default.SyntaxKind.JSDocComment, typescript_1.default.SyntaxKind.JSDocTag, typescript_1.default.SyntaxKind.JSDocAugmentsTag, typescript_1.default.SyntaxKind.JSDocClassTag, typescript_1.default.SyntaxKind.JSDocParameterTag, typescript_1.default.SyntaxKind.JSDocReturnTag, typescript_1.default.SyntaxKind.JSDocTypeTag, typescript_1.default.SyntaxKind.JSDocTemplateTag, typescript_1.default.SyntaxKind.JSDocTypedefTag, typescript_1.default.SyntaxKind.JSDocPropertyTag, typescript_1.default.SyntaxKind.JSDocTypeLiteral, typescript_1.default.SyntaxKind.SyntaxList, typescript_1.default.SyntaxKind.NotEmittedStatement, typescript_1.default.SyntaxKind.PartiallyEmittedExpression, typescript_1.default.SyntaxKind.CommaListExpression, typescript_1.default.SyntaxKind.MergeDeclarationMarker, typescript_1.default.SyntaxKind.EndOfDeclarationMarker, typescript_1.default.SyntaxKind.Count, ]);