Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8924aa3 commit 46b996aCopy full SHA for 46b996a
1 file changed
javascript/ql/src/semmle/javascript/Expr.qll
@@ -29,9 +29,10 @@ class ExprOrType extends @exprortype, Documentable {
29
not exists(getOwnDocumentation()) and
30
if getParent() instanceof Property
31
then result = getParent().(Property).getDocumentation()
32
- else if getParent() instanceof MethodDeclaration
33
- then result = getParent().(MethodDeclaration).getDocumentation()
34
- else result = getEnclosingStmt().getDocumentation()
+ else
+ if getParent() instanceof MethodDeclaration
+ then result = getParent().(MethodDeclaration).getDocumentation()
35
+ else result = getEnclosingStmt().getDocumentation()
36
)
37
}
38
0 commit comments