mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Update javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/FunctionBodyFeatures.qll
Co-authored-by: Henry Mercer <henrymercer@github.com>
This commit is contained in:
@@ -127,7 +127,7 @@ ASTNode getAnASTNodeWithAFeature(Function f) {
|
||||
result = getAnASTNodeToFeaturize(f)
|
||||
}
|
||||
|
||||
/** Returns the number of source-code characters in a function. */
|
||||
/** Returns the number of source-code characters in a function. */
|
||||
int getNumCharsInFunction(Function f) {
|
||||
result =
|
||||
strictsum(ASTNode node | node = getAnASTNodeWithAFeature(f) | getTokenizedAstNode(node).length())
|
||||
|
||||
Reference in New Issue
Block a user