Files
codeql/javascript/extractor
Cornelius Riemenschneider 798a1e250e Move the JS java tests to be a proper java_test target.
Previously, we had a `sh_test` wrapping the `java_test` to do some setup.
This was extremely brittle on Windows, and relied on getting a deploy
jar from `java_test`. This breaks when updating to Bazel 7, where the
ability to get a deploy jar from `java_test` was removed.
Therefore, we now do all the test setup in `AllTests.java` instead.
This is much cleaner, and shouldn't break as easily.
2024-02-15 17:02:28 +01:00
..
2024-01-10 13:53:54 +01:00
2023-11-20 20:31:00 +01:00
2018-11-07 07:48:25 +00:00
2019-08-17 16:31:19 +01:00
2022-11-28 12:12:36 +01:00

JavaScript extractor

This directory contains the source code of the JavaScript extractor. The extractor depends on various libraries that are not currently bundled with the source code, so at present it cannot be built in isolation.

The extractor consists of a parser for the latest version of ECMAScript, including a few proposed and historic extensions (see src/com/semmle/jcorn), classes for representing JavaScript and TypeScript ASTs (src/com/semmle/js/ast and src/com/semmle/ts/ast), and various other bits of functionality. Historically, the main entry point of the JavaScript extractor has been com.semmle.js.extractor.Main. However, this class is slowly being phased out in favour of com.semmle.js.extractor.AutoBuild, which is the entry point used by CodeQL.

License

Like the CodeQL queries, the JavaScript extractor is licensed under Apache License 2.0 by GitHub. Some code is derived from other projects, whose licenses are noted in other LICENSE-*.md files in this folder.