CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.0.2-dev (changelog, source)
Search

Module GeneratedCode

Provides classes for detecting generated code.

Import path

import semmle.javascript.GeneratedCode

Imports

Bundling

Provides classes and predicates for detecting files generated by popular module bundlers.

Emscripten

Provides classes for working with Emscripten-generated code.

GWT

Provides classes for working with GWT-generated code.

SourceMaps

Provides a class for representing source maps.

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Predicates

isGenerated

Holds if tl looks like it contains generated code.

isGeneratedCode

Holds if file look like it contains generated code.

isGeneratedFileName

Holds if the base name of f is a number followed by a single extension.

Classes

CodeGeneratorMarkerComment

A marker comment left by a known code generator.

GeneratedCodeMarkerComment

A comment that marks generated code.