mirror of
https://github.com/github/codeql.git
synced 2026-04-24 08:15:14 +02:00
JS: Remove EmptyType
This commit is contained in:
@@ -140,11 +140,6 @@ class OutNode extends DataFlow::Node {
|
||||
|
||||
OutNode getAnOutNode(DataFlowCall call, ReturnKind kind) { result = getAnOutNodeImpl(call, kind) }
|
||||
|
||||
/**
|
||||
* Base class for classes that should be empty.
|
||||
*/
|
||||
abstract private class EmptyType extends DataFlow::Node { }
|
||||
|
||||
cached
|
||||
predicate postUpdatePair(Node pre, Node post) {
|
||||
exists(AST::ValueNode expr |
|
||||
@@ -173,7 +168,9 @@ predicate postUpdatePair(Node pre, Node post) {
|
||||
VariableCaptureOutput::capturePostUpdateNode(getClosureNode(post), getClosureNode(pre))
|
||||
}
|
||||
|
||||
class CastNode extends DataFlow::Node instanceof EmptyType { }
|
||||
class CastNode extends DataFlow::Node {
|
||||
CastNode() { none() }
|
||||
}
|
||||
|
||||
cached
|
||||
newtype TDataFlowCallable =
|
||||
|
||||
Reference in New Issue
Block a user