File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
python/ql/lib/semmle/python/security/regexp Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,18 @@ private import codeql.regex.HostnameRegexp as Shared
12
12
private module Impl implements Shared:: HostnameRegexpSig< TreeImpl > {
13
13
class DataFlowNode = DataFlow:: Node ;
14
14
15
- class RegExpPatternSource = Regexp:: RegExpPatternSource ;
15
+ class RegExpPatternSource extends DataFlow:: Node instanceof Regexp:: RegExpPatternSource {
16
+ /**
17
+ * Gets a node where the pattern of this node is parsed as a part of
18
+ * a regular expression.
19
+ */
20
+ DataFlow:: Node getAParse ( ) { result = super .getAParse ( ) }
21
+
22
+ /**
23
+ * Gets the root term of the regular expression parsed from this pattern.
24
+ */
25
+ TreeImpl:: RegExpTerm getRegExpTerm ( ) { result = super .getRegExpTerm ( ) }
26
+ }
16
27
}
17
28
18
29
import Shared:: Make< TreeImpl , Impl >
You can’t perform that action at this time.
0 commit comments