erik-krogh
5e91b2f5bc
fix the parsing of boolean environment variables in the TypeScript extractor
2023-12-14 14:40:10 +01:00
erik-krogh
72e99b5b9d
rename extractor environment variable to CODEQL_EXTRACTOR_JAVASCRIPT_OPTION_SKIP_TYPES
2023-12-14 12:52:49 +01:00
erik-krogh
896432b646
add environment variable to skip extraction of types in TypeScript
2023-12-12 12:25:00 +01:00
erik-krogh
cf31ef4960
make sure reset() is called when manually invoking the TS extractor, so environment-variables are read
2023-12-12 10:51:09 +01:00
erik-krogh
c246a9c12c
move TypeVarDepth further up, so its declared before it's used
2023-12-12 10:34:42 +01:00
erik-krogh
13a01e1545
fix a this reference
...
`this` didn't refer to anything specific, and it was in fact `undefined` in the context it was invoked. There was already a `let typeTable = this;` further up (where `this` refers to the class instance), so I used `typeTable`.
2023-12-12 10:32:31 +01:00
erik-krogh
ca95a6e9cf
exclude all the lib.d.ts files when running the TS extractor directly
...
e.g. the `lib.es5.d.ts` file was not excluded
2023-12-12 10:29:09 +01:00
Jorge
8abd1d9855
Merge branch 'main' into seclab/dotjs
2023-11-30 19:42:18 +01:00
Jorge
91bc043f30
Add .html.dot to Autobuild.java
2023-11-30 19:38:24 +01:00
erik-krogh
5611a3e417
use exact version
2023-11-20 20:48:51 +01:00
erik-krogh
10b3efa667
update to the stable version of TypeScript 5.3
2023-11-20 20:32:24 +01:00
erik-krogh
dde9a7cd7e
Merge branch 'main' into ts53-ts
2023-11-20 20:31:00 +01:00
Cornelius Riemenschneider
97fd2033f1
Take our node, not the one that comes first on the PATH.
2023-11-09 22:00:00 +01:00
Cornelius Riemenschneider
b4ec13235d
Address review.
2023-11-09 09:40:29 +01:00
Cornelius Riemenschneider
6b37d2009b
Merge branch 'main' into criemen/js-bazel
2023-11-08 16:11:47 +01:00
Erik Krogh Kristensen
f643fd7d74
Merge pull request #14716 from erik-krogh/invalid-main
...
JS: catch when the main: path is invalid on Windows
2023-11-08 08:33:58 +01:00
erik-krogh
ae577d1e44
catch when the main: path is invalid on Windows
2023-11-07 17:42:21 +01:00
Jorge
b08d57a85f
Add {{! to TEMPLATE_EXPR_OPENING_TAG
2023-11-06 20:40:00 +00:00
Cornelius Riemenschneider
be02512dfe
Add a build system for the junit tests.
...
This is a bit more complicated than our usual setup, as we both need to
unzip the typescript parser wrapper, and make node accessible on the path.
2023-11-06 17:58:28 +01:00
Cornelius Riemenschneider
52fcc5f435
Export test data directories.
2023-11-06 13:47:56 +01:00
Cornelius Riemenschneider
63854e36b4
Use the TestPaths helper to lookup files.
2023-11-06 13:47:56 +01:00
Cornelius Riemenschneider
a773532d07
Refactor JS test suite to be more in line with other Java projects.
...
Therefore, we move the test suite out of the `src` directory.
2023-11-06 13:47:56 +01:00
Cornelius Riemenschneider
6c7ea86a12
Introduce a bazel-based build for the entire JS pack.
2023-11-06 13:47:56 +01:00
Cornelius Riemenschneider
465eb00228
More fine-grained dependency on internal extractors.
2023-11-06 13:44:28 +01:00
Arthur Baars
7f4bcdfa64
Rename test files
2023-11-06 13:38:33 +01:00
Arthur Baars
eecf32db4d
Add tests for deprecated 'assert' syntax
2023-11-06 13:38:33 +01:00
Arthur Baars
3d45944649
Rename 'assertions' to 'attributes' in JS extractor
2023-11-06 13:38:32 +01:00
Arthur Baars
bd62ec294e
Support TS 5.3 import attributes (previously import assertions)
2023-11-06 13:38:32 +01:00
Arthur Baars
1067dd9dd3
Auto-format
2023-11-06 13:38:32 +01:00
Arthur Baars
ec075f8fbe
Upgrade typescript to 5.3.1-rc
2023-11-06 13:38:24 +01:00
erik-krogh
abcb5a7a95
remove the remaining yarn files
2023-11-05 19:24:59 +01:00
erik-krogh
302199a74a
fix TypeExprKinds crashing on a ThisExpression
2023-10-26 16:33:54 +02:00
Cornelius Riemenschneider
42c343e820
Address review
2023-10-24 16:03:35 +02:00
Cornelius Riemenschneider
9ba32a0440
Add bazel-based build for the Javascript extractor.
2023-10-20 16:23:50 +02:00
Cornelius Riemenschneider
de85f2bbf8
Fix errorprone violations.
2023-10-20 16:23:35 +02:00
Arthur Baars
0e3369f93f
Merge pull request #14484 from aibaars/ts53-js
...
JS: Support import attributes
2023-10-16 10:47:49 +02:00
erik-krogh
9080e84fc9
add support for extracting .jsp files
2023-10-13 12:09:27 +02:00
Arthur Baars
1f4fcf1f31
Rename test files
2023-10-12 13:00:39 +02:00
Arthur Baars
07172da1bc
Add tests for deprecated 'assert' syntax
2023-10-12 12:51:13 +02:00
Arthur Baars
f7b02c01dd
Rename getAssertion() to getAttributes() in the extractor
2023-10-12 12:51:13 +02:00
Arthur Baars
1d9ee5da3c
Rename 'assertions' to 'attributes' in JS extractor
2023-10-12 12:49:25 +02:00
Arthur Baars
b936e91fe9
Support JS import attributes (previously import assertions)
2023-10-12 11:43:42 +02:00
erik-krogh
c6b8c444d0
fix out of bounds string access in isUsingDecl
2023-09-13 21:53:49 +02:00
Asger F
e08a873829
JS: Tolerate TypeScript files being requested out of order
2023-09-08 10:31:04 +02:00
erik-krogh
984795ee46
fix off-by-one
2023-08-30 13:29:23 +02:00
erik-krogh
2643ab3dbf
using is not a keyword
2023-08-30 08:44:59 +02:00
erik-krogh
be2712698b
add support for await using in the JS parser
2023-08-28 09:34:13 +02:00
erik-krogh
1cbee6a8a4
delete leftover todo comment that was implemented
2023-08-28 08:40:35 +02:00
erik-krogh
56f1ff8af1
bump from release candidate to final release
2023-08-24 20:32:27 +02:00
erik-krogh
dc454d3a72
add support for the new using keyword in TypeScript
2023-08-24 20:30:26 +02:00