🐠 Babel is a compiler for writing next generation JavaScript.
505 matches across 9 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | Gulpfile.ts | 141 | function generateHelperGlobalsData(filename: string) { |
| LOW | Gulpfile.ts | 534 | function babelPluginInlineConstNumericObjects({ types: t }) { |
| LOW | babel.config.ts | 383 | function pluginRequiredVersionMacro( |
| LOW | babel.config.ts | 431 | function transformNamedBabelTypesImportToDestructuring({ |
| LOW | babel.config.ts | 481 | function pluginReplaceTSImportExtension() { |
| LOW | babel.config.ts | 546 | function pluginBabelParserTokenType({ |
| LOW | babel.config.ts | 573 | function pluginGeneratorOptimization({ types: t }: PluginAPI) { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 1916 | function containsPossibleTopLevelAwait(node: Node) { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 1921 | function findNextStatementWithAwait(statements: NodeArray<Statement>, start: number) { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 1930 | function findNextStatementWithoutAwait(statements: NodeArray<Statement>, start: number) { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 2934 | function nextTokenIsIdentifierOrKeyword() { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 2939 | function nextTokenIsIdentifierOrKeywordOrGreaterThan() { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 2944 | function isHeritageClauseExtendsOrImplementsKeyword(): boolean { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 6634 | function parseArgumentOrArrayLiteralElement(): Expression { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 6644 | function parseArrayLiteralExpression(): ArrayLiteralExpression { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 6654 | function parseObjectLiteralElement(): ObjectLiteralElementLike { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 7102 | function nextTokenIsIdentifierOrKeywordOnSameLine() { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 7107 | function nextTokenIsClassKeywordOnSameLine() { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 7112 | function nextTokenIsFunctionKeywordOnSameLine() { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 7117 | function nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine() { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 8403 | function tokenAfterImportDefinitelyProducesImportDeclaration() { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 8407 | function tokenAfterImportedIdentifierDefinitelyProducesImportDeclaration() { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 8413 | function parseImportEqualsDeclaration(pos: number, hasJSDoc: boolean, modifiers: NodeArray<ModifierLike> | undefined |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 8482 | function parseNamedImportsOrExports(kind: SyntaxKind.NamedImports): NamedImports; |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 8483 | function parseNamedImportsOrExports(kind: SyntaxKind.NamedExports): NamedExports; |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 8484 | function parseNamedImportsOrExports(kind: SyntaxKind): NamedImportsOrExports { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 9933 | function moveElementEntirelyPastChangeRange(element: IncrementalNode, isArray: false, delta: number, oldText: string |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 9934 | function moveElementEntirelyPastChangeRange(element: IncrementalNodeArray, isArray: true, delta: number, oldText: st |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 9935 | function moveElementEntirelyPastChangeRange(element: IncrementalNode | IncrementalNodeArray, isArray: boolean, delta |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 463 | export function isFileProbablyExternalModule(sourceFile: SourceFile) { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 470 | function isAnExternalModuleIndicatorNode(node: Node) { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 1325 | function setExternalModuleIndicator(sourceFile: SourceFile) { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 1395 | export function parseIsolatedJSDocComment(content: string, start?: number, length?: number) { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 1408 | export function parseJSDocTypeExpressionForTests(content: string, start?: number, length?: number) { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 2114 | function inDisallowConditionalTypesContext() { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 2197 | function nextJSDocCommentTextToken(inBackticks: boolean): JSDocSyntaxKind | SyntaxKind.JSDocCommentTextToken { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 2341 | function parseErrorForMissingSemicolonAfter(node: Expression | PropertyName): void { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 2431 | function parseSemicolonAfterPropertyName(name: PropertyName, type: TypeNode | undefined, initializer: Expression | u |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 2475 | function parseExpectedMatchingBrackets(openKind: PunctuationSyntaxKind, closeKind: PunctuationSyntaxKind, openParsed |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 2673 | function parseIdentifierNameErrorOnUnicodeEscapeSequence(): Identifier { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 2709 | function parseComputedPropertyName(): ComputedPropertyName { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 2734 | function nextTokenIsOnSameLineAndCanFollowModifier() { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 2742 | function nextTokenCanFollowModifier() { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 2776 | function nextTokenCanFollowExportModifier(): boolean { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 2781 | function parseAnyContextualModifier(): boolean { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 2793 | function nextTokenCanFollowDefaultKeyword(): boolean { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 2911 | function isValidHeritageClauseObjectLiteral() { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 2955 | function nextTokenIsStartOfExpression() { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 3018 | function isVariableDeclaratorListTerminator(): boolean { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 3342 | function isReusableVariableDeclaration(node: Node) { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 3376 | function abortParsingListOrMoveToNextToken(kind: ParsingContext) { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 3527 | function getExpectedCommaDiagnostic(kind: ParsingContext) { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 3679 | function parseLiteralOfTemplateSpan(isTaggedTemplate: boolean) { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 3714 | function parseTemplateMiddleOrTemplateTail(): TemplateMiddle | TemplateTail { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 3720 | function getTemplateLiteralRawText(kind: TemplateLiteralToken["kind"]) { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 3753 | function parseEntityNameOfTypeReference() { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 3757 | function parseTypeArgumentsOfTypeReference() { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 3775 | function typeHasArrowFunctionBlockingParseError(node: TypeNode): boolean { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 3808 | function parseJSDocNonNullableType(): TypeNode { |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 3814 | function parseJSDocUnknownOrNullableType(): JSDocUnknownType | JSDocNullableType { |
| 354 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | babel.config.ts | 281 | // - it only supports comparing major and minor version, assuming Node.js will never ship |
| LOW | babel.config.ts | 301 | // EXAMPLE: |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 1501 | // Whether or not we are in strict parsing mode. All that changes in strict parsing mode is |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 1521 | // RelationalExpression[?In, ?Yield] |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 1541 | // understand when these values should be changed versus when they should be inherited. |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 1561 | // 3) A token was present that no parsing function was able to consume. This type of error |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 3201 | // case ParsingContext.HeritageClauses: |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 3221 | |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 3341 | |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 3581 | // However, often we'll encounter this in error situations when the identifier or keyword |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 4081 | } |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 5041 | // 5) AsyncArrowFunctionExpression[in,yield,await] |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 5061 | // not a LeftHandSideExpression, nor does it start a ConditionalExpression. So we are done |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 5101 | |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 5461 | // If we have an arrow, then try to parse the body. Even if not, try to parse if we |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 5581 | // recursively call the function below, and parse binaryExpression as a rightOperand |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 5861 | // Original Ecma: |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 5881 | // CallExpression[Expression] |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 5921 | // of it here to be complete. |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 5941 | // PrimaryExpression |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 5961 | // we always consume arguments if they are there. So we treat "new Foo()" as an |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 7141 | // namespace n |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 9841 | // |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 10001 | // properly. |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 10021 | // In this case, any element that started in the 'X' range will keep its position. |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 10041 | // however, if the delta is negative, then we instead have something like this: |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 10161 | // void foo() { /; } |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 10221 | // When trying to find the nearest node before us. |
| LOW | benchmark/babel-parser/real-case-ts/ts-parser.txt | 10241 | // in case one of the children is better. |
| LOW | benchmark/babel-parser/real-case/jquery-3.6.txt | 4461 | // 1. The entire cache object |
| LOW | benchmark/babel-parser/real-case/jquery-3.6.txt | 5841 | // Support: Chrome 86+ |
| LOW | benchmark/babel-parser/real-case/jquery-3.6.txt | 11141 | !isNaN(obj - parseFloat(obj)) |
| LOW | …l-case-preset-env-flow-ast/babel-parser-expression.txt | 1 | // @flow |
| LOW | …l-case-preset-env-flow-ast/babel-parser-expression.txt | 1321 | } |
| LOW | benchmark/babel-generator/real-case/jquery-3.6.txt | 4461 | // 1. The entire cache object |
| LOW | benchmark/babel-generator/real-case/jquery-3.6.txt | 5841 | // Support: Chrome 86+ |
| LOW | benchmark/babel-generator/real-case/jquery-3.6.txt | 11141 | !isNaN(obj - parseFloat(obj)) |
| LOW | scripts/parallel-tsc/tsc.ts | 61 | |
| LOW | scripts/integration-tests/verdaccio-config.yml | 1 | # |
| LOW | packages/babel-traverse/src/path/conversion.ts | 941 | // |
| LOW | packages/babel-parser/test/helpers/serialization.js | 1 | const { parse: JSONParse, stringify } = JSON; |
| LOW | packages/babel-parser/test/helpers/serialization.js | 61 | // errors are serialized *without* their corresponding class name (the result of |
| LOW | packages/babel-parser/src/parse-error.ts | 181 | // 2. `toMessage` functions that define additional necessary `details` needed by |
| LOW | packages/babel-parser/src/options.ts | 181 | sourceType: "script", |
| LOW | packages/babel-parser/src/options.ts | 201 | allowNewTargetOutsideFunction: false, |
| LOW | packages/babel-parser/src/options.ts | 221 | // [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678 |
| LOW | packages/babel-parser/src/util/production-parameter.ts | 1 | // ProductionParameterHandler is a stack fashioned production parameter tracker |
| LOW | packages/babel-parser/src/plugins/flow/index.ts | 3021 | } |
| LOW | packages/babel-parser/src/tokenizer/types.ts | 1 | // ## Token types |
| LOW | packages/babel-parser/src/tokenizer/types.ts | 161 | |
| LOW | packages/babel-parser/src/parser/expression.ts | 1 | // A recursive descent parser operates by defining functions for all |
| LOW | packages/babel-parser/src/parser/expression.ts | 181 | } |
| LOW | packages/babel-parser/src/parser/expression.ts | 1381 | // This helper method attempts to finish the given `node` |
| LOW | …l-plugin-transform-regenerator/src/regenerator/emit.ts | 281 | ); |
| LOW | …l-plugin-transform-regenerator/src/regenerator/emit.ts | 461 | |
| LOW | …l-plugin-transform-regenerator/src/regenerator/emit.ts | 861 | |
| LOW | …l-plugin-transform-regenerator/src/regenerator/emit.ts | 921 | !ignoreChildResult || !tempVar, |
| LOW | …l-plugin-transform-regenerator/src/regenerator/emit.ts | 1281 | // |
| LOW | …erator/src/regenerator/replaceShorthandObjectMethod.ts | 1 | import type { NodePath } from "@babel/core"; |
| LOW | …erator/src/regenerator/replaceShorthandObjectMethod.ts | 21 | // this method can be passed any Function AST node path, and it will return |
| 16 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | benchmark/babel-parser/real-case/jquery-3.6.txt | 8391 | jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g), function (_i, name) { |
| CRITICAL | benchmark/babel-generator/real-case/jquery-3.6.txt | 8391 | jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g), function (_i, name) { |
| CRITICAL | …es/babel-standalone/test/transform-script-tags.test.js | 24 | dom.window.document.head.children.item(2); |
| CRITICAL | …es/babel-standalone/test/transform-script-tags.test.js | 47 | dom.window.document.head.children.item(2); |
| CRITICAL | …es/babel-standalone/test/transform-script-tags.test.js | 67 | dom.window.document.head.children.item(2); |
| CRITICAL | …es/babel-standalone/test/transform-script-tags.test.js | 93 | dom.window.document.head.children.item(2); |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | Makefile.js | 36 | /*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var xs,Os={};function As(){if(xs)re |
| LOW | …/babel-7-8-compat/babel-7-plugins-with-babel-8-core.sh | 4 | # NOTE: This will change files in your monorepo, make sure to commit/stage |
| LOW | packages/babel-parser/src/tokenizer/types.ts | 224 | // Don't forget to update packages/babel-helper-validator-identifier/src/keyword.js |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | packages/babel-generator/src/printer.ts | 699 | print( |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | Makefile.js | 36 | /*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var xs,Os={};function As(){if(xs)re |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | scripts/integration-tests/e2e-react-native.sh | 31 | # Create a React Native project |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | packages/babel-parser/src/parser/statement.ts | 2857 | * we need to check if we have a comma after that and |
| LOW | …/babel-plugin-transform-react-jsx/src/create-plugin.ts | 242 | // Current node is within a method, so we need to check if the method is a constructor. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/integration-tests/utils/local-registry.sh | 16 | # Set registry to local registry |