Asger F
d7e3e9e5db
JS: Fix extraction of identifiers in EXPORT_BASE context
...
This is needed to ensure that the base of the RHS of an ImportEqualsDeclaration is bound to a namespace. That is, B below should be bound to a namespace:
import A = B.C.D;
2022-05-24 14:30:36 +02:00
Asger F
2e858db848
JS: Declare variables from ambient declarations
...
fixup
2022-05-24 14:30:36 +02:00
Erik Krogh Kristensen
4c58f9781b
add support for TypeScript 4.6
2022-03-01 09:56:21 +01:00
Asger Feldthaus
3e6389cad6
JS: Bump extractor version string
2021-12-17 10:32:00 +01:00
Asger Feldthaus
61cc84ba69
JS: Recognize leading/trailing ~ and & in mustache-tags
2021-12-17 10:31:50 +01:00
Asger Feldthaus
ce68a6d1c5
JS: Remove unneeded qualifier in static field access
2021-12-17 10:31:50 +01:00
Erik Krogh Kristensen
73f2f52ed8
use the TYPE_ONLY_IMPORT context
2021-12-01 14:54:16 +01:00
Erik Krogh Kristensen
19bbe6d276
add JavaScript support for new private fields syntax
2021-11-29 13:51:25 +01:00
Erik Krogh Kristensen
d946802057
add support for type-only import specifiers
2021-11-29 13:49:10 +01:00
Erik Krogh Kristensen
9ce248c829
update to TypeScript 4.5.2
2021-11-29 13:49:10 +01:00
Erik Krogh Kristensen
2163648b39
fix location off-by-ones with regexp parsing
2021-11-15 13:43:39 +01:00
Erik Krogh Kristensen
80919e39a2
Merge branch 'main' into extractBigReg
2021-11-12 11:45:49 +01:00
Erik Krogh Kristensen
98da532c46
dont extract regular expressions from strings that are leaves in a string concat
2021-11-10 14:11:48 +01:00
Asger F
0c6680b2c0
Revert "JS: Skip files with unsupported file encoding"
2021-11-09 09:07:54 +00:00
Erik Krogh Kristensen
f01ee5914b
add a docstring, and rename rawString -> foldedString
2021-11-03 14:19:31 +01:00
Erik Krogh Kristensen
7b0ebd3f1a
use the context to determine whether or not a node is an operand of a binop
2021-11-03 14:09:44 +01:00
Erik Krogh Kristensen
737c747dbb
early exit if string becomes too big
2021-11-03 13:28:03 +01:00
Erik Krogh Kristensen
1ba6f448cd
compute concatenated string and offset at the same time
2021-11-03 13:26:19 +01:00
Erik Krogh Kristensen
be46c1f679
remove unused import
2021-11-03 13:25:09 +01:00
Erik Krogh Kristensen
12305aae42
extract regexp literals from string concatenations
2021-10-28 10:44:33 +02:00
CodeQL CI
e5e1046c81
Merge pull request #6962 from asgerf/js/template-db-constraint-err
...
Approved by erik-krogh
2021-10-26 13:43:57 +01:00
Erik Krogh Kristensen
090fb2df10
Merge pull request #6857 from erik-krogh/fixPipes
...
JS: skip pipes and other special files when determining which files to extract
2021-10-26 13:59:40 +02:00
Asger Feldthaus
bfb1da55d6
JS: Bump extractor version string
2021-10-25 11:49:56 +02:00
Asger Feldthaus
f3e2b0b946
JS: Avoid using non-existent attribute as parent
2021-10-25 11:49:56 +02:00
Asger Feldthaus
fa0ce5380b
JS: Skip files with unsupported file encoding
2021-10-20 12:16:50 +02:00
Erik Krogh Kristensen
7d4266aea7
skip pipes and other special files when determining which files to extract
2021-10-12 14:06:41 +02:00
Tom Hvitved
364dab6990
Remove CODEQL_REDUCE_FILES_FOLDERS_RELATIONS
2021-09-22 09:43:56 +02:00
Erik Krogh Kristensen
fdbf5f73b1
add JS support for static initializers
2021-09-14 20:40:46 +02:00
Erik Krogh Kristensen
cc0d86403e
revert some type changes that are no longer needed
2021-09-14 20:40:46 +02:00
Erik Krogh Kristensen
7ce87a7118
remove stray import
2021-09-14 20:40:46 +02:00
Erik Krogh Kristensen
c8c7a1f772
remove the body field from StaticInitializer and relax the valuye type on MemberDefinition
2021-09-14 20:40:45 +02:00
Erik Krogh Kristensen
e3ed6c2523
refactor StaticInitializer into it's own class
2021-09-14 20:40:45 +02:00
Erik Krogh Kristensen
23e28ae5d4
fix typo in comment
...
Co-authored-by: Asger F <asgerf@github.com >
2021-09-14 20:40:45 +02:00
Erik Krogh Kristensen
2a03a84315
remove TODO comment
...
Co-authored-by: Asger F <asgerf@github.com >
2021-09-14 20:40:45 +02:00
Erik Krogh Kristensen
9585481d0b
add support for static initializer blocks in TypeScript
2021-09-14 20:40:45 +02:00
Erik Krogh Kristensen
02a0eed8ee
add basic support for TypeScript 4.4
2021-09-14 20:40:45 +02:00
Tom Hvitved
63e28c57cd
JavaScript: Drop redundant columns from files and folders relations
2021-09-14 10:25:37 +02:00
CodeQL CI
170a069657
Merge pull request #6403 from asgerf/js/handlebars-extraction
...
Approved by erik-krogh
2021-08-25 13:54:52 +01:00
Asger Feldthaus
2553338bce
JS: Autoformat {AST,HTML}Extractor.java
2021-08-19 14:54:05 +02:00
Asger Feldthaus
ec5e0283d5
JS: Bump extractor version string
2021-08-11 12:50:54 +02:00
Asger Feldthaus
e3e24f9880
JS: Use separate ScopeManager for template exprs
2021-08-11 12:50:54 +02:00
Asger Feldthaus
13aa511364
JS: Support TemplatePlaceholderTag.getEnclosingExpr
...
fixup! makeLocation
2021-08-11 12:50:52 +02:00
Asger Feldthaus
0a14de1741
JS: Also extract .njk files
2021-08-11 12:36:35 +02:00
Asger Feldthaus
d6dbabf9e0
JS: Ignore empty char sequences
2021-08-11 12:36:34 +02:00
Asger Feldthaus
f26e94c0db
JS: Rename to Angular-style template
2021-08-11 12:36:34 +02:00
Asger Feldthaus
66cec65bfb
JS: Format HTMLExtractor
2021-08-11 12:36:34 +02:00
Asger Feldthaus
8666bc1894
JS: Extract placeholders in HTML
2021-08-11 12:36:31 +02:00
Erik Krogh Kristensen
01a202fa10
fix cfg and dataflow for logical compound assignments
2021-08-10 12:17:59 +02:00
Asger Feldthaus
b1ce3d1c5a
JS: Do not extract binary HTML
2021-08-10 12:15:44 +02:00
Asger Feldthaus
96a2c3f2db
JS: Extract .hbs and .ejs as HTML
2021-08-10 12:15:44 +02:00