File tree Expand file tree Collapse file tree
python/ql/lib/semmle/python/security/regexp Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,18 @@ private import codeql.regex.HostnameRegexp as Shared
1212private module Impl implements Shared:: HostnameRegexpSig< TreeImpl > {
1313 class DataFlowNode = DataFlow:: Node ;
1414
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+ }
1627}
1728
1829import Shared:: Make< TreeImpl , Impl >
You can’t perform that action at this time.
0 commit comments