Asger Feldthaus
a7cdf532fa
JS: Parse mustache-style tags as expressions
2021-08-10 12:15:43 +02:00
Asger Feldthaus
d1c31db06f
JS: Reset implicit variable scope when leaving template expr
2021-08-10 12:15:43 +02:00
Asger Feldthaus
88500a3fa3
JS: Update TRAP test output
2021-08-09 11:19:08 +02:00
Erik Krogh Kristensen
d3ea58002d
fix a case in `union` where order wasn't necessarily preserved
2021-08-05 08:48:15 +02:00
Erik Krogh Kristensen
6ca53c8b25
a little more special casing in CFGExtractor union
2021-08-05 08:32:56 +02:00
Erik Krogh Kristensen
7e422a656a
remove unused imports
2021-08-04 23:41:36 +02:00
Erik Krogh Kristensen
ff9943906d
micro optimize the hot loops by adding special cases and removing streams
2021-08-04 23:35:58 +02:00
Erik Krogh Kristensen
fe551f1359
remove the last use of `createCollection`
2021-08-03 21:54:55 +02:00
Erik Krogh Kristensen
85d6bfe044
move createCollection to the only place it is used
2021-08-03 16:55:44 +02:00
Erik Krogh Kristensen
ef5ea437c3
remove raw Object type where possible, and simplify accordingly
2021-08-03 16:55:38 +02:00
Erik Krogh Kristensen
116679d8b6
simplify `union`
2021-08-03 08:59:33 +02:00
Erik Krogh Kristensen
8f613b6b16
rename seq to visitSequence
2021-08-03 08:59:33 +02:00
Erik Krogh Kristensen
e56e56c14e
use `Collection` instead of `Iterable`
2021-08-03 08:59:33 +02:00
Erik Krogh Kristensen
1479376f23
rename `visit` to `visitWithSuccessors` to avoid ambiguity
2021-08-03 08:59:33 +02:00
Erik Krogh Kristensen
4289875747
make utility methods static
2021-08-03 08:59:33 +02:00
Erik Krogh Kristensen
94a593b208
rename `entry` and `exit` to `getEntryNode` and `getExitNode` respectively
2021-08-03 08:59:33 +02:00
Erik Krogh Kristensen
366a16f700
rename the `V` class to WriteSuccessorsVisitor
2021-08-03 08:59:33 +02:00
Erik Krogh Kristensen
c059ceaee9
add qldoc to `union(xs, ys)`
2021-08-03 08:59:33 +02:00
Erik Krogh Kristensen
8db10aeb9d
add JavaDoc to `createIterable` and `createReversedIterable`
2021-08-03 08:59:33 +02:00
Erik Krogh Kristensen
8fdcd917ee
rename `foreach` and `hcaerof` to `createIterable` and `createReversedIterable` respectively
2021-08-03 08:59:32 +02:00
Erik Krogh Kristensen
014728a66a
implement `hcaerof` in terms of `foreach`
2021-08-03 08:59:32 +02:00
Erik Krogh Kristensen
ca26b5ebbc
rename `succ` to `writeSuccessor`/`writeSuccessors`
2021-08-03 08:59:32 +02:00
Asger Feldthaus
8177b5747a
JS: Bump TypeScript version to 4.3.5
2021-07-02 10:57:27 +02:00
Asger Feldthaus
53bef94b75
JS: Extractor version bump
2021-06-15 09:34:54 +02:00
Asger Feldthaus
bc375196d1
JS: Extract script tags with lang=tsx
2021-06-14 13:40:53 +02:00
Erik Krogh Kristensen
69d6c74e7e
fix typescript version
2021-06-02 21:56:47 +02:00
Erik Krogh Kristensen
2cc2d116bc
bump extractor version
2021-05-31 13:08:24 +02:00
Erik Krogh Kristensen
35d7fda5e2
update typescript to 4.3 in the extractor
2021-05-31 13:08:09 +02:00
Asger Feldthaus
f8570bb293
JS: Update TRAP
2021-04-15 10:16:46 +01:00
Asger Feldthaus
b4a2a9db25
JS: Fix extraction of non-substitution template literal types
2021-04-15 09:23:45 +01:00
Asger Feldthaus
acc28df785
JS: Bugfix in tsconfig file inclusion handling
2021-04-01 16:33:05 +01:00
Erik Krogh Kristensen
b565e3de91
expand outDir support in tsconfig files
2021-03-19 23:13:51 +01:00
Erik Krogh Kristensen
b3ee70f4f7
update expected output for trap test
2021-03-08 13:06:17 +01:00
Erik Krogh Kristensen
bff59a1aaa
fix parse error in regular expressions
2021-03-08 12:04:11 +01:00
Erik Krogh Kristensen
00cfc77fc0
Revert "fix file lookup for exclude patterns"
...
This reverts commit 74630b0fd8
.
2021-02-26 10:28:20 +01:00
Erik Krogh Kristensen
5091bb652f
bump extractor version
2021-02-24 09:39:09 +01:00
Erik Krogh Kristensen
5ae3c5952c
support abstract signatures
2021-02-24 09:34:53 +01:00
Erik Krogh Kristensen
f385c55f2c
add support for rest types elements in the middle of a tuple
2021-02-24 09:34:53 +01:00
Erik Krogh Kristensen
74630b0fd8
fix file lookup for exclude patterns
2021-02-24 09:34:53 +01:00
Erik Krogh Kristensen
8cf28c6186
update TypeScript to 4.2
2021-02-24 09:34:47 +01:00
Asger Feldthaus
e9c0f170a1
JS: Restrict names of extracted HTML attributes
2021-02-19 23:28:28 +00:00
alexet
8dd5a7e7c7
Javascript Extractor: Update <tt> tages to <code>
2021-02-09 12:10:09 +00:00
Asger Feldthaus
0ceb8aa638
JS: Bump extractor version
2021-02-05 21:55:43 +00:00
Asger Feldthaus
236b7c5887
JS: Tolerate JSON in script tags
2021-02-05 21:54:50 +00:00
Asger Feldthaus
b36593a76b
JS: Fix broken link tag
2021-01-22 10:11:16 +00:00
Asger Feldthaus
0ffa720d3b
JS: Capitalize other enum constants
2021-01-22 09:48:11 +00:00
Asger Feldthaus
c257f6617f
JS: Capitalize enum members in ScopeKind and TopLevelKind
2021-01-22 09:33:25 +00:00
Asger Feldthaus
bb6bd9168e
JS: Update HTML TRAP tests output
2021-01-18 12:19:09 +00:00
Asger Feldthaus
1b4a4ea2fa
JS: Bump extractor version string
2021-01-18 12:19:09 +00:00
Asger Feldthaus
2ba98da107
JS: Only extract local vars in TemplateTopLevel
...
Angular template expressions cannot refer to global variables, any
unqualified identifier is a reference to a property provided by the
component.
We extract them as implicitly declared local variables which the
QL model can then connect with data flow steps.
2021-01-18 12:19:08 +00:00
Asger Feldthaus
faad466aa8
JS: Add ScopeKind enum
2021-01-18 12:19:08 +00:00
Asger Feldthaus
07cfceee19
JS: TRAP test for angular templates
2021-01-18 12:19:08 +00:00
Asger Feldthaus
97f7cb4dc1
JS: Track location information using SourceMaps
2021-01-18 12:19:08 +00:00
Asger Feldthaus
f24af58a60
JS: Extract mapping from HTML node to parent Expression
2021-01-18 12:19:08 +00:00
Asger Feldthaus
3b666a5646
JS: Extract mapping from TopLevel to parent HTML node
2021-01-18 12:19:08 +00:00
Asger Feldthaus
8848ee2d10
JS: Extract HTML from inline templates
2021-01-18 12:19:08 +00:00
Asger Feldthaus
1ab36dc81f
JS: Flow through *ngFor loops
2021-01-18 12:19:08 +00:00
Asger Feldthaus
29dd8470d5
JS: Fix offset of *ngFor snippet
2021-01-18 12:18:27 +00:00
Asger Feldthaus
77fcf3d8a2
JS: Support postfix "!" operator in templates
2021-01-18 12:16:13 +00:00
Asger Feldthaus
c08ba1416d
JS: Add new SourceType for angular templates
2021-01-18 12:16:13 +00:00
Asger Feldthaus
4b5a861ee6
JS: Add TopLevelKind enum
2021-01-18 12:16:13 +00:00
Asger Feldthaus
9b99f56d44
JS: isAngularTemplateAttributeName
2021-01-18 12:16:13 +00:00
Asger Feldthaus
ed27c8b13f
JS: Add test and fix bug in pipe parser
2021-01-18 12:16:13 +00:00
Asger Feldthaus
16a2a60b9a
JS: Add AngularPipeRef
2021-01-18 12:16:13 +00:00
Asger Feldthaus
928a382ad5
JS: Add parser for angular expressions
2021-01-18 12:16:13 +00:00
Asger Feldthaus
5fa3b17956
JS: Tolerate Angular-specific HTML attribute names
2021-01-15 14:51:10 +00:00
Asger Feldthaus
f33630aab6
JS: Reformat HTMLExtractor
2021-01-15 14:51:10 +00:00
Max Schaefer
0ccfe4f135
JavaScript: Teach autobuilder to include `codeql-javascript-*.json` files.
2020-12-09 11:35:51 +00:00
Sauyon Lee
17e450f227
JavaScript: Factor out HTML extractor
2020-12-06 05:04:10 -08:00
Asger Feldthaus
ec6b8d6d3a
JS: Remove old workaround for template literals in import
2020-12-03 13:58:40 +00:00
Asger Feldthaus
5676891e44
JS: Add TemplateLiteralTypeExpr
2020-12-03 13:58:39 +00:00
Asger Feldthaus
9da5c5cc70
JS: Update to TypeScript 4.1.2
2020-12-03 13:58:39 +00:00
Erik Krogh Kristensen
044fbc0b49
optimize the regexp parser
2020-11-11 21:13:11 +01:00
Erik Krogh Kristensen
de6b21986c
bump extractor version string
2020-11-11 21:10:03 +01:00
Erik Krogh Kristensen
6b7f8dd505
fix parse errors related to char escapes and char ranges
2020-11-10 21:02:29 +01:00
Asger Feldthaus
f6c0972523
JS: Guard other uses of Gson.fromJson
2020-10-26 09:54:55 +00:00
Asger Feldthaus
fc12b0bb5e
JS: Do not crash on empty package.json file
2020-10-26 09:54:51 +00:00
Aditya Sharad
f7bd835dd8
JavaScript: Include .github hidden folders in autobuild
...
These folders are likely to contain GitHub-specific YAML files, such as Actions workflow configurations.
Including them by default allows analysis of such code without further configuration.
User-configured exclusions will still be respected for these folders.
2020-10-20 12:56:07 -07:00
Asger Feldthaus
396f353397
JS: Reapply fixed to javadoc
2020-10-06 14:06:10 +01:00
Asger Feldthaus
5374b66029
JS: Make CachedOperation private
2020-10-06 11:13:04 +01:00
Asger F
433e3e7e4e
JS: Expand doc string in installFromTarballurl
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
2020-10-06 11:13:04 +01:00
Asger F
4e2b990d14
Add doc string to semVerToken
...
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
2020-10-06 11:13:04 +01:00
Asger Feldthaus
0ddd825ea6
JS: Address some more review comments
2020-10-06 11:13:04 +01:00
Asger Feldthaus
b1bd612232
JS: Undo unused export
2020-10-06 11:13:04 +01:00
Asger Feldthaus
26b7d57a94
JS: Parse preferred version directly
2020-10-06 11:13:04 +01:00
Asger Feldthaus
85224aad34
JS: Address some review comments
2020-10-06 11:13:04 +01:00
Asger Feldthaus
57a588ceb6
JS: Share extraction results via symlinks
2020-10-06 11:13:03 +01:00
Asger Feldthaus
c84e43d95b
JS: Replace yarn with manual dependency resolution
2020-10-06 11:13:03 +01:00
Asger Feldthaus
f5c3aa3d39
JS: Handle types/typings fields in package.json
2020-10-06 11:13:03 +01:00
Asger Feldthaus
0220ab6784
JS: Move some TypeScript classes into .ts.extractor
2020-10-06 11:13:03 +01:00
Asger Feldthaus
fee99105da
JS: Remove tslint dependency
2020-10-05 11:53:58 +01:00
Erik Krogh Kristensen
fbd62abd64
prevent crash when TemplateLiteral is used in import
2020-10-01 11:26:49 +02:00
Max Schaefer
0ccbaf9e88
JavaScript: Handle empty `package.json` files gracefully.
2020-09-25 12:12:39 +01:00
CodeQL CI
19316930cd
Merge pull request #4310 from asgerf/js/extract-xml-with-codeql
...
Approved by aibaars, esbena
2020-09-24 10:14:46 -07:00
CodeQL CI
475519c9ee
Merge pull request #4267 from asgerf/js/log-typescript-memory
...
Approved by esbena
2020-09-22 08:51:51 -07:00
Asger Feldthaus
d34bd51f61
JS: Call codeql.exe instead of codeql.cmd
2020-09-22 10:28:40 +01:00
Asger Feldthaus
bc09bc45bc
JS: Concatenate paths properly
2020-09-22 10:17:30 +01:00
Asger Feldthaus
e70bb20f34
JS: Support XML extraction when run with codeql
2020-09-21 17:21:54 +01:00
Erik Krogh Kristensen
9f1b3d61b9
add test for numeric separators
2020-09-21 10:50:06 +02:00
Erik Krogh Kristensen
0dbdbfa659
bump extractor version
2020-09-21 10:49:50 +02:00
Erik Krogh Kristensen
87d4e13584
added support for ES2021 assignment operators
2020-09-21 10:49:50 +02:00
Asger Feldthaus
d728c3948c
JS: Log the amount of memory passed to TypeScript process
2020-09-15 09:17:42 +01:00
Asger Feldthaus
1d92cbb655
JS: Bump extractor version string
2020-09-12 09:22:12 +01:00
Erik Krogh Kristensen
05e0d1a02d
renamed "importmetaexpr" to "import_meta_expr"
2020-09-04 11:54:40 +02:00
Erik Krogh Kristensen
4b99d056d2
renamed "functionsentexpr" to "function_sent_expr"
2020-09-04 11:54:32 +02:00
Erik Krogh Kristensen
2e0d886d2b
renamed "newtargetexpr" to "newtarget_expr"
2020-09-04 11:54:26 +02:00
Erik Krogh Kristensen
22bce641b7
renamed "isAsync" to "is_async"
2020-09-04 11:52:16 +02:00
Erik Krogh Kristensen
ba645b555f
renamed "hasRestParameter" to "has_rest_parameter"
2020-09-04 11:52:15 +02:00
Erik Krogh Kristensen
b3f7c26669
renamed "isGenerator" to "is_generator"
2020-09-04 11:52:14 +02:00
Erik Krogh Kristensen
a57f93b41e
renamed "unicodePropertyEscapeValue" to "unicode_property_escapevalue"
2020-09-04 11:52:13 +02:00
Erik Krogh Kristensen
3ed310fb7b
renamed "unicodePropertyEscapeName" to "unicode_property_escapename"
2020-09-04 11:52:12 +02:00
Erik Krogh Kristensen
acc13ddd04
renamed "namedBackref" to "named_backref"
2020-09-04 11:52:12 +02:00
Erik Krogh Kristensen
23127cb4af
renamed "charClassEscape" to "char_class_escape"
2020-09-04 11:52:11 +02:00
Erik Krogh Kristensen
21733afc32
renamed "regexpConstValue" to "regexp_const_value"
2020-09-04 11:52:10 +02:00
Erik Krogh Kristensen
9a1a439c76
renamed "isInverted" to "is_inverted"
2020-09-04 11:52:09 +02:00
Erik Krogh Kristensen
fbcd3dd893
renamed "isNamedCapture" to "is_named_capture"
2020-09-04 11:52:08 +02:00
Erik Krogh Kristensen
2dc9022aa6
renamed "isCapture" to "is_capture"
2020-09-04 11:52:08 +02:00
Erik Krogh Kristensen
35b5b660c5
renamed "rangeQuantifierUpperBound" to "range_quantifier_upper_bound"
2020-09-04 11:52:07 +02:00
Erik Krogh Kristensen
defbee2567
renamed "rangeQuantifierLowerBound" to "range_quantifier_lower_bound"
2020-09-04 11:52:06 +02:00
Erik Krogh Kristensen
0962af51d2
renamed "isGreedy" to "is_greedy"
2020-09-04 11:52:05 +02:00
Erik Krogh Kristensen
37432232b8
renamed "regexpParseErrors" to "regexp_parse_errors"
2020-09-04 11:52:05 +02:00
Erik Krogh Kristensen
fdb615fb91
renamed "jsParseErrors" to "js_parse_errors"
2020-09-04 11:52:04 +02:00
Erik Krogh Kristensen
b5d6cbd5b3
renamed "hasAssertsKeyword" to "has_asserts_keyword"
2020-09-04 11:52:03 +02:00
Erik Krogh Kristensen
fc7f024147
renamed "isOptionalParameterDeclaration" to "is_optional_parameter_declaration"
2020-09-04 11:52:02 +02:00
Erik Krogh Kristensen
3f3b4d65bd
renamed "hasDefiniteAssignmentAssertion" to "has_definite_assignment_assertion"
2020-09-04 11:52:01 +02:00
Erik Krogh Kristensen
8ae48bbf8b
renamed "isOptionalMember" to "is_optional_member"
2020-09-04 11:52:01 +02:00
Erik Krogh Kristensen
8c969f0539
renamed "hasTypeKeyword" to "has_type_keyword"
2020-09-04 11:52:00 +02:00
Erik Krogh Kristensen
007447b0ad
renamed "hasReadonlyKeyword" to "has_readonly_keyword"
2020-09-04 11:51:59 +02:00
Erik Krogh Kristensen
4b74c1d4b3
renamed "hasProtectedKeyword" to "has_protected_keyword"
2020-09-04 11:51:58 +02:00
Erik Krogh Kristensen
719c0d2030
renamed "hasPrivateKeyword" to "has_private_keyword"
2020-09-04 11:51:58 +02:00
Erik Krogh Kristensen
82ddbc3b47
renamed "hasPublicKeyword" to "has_public_keyword"
2020-09-04 11:51:57 +02:00
Erik Krogh Kristensen
29e5bdb4d7
renamed "isAbstractClass" to "is_abstract_class"
2020-09-04 11:51:56 +02:00
Erik Krogh Kristensen
a0afcaa3a8
renamed "isConstEnum" to "is_const_enum"
2020-09-04 11:51:55 +02:00
Erik Krogh Kristensen
ac345fbecd
renamed "isAbstractMember" to "is_abstract_member"
2020-09-04 11:51:54 +02:00
Erik Krogh Kristensen
2c3b3e7173
renamed "isStatic" to "is_static"
2020-09-04 11:51:54 +02:00
Erik Krogh Kristensen
10439fb522
renamed "isMethod" to "is_method"
2020-09-04 11:51:53 +02:00
Erik Krogh Kristensen
6382f6d202
renamed "isComputed" to "is_computed"
2020-09-04 11:51:52 +02:00
Erik Krogh Kristensen
2204b1e92d
renamed "isArgumentsObject" to "is_arguments_object"
2020-09-04 11:51:51 +02:00
Erik Krogh Kristensen
3fb561d72b
renamed "isDelegating" to "is_delegating"
2020-09-04 11:51:50 +02:00
Erik Krogh Kristensen
ba600acd5e
renamed "arraySize" to "array_size"
2020-09-04 11:51:50 +02:00
Erik Krogh Kristensen
83b89fa52d
renamed "exprContainers" to "expr_containers"
2020-09-04 11:51:49 +02:00
Erik Krogh Kristensen
30ba7d29a1
renamed "enclosingStmt" to "enclosing_stmt"
2020-09-04 11:51:48 +02:00
Erik Krogh Kristensen
99f8887844
renamed "isForAwaitOf" to "is_for_await_of"
2020-09-04 11:51:47 +02:00
Erik Krogh Kristensen
621e702e99
renamed "hasDeclareKeyword" to "has_declare_keyword"
2020-09-04 11:51:46 +02:00
Erik Krogh Kristensen
49b71d515c
renamed "isInstantiated" to "is_instantiated"
2020-09-04 11:51:45 +02:00
Erik Krogh Kristensen
76f728aacd
renamed "jumpTargets" to "jump_targets"
2020-09-04 11:51:45 +02:00
Erik Krogh Kristensen
059d72858a
renamed "stmtContainers" to "stmt_containers"
2020-09-04 11:51:44 +02:00
Erik Krogh Kristensen
07fd747069
renamed "isClosureModule" to "is_closure_module"
2020-09-04 11:51:43 +02:00
Erik Krogh Kristensen
2a2901f6ae
renamed "isES2015Module" to "is_es2015_module"
2020-09-04 11:51:42 +02:00
Erik Krogh Kristensen
8782c2b8e0
renamed "isNodejs" to "is_nodejs"
2020-09-04 11:51:41 +02:00