File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
javascript/ql/src/semmle/javascript Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -447,27 +447,28 @@ module AccessPath {
447447 ref .getBasicBlock ( ) = bb and
448448 // Prunes the accesses where there does not exists a read and write within the same basicblock.
449449 // This could be more precise, but doing it like this avoids massive joins.
450- hasRead ( bb ) and hasWrite ( bb )
450+ hasRead ( bb ) and
451+ hasWrite ( bb )
451452 |
452453 ref order by any ( int i | ref = bb .getNode ( i ) )
453454 ) and
454455 result = getAccessTo ( root , path , type )
455456 }
456457
457458 /**
458- * Holds if there exists an access-path read inside the basic-block `bb`.
459- *
460- * INTERNAL: This predicate is only meant to be used inside `rankedAccessPath`.
459+ * Holds if there exists an access-path read inside the basic-block `bb`.
460+ *
461+ * INTERNAL: This predicate is only meant to be used inside `rankedAccessPath`.
461462 */
462463 pragma [ noinline]
463464 private predicate hasRead ( ReachableBasicBlock bb ) {
464465 bb = getAccessTo ( _, _, AccessPathRead ( ) ) .getBasicBlock ( )
465466 }
466467
467468 /**
468- * Holds if there exists an access-path write inside the basic-block `bb`.
469- *
470- * INTERNAL: This predicate is only meant to be used inside `rankedAccessPath`.
469+ * Holds if there exists an access-path write inside the basic-block `bb`.
470+ *
471+ * INTERNAL: This predicate is only meant to be used inside `rankedAccessPath`.
471472 */
472473 pragma [ noinline]
473474 private predicate hasWrite ( ReachableBasicBlock bb ) {
You can’t perform that action at this time.
0 commit comments