Skip to content

Commit ff2cef3

Browse files
committed
C#: Switch from Declaration to Callable
1 parent e524e35 commit ff2cef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csharp/ql/src/utils/modeleditor/AutomodelVsCode.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private import semmle.code.csharp.security.dataflow.flowsources.Remote
1616
private import Telemetry.TestLibrary
1717

1818
/** Holds if the given callable is not worth supporting. */
19-
private predicate isUninteresting(DotNet::Declaration c) {
19+
private predicate isUninteresting(DotNet::Callable c) {
2020
c.getDeclaringType() instanceof TestLibrary or
2121
c.(Constructor).isParameterless() or
2222
c.getDeclaringType() instanceof AnonymousClass
@@ -25,7 +25,7 @@ private predicate isUninteresting(DotNet::Declaration c) {
2525
/**
2626
* An callable method from either the C# Standard Library, a 3rd party library, or from the source.
2727
*/
28-
class CallableMethod extends DotNet::Declaration {
28+
class CallableMethod extends DotNet::Callable {
2929
CallableMethod() {
3030
[this.(Modifiable), this.(Accessor).getDeclaration()].isEffectivelyPublic() and
3131
not isUninteresting(this)

0 commit comments

Comments
 (0)