From a507d6dc1d80ae7c33e3998b76adb744a0583ea7 Mon Sep 17 00:00:00 2001 From: Tiferet Gazit Date: Mon, 22 Nov 2021 20:02:28 +0000 Subject: [PATCH] Formatting fixes --- .../adaptivethreatmodeling/EndpointFeatures.qll | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll b/javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll index 90ce685ecbe..f7429288beb 100644 --- a/javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll +++ b/javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll @@ -217,13 +217,12 @@ module NeighborhoodBodies { /** Count number of descendants of an AST node */ int getNumDescendents(Raw::AstNode node) { result = count(node.getAChildNode*()) } - private ASTNode getContainer(ASTNode node) { - result = node.getContainer() - } + private ASTNode getContainer(ASTNode node) { result = node.getContainer() } /** Return the AST node that is outermost enclosing function (as an AST Node) */ Raw::AstNode getOutermostEnclosingFunction(Raw::AstNode node) { - result = Raw::astNode(getContainer*(node.getNode())) and result.getContainer() instanceof TopLevel + result = Raw::astNode(getContainer*(node.getNode())) and + result.getContainer() instanceof TopLevel } /** @@ -319,9 +318,9 @@ private module AccessPaths { } /** - * Get the access path for the node. This includes structural information like `member`, `param`, - * and `functionalarg` if `includeStructuralInfo` is true. - */ + * Get the access path for the node. This includes structural information like `member`, `param`, + * and `functionalarg` if `includeStructuralInfo` is true. + */ predicate accessPaths( API::Node node, Boolean includeStructuralInfo, string accessPath, string apiName ) {