File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
javascript/ql/lib/semmle/javascript Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -794,7 +794,7 @@ module API {
794
794
}
795
795
796
796
/**
797
- * Holds if `ref` is both a use and def-node that should an incoming edge from `base` labelled `lbl`.
797
+ * Holds if `ref` corresponds to both a use and def-node that should have an incoming edge from `base` labelled `lbl`.
798
798
*
799
799
* This happens because the decorated value escapes into the decorator function, and is then replaced
800
800
* by the function's return value. In the JS analysis we generally assume decorators return their input,
@@ -847,8 +847,8 @@ module API {
847
847
* Since fields do not have their own data-flow nodes, we generate a node for each read or write.
848
848
* For property writes, the right-hand side becomes a def-node and property reads become use-nodes.
849
849
*
850
- * For accessors, we generate nodes both internally in the accessor, and for each use of the accessor. This
851
- * predicate only gets the uses.
850
+ * For accessors this predicate computes each use of the accessor.
851
+ * The return value inside the accessor is computed by the `decoratorRhsEdge` predicate.
852
852
*/
853
853
private predicate decoratorPropEdge ( TApiNode base , Label:: ApiLabel lbl , DataFlow:: PropRef ref ) {
854
854
exists ( MemberDefinition fieldLike , DataFlow:: ClassNode cls |
You can’t perform that action at this time.
0 commit comments