Skip to content

Commit c4c4d28

Browse files
esbenaStephan Brandauer
authored andcommitted
improve feature documentation
1 parent a8c3cb2 commit c4c4d28

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling

javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,8 @@ private module SyntacticUtilities {
453453
*
454454
* Supports:
455455
* - variable reads (including `this` and `super`)
456+
* - imports
457+
* - await
456458
* - property reads
457459
* - invocations
458460
*
@@ -488,6 +490,13 @@ private module SyntacticUtilities {
488490
)
489491
}
490492

493+
/**
494+
* Gets the imported path.
495+
*
496+
* XXX To avoid teaching the ML model about npm packages, only relative paths are supported
497+
*
498+
* Unknown paths result in `?`.
499+
*/
491500
string getSimpleImportPath(Import i) {
492501
if exists(i.getImportedPath().getValue())
493502
then

0 commit comments

Comments
 (0)