File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
platform/frontends/x2cpg/src/main/scala/io/appthreat/x2cpg/passes/taggers Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,19 @@ class EasyTagsPass(atom: Cpg) extends CpgPass(atom):
34
34
).argument.isCall.methodFullName.filterNot(_.startsWith(" <" )).foreach { m =>
35
35
atom.method.nameExact(m).newTagNode(" exported" ).store()(dstGraph)
36
36
}
37
+ // DOM-related events
38
+ atom.method.external.name(
39
+ " (addEventListener|fetch|createElement|createTextNode|importNode|appendChild|insertBefore)"
40
+ ).parameter.newTagNode(
41
+ " dom"
42
+ ).store()(
43
+ dstGraph
44
+ )
45
+ atom.method.internal.name(" (GET|POST|PUT|DELETE|HEAD|OPTIONS|request)" ).parameter.newTagNode(
46
+ " http"
47
+ ).store()(
48
+ dstGraph
49
+ )
37
50
else if language == Languages .PYTHON || language == Languages .PYTHONSRC then
38
51
atom.method.internal.name(" is_[a-z].*" ).newTagNode(" validation" ).store()(dstGraph)
39
52
atom.call.methodFullName(Operators .equals).code(
You can’t perform that action at this time.
0 commit comments