Arthur Baars
dcca0e0c6c
JavaScript: switch to shared YamlPopulator
2023-04-19 08:34:38 +02:00
erik-krogh
fe5e4845b1
use 1-based column locations for diagnostics
2023-04-12 08:14:15 +02:00
Asger F
d702c7b990
Merge pull request #12759 from asgerf/js/getset-in-pattern
...
JS: Fix parsing of 'get' or 'set' pattern with a default value
2023-04-11 14:03:00 +02:00
Henry Mercer
e1b3807dfc
Merge remote-tracking branch 'origin/rc/3.9' into henrymercer/merge-back-3.9
2023-04-05 14:57:57 +01:00
Asger F
621e2e71c8
JS: Don't try to parse "get=" as a method prop
2023-04-04 16:37:28 +02:00
Asger F
eb8046daef
JS: Add trap test showing parse error
2023-04-04 16:33:13 +02:00
erik-krogh
0b4f239ab5
only set the file in the diagnostics message if the file is within the source root
2023-04-03 13:49:29 +01:00
erik-krogh
4b3a419509
just use quoteWithBackticks
2023-03-28 15:23:15 +02:00
erik-krogh
70dfa6e15c
use StringUtil.quoteWithBackticks instead of manually quoting with a single backtick
2023-03-28 12:34:44 +02:00
erik-krogh
e5e20ab42c
add backticks around the concrete parse error
2023-03-28 10:57:13 +02:00
Henry Mercer
9d05d94f49
Merge pull request #12568 from github/rc/3.9
...
Merge `rc/3.9` back to `main`
2023-03-17 12:14:31 +00:00
erik-krogh
f1094cd3d6
bump to stable release
2023-03-16 22:38:54 +01:00
erik-krogh
f3c7aed1f9
bump to RC
2023-03-16 22:37:58 +01:00
erik-krogh
e00c41c6e2
add change-note and bump version
2023-03-16 22:37:56 +01:00
erik-krogh
d47659b48e
upgrade to TypeScript 5.0 beta, and unbreak things that broke
2023-03-16 22:37:35 +01:00
Henry Mercer
74cc1a42d0
JS: Update for renamed com.semmle.util.diagnostics package
2023-03-16 18:19:10 +00:00
Arthur Baars
fbe9823a42
Merge branch 'main' into henrymercer/polish-diagnostics
2023-03-14 23:42:33 +01:00
Henry Mercer
1394abcf98
JS: Update diagnostics IDs for consistency with rules
2023-03-14 21:44:19 +00:00
Henry Mercer
1f63c5d5e4
JS: Update parse error diagnostic name for consistency
2023-03-14 21:43:32 +00:00
Asger F
feb7c49006
Merge pull request #12382 from asgerf/js/import-assertion
...
JS: Support import assertions
2023-03-14 14:56:32 +01:00
Asger F
d74da30fc7
JS: Include trap test for trailing commas
2023-03-14 13:15:12 +01:00
Arthur Baars
1a70297662
JS: fix NPE
2023-03-10 12:52:41 +01:00
Arthur Baars
7ab0f88f78
JS: add link to docs to parse error diagnostic
2023-03-08 16:47:43 +01:00
Arthur Baars
51599b3cae
Address review comments
2023-03-06 18:40:29 +01:00
Asger F
1264029282
JS: Bump extractor version string
2023-03-03 12:21:20 +01:00
Asger F
7a55b003d2
JS: Fix location of assert clause
2023-03-03 12:21:20 +01:00
Asger F
38194c6ae7
JS: Extract import assertions to DB
2023-03-03 12:21:20 +01:00
Asger F
f454151e7a
JS: Convert TypeScript import assertions
2023-03-03 12:21:20 +01:00
Asger F
3af085afcb
JS: Drive-by allow trailing commas in dynamic imports
2023-03-03 12:21:20 +01:00
Asger F
8d9060f1f9
JS: Store in the Java AST
2023-03-03 12:21:03 +01:00
Asger F
c715de2a10
JS: parse import assertions without storing in AST
2023-03-03 12:21:03 +01:00
Asger F
5fdc293d82
JS: Add trap test for import assertions
2023-03-03 12:21:03 +01:00
erik-krogh
fc9e63275f
only print a constant when catching an OOM
2023-03-02 22:14:29 +01:00
Erik Krogh Kristensen
094a2b0c46
Apply suggestions from code review
...
Co-authored-by: Asger F <asgerf@github.com >
2023-03-02 22:14:17 +01:00
erik-krogh
88810420b1
add location to the parse-error diagnostics
2023-03-02 14:54:58 +01:00
erik-krogh
c460eae2e1
implement diagnostics
2023-03-02 14:54:54 +01:00
Asger F
b6ec9464eb
JS: Remove trailing whitespace
2023-03-01 15:29:51 +01:00
erik-krogh
505168f24b
fix upper-case .html.erb files
2023-02-27 17:19:43 +01:00
erik-krogh
271cc6b961
remove lefterover debug comment
2023-02-17 09:50:22 +01:00
erik-krogh
25a8469586
update expected output, now that .html.erb files are actually extracted
2023-02-15 10:28:05 +01:00
erik-krogh
710e79b2d5
bump extractor version
2023-02-15 10:26:00 +01:00
erik-krogh
f9b3a5b5e6
actually extract .html.erb files
2023-02-15 10:26:00 +01:00
Henning Makholm
3e85e9f7d9
remove com.semmle.util.data.Option from from extractor code interface II
...
com.semmle.util.data.Option is going away. Switch the single
cross-repo call that mentions it to use the new Option-less overload
that was introduced in semmle-code PR 44626.
2022-12-16 19:03:20 +01:00
erik-krogh
6289ae329b
fix a race-condition
2022-12-01 15:27:41 +01:00
erik-krogh
cddc9db690
change back to the old order of extracting externs before Xml
2022-11-30 15:46:46 +01:00
erik-krogh
de5ffd5cfa
bump extractor version
2022-11-29 21:32:43 +01:00
Erik Krogh Kristensen
d0cf709d2e
use proper path construction
...
Co-authored-by: Asger F <asgerf@github.com >
2022-11-29 21:30:50 +01:00
erik-krogh
63a5f8965e
fix tests
2022-11-29 14:08:21 +01:00
erik-krogh
136b6db2ad
only delete the src/ folder if it was empty
2022-11-29 13:42:27 +01:00
erik-krogh
f3f7a89ef8
make the JS autobuilder consistent with Ruby when no JS code was detected
2022-11-29 13:42:27 +01:00