Formatting fixes

This commit is contained in:
Tiferet Gazit
2021-11-22 20:02:28 +00:00
committed by GitHub
parent da5f664265
commit a507d6dc1d

View File

@@ -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
) {