Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Main
1 parent 1c230d0 commit 0a0657aCopy full SHA for 0a0657a
2 files changed
csharp/ql/lib/semmle/code/csharp/Stmt.qll
@@ -75,7 +75,7 @@ class BlockStmt extends Stmt, @block_stmt {
75
76
/** Holds if this block is the container of the global statements. */
77
predicate isGlobalStatementContainer() {
78
- this.getEnclosingCallable().hasQualifiedName("<Program>$.<Main>$")
+ this.getEnclosingCallable().hasQualifiedName("Program.<Main>$")
79
}
80
81
override Stmt stripSingletonBlocks() {
csharp/ql/lib/semmle/code/csharp/commons/Util.qll
@@ -8,7 +8,7 @@ class MainMethod extends Method {
8
(
9
this.hasName("Main")
10
or
11
- this.hasQualifiedName("<Program>$", "<Main>$")
+ this.hasQualifiedName("Program.<Main>$")
12
) and
13
this.isStatic() and
14
(this.getReturnType() instanceof VoidType or this.getReturnType() instanceof IntType) and
0 commit comments