Skip to content

Commit bdd89c1

Browse files
committed
Fixup of dispatch.
1 parent 8209760 commit bdd89c1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

csharp/ql/lib/semmle/code/csharp/dispatch/Dispatch.qll

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private module Internal {
8888
TDispatchMethodCall(MethodCall mc) {
8989
not isReflectionCall(mc, _, _, _, _) and
9090
not mc.isLateBound() and
91-
not isExtensionAccossorCall(mc)
91+
not isExtensionAccessorCall(mc)
9292
} or
9393
TDispatchAccessorCall(AccessorCall ac) or
9494
TDispatchOperatorCall(OperatorCall oc) { not oc.isLateBound() } or
@@ -112,7 +112,7 @@ private module Internal {
112112
or
113113
c instanceof LocalFunctionCall
114114
} or
115-
TDispatchExtensionAccessorCall(MethodCall mc) { isExtensionAccossorCall(mc) }
115+
TDispatchExtensionAccessorCall(MethodCall mc) { isExtensionAccessorCall(mc) }
116116

117117
cached
118118
Expr getCall(DispatchCall dc) { result = dc.(DispatchCallImpl).getCall() }
@@ -144,9 +144,7 @@ private module Internal {
144144

145145
import Cached
146146

147-
private predicate isExtensionAccossorCall(MethodCall mc) {
148-
exists(ExtensionAccessor a | mc.getTargetAccessor() = a)
149-
}
147+
private predicate isExtensionAccessorCall(MethodCall mc) { exists(mc.getTargetAccessor()) }
150148

151149
/**
152150
* Holds if `mc` is a reflection call to a method named `name`, where

0 commit comments

Comments
 (0)