Skip to content

Commit f7ec06a

Browse files
committed
JS: Add classes with decorators to MkDef
1 parent 9e9d9d4 commit f7ec06a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

javascript/ql/lib/semmle/javascript/ApiGraphs.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,8 @@ module API {
778778
nd = any(ExportDeclaration decl).getDirectSourceNode(_)
779779
or
780780
nd = any(MemberDeclaration m).getInit().flow()
781+
or
782+
nd = any(ClassDefinition cls | exists(cls.getADecorator())).flow()
781783
} or
782784
MkUse(DataFlow::Node nd) { nd instanceof DataFlow::SourceNode } or
783785
/** A use of a TypeScript type. */

0 commit comments

Comments
 (0)