mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Swift: Suggestions from review.
This commit is contained in:
@@ -34,9 +34,7 @@ abstract class RegexPatternSource extends DataFlow::Node {
|
||||
* a `Regex`. This is a simple wrapper to make that happen.
|
||||
*/
|
||||
private class RegexFromRegexPatternSource extends RegExp {
|
||||
RegexPatternSource node;
|
||||
|
||||
RegexFromRegexPatternSource() { this = node.asExpr() }
|
||||
RegexFromRegexPatternSource() { this = any(RegexPatternSource node).asExpr() }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -12,7 +12,7 @@ private import codeql.regex.HostnameRegexp as Shared
|
||||
/**
|
||||
* An implementation of the signature that allows the Hostname analysis to run.
|
||||
*/
|
||||
module Impl implements Shared::HostnameRegexpSig<TreeImpl> {
|
||||
private module Impl implements Shared::HostnameRegexpSig<TreeImpl> {
|
||||
class DataFlowNode = DataFlow::Node;
|
||||
|
||||
class RegExpPatternSource = Regex::RegexPatternSource;
|
||||
|
||||
Reference in New Issue
Block a user