Skip to content

Commit 9c2ca93

Browse files
committed
Use 'Declaration::hasQualifiedName/2' in 'MainMethod'
1 parent 9bb501c commit 9c2ca93

File tree

1 file changed

+1
-1
lines changed
  • csharp/ql/src/semmle/code/csharp/commons

1 file changed

+1
-1
lines changed

csharp/ql/src/semmle/code/csharp/commons/Util.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class MainMethod extends Method {
88
(
99
this.hasName("Main")
1010
or
11-
this.hasQualifiedName("<Program>$.<Main>$")
11+
this.hasQualifiedName("<Program>$", "<Main>$")
1212
) and
1313
this.isStatic() and
1414
(this.getReturnType() instanceof VoidType or this.getReturnType() instanceof IntType) and

0 commit comments

Comments
 (0)