Skip to content

Commit f59c48e

Browse files
author
Stephan Brandauer
committed
autoformatter
1 parent caf3959 commit f59c48e

File tree

1 file changed

+5
-8
lines changed
  • javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling

1 file changed

+5
-8
lines changed

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,7 @@ private module FunctionNames {
191191
}
192192

193193
/** Get a name of a supported generic token-based feature. */
194-
string getASupportedFeatureName() {
195-
result = any(EndpointFeature f).getName()
196-
}
194+
string getASupportedFeatureName() { result = any(EndpointFeature f).getName() }
197195

198196
/**
199197
* Generic token-based features for ATM.
@@ -352,7 +350,7 @@ class ContextSurroundingFunctionParameters extends EndpointFeature,
352350
* ```javascript
353351
* const div = document.createElement('div');
354352
* div.innerHTML = endpoint; // feature value is 'innerHTML'
355-
*
353+
*
356354
* foo({x: endpoint}); // feature value is 'x'
357355
* ```
358356
*/
@@ -623,17 +621,16 @@ private module SyntacticUtilities {
623621
* - invocations
624622
*
625623
* Unknown cases and property names results in `?`.
626-
*
624+
*
627625
* # Examples
628-
*
626+
*
629627
* - The node `x.foo` will have the simple access path `x.foo`.
630628
* - In the following file, the simple access path will be `import("./foo").bar.baz`:
631-
*
629+
*
632630
* ```javascript
633631
* import * as lib from "./foo"
634632
* console.log(lib.bar.baz());
635633
* // ^^^^^^^^^^^ node
636-
*
637634
*/
638635
string getSimpleAccessPath(DataFlow::Node node) {
639636
exists(Expr e | e = node.asExpr().getUnderlyingValue() |

0 commit comments

Comments
 (0)