mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
C#: Add VS Code model editor queries
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
| NonPublicClass.cs:9:9:9:31 | call to method WriteLine | System.Console#WriteLine(System.String) | true | supported | System.Console | 7.0.0.0 | neutral | type | source | classification |
|
||||
| PublicClass.cs:9:9:9:30 | call to method WriteLine | System.Console#WriteLine(System.String) | true | supported | System.Console | 7.0.0.0 | neutral | type | source | classification |
|
||||
| PublicClass.cs:14:9:14:30 | call to method WriteLine | System.Console#WriteLine(System.String) | true | supported | System.Console | 7.0.0.0 | neutral | type | source | classification |
|
||||
| PublicClass.cs:19:9:19:51 | call to method WriteLine | System.Console#WriteLine(System.String) | true | supported | System.Console | 7.0.0.0 | neutral | type | source | classification |
|
||||
| PublicClass.cs:19:33:19:50 | call to method ReadLine | System.Console#ReadLine() | true | supported | System.Console | 7.0.0.0 | neutral | type | source | classification |
|
||||
| PublicClass.cs:19:33:19:50 | call to method ReadLine | System.Console#ReadLine() | true | supported | System.Console | 7.0.0.0 | source | type | source | classification |
|
||||
| PublicClass.cs:24:9:24:30 | call to method WriteLine | System.Console#WriteLine(System.String) | true | supported | System.Console | 7.0.0.0 | neutral | type | source | classification |
|
||||
| PublicInterface.cs:11:9:11:30 | call to method WriteLine | System.Console#WriteLine(System.String) | true | supported | System.Console | 7.0.0.0 | neutral | type | source | classification |
|
||||
@@ -0,0 +1 @@
|
||||
utils/modeleditor/FetchApplicationModeMethods.ql
|
||||
@@ -0,0 +1,5 @@
|
||||
| PublicClass.cs:7:17:7:21 | stuff | GitHub.CodeQL.PublicClass#stuff(System.String) | false | supported | PublicClass.cs | library | | type | unknown | classification |
|
||||
| PublicClass.cs:12:24:12:34 | staticStuff | GitHub.CodeQL.PublicClass#staticStuff(System.String) | false | supported | PublicClass.cs | library | | type | unknown | classification |
|
||||
| PublicClass.cs:17:20:17:33 | nonPublicStuff | GitHub.CodeQL.PublicClass#nonPublicStuff(System.String) | false | supported | PublicClass.cs | library | | type | unknown | classification |
|
||||
| PublicInterface.cs:7:10:7:14 | stuff | GitHub.CodeQL.PublicInterface#stuff(System.String) | false | supported | PublicInterface.cs | library | | type | unknown | classification |
|
||||
| PublicInterface.cs:9:17:9:27 | staticStuff | GitHub.CodeQL.PublicInterface#staticStuff(System.String) | false | supported | PublicInterface.cs | library | | type | unknown | classification |
|
||||
@@ -0,0 +1 @@
|
||||
utils/modeleditor/FetchFrameworkModeMethods.ql
|
||||
11
csharp/ql/test/utils/modeleditor/NonPublicClass.cs
Normal file
11
csharp/ql/test/utils/modeleditor/NonPublicClass.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace GitHub.CodeQL;
|
||||
|
||||
class NonPublicClass
|
||||
{
|
||||
public void noCandidates(String here)
|
||||
{
|
||||
Console.WriteLine(here);
|
||||
}
|
||||
}
|
||||
26
csharp/ql/test/utils/modeleditor/PublicClass.cs
Normal file
26
csharp/ql/test/utils/modeleditor/PublicClass.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
|
||||
namespace GitHub.CodeQL;
|
||||
|
||||
public class PublicClass
|
||||
{
|
||||
public void stuff(String arg)
|
||||
{
|
||||
Console.WriteLine(arg);
|
||||
}
|
||||
|
||||
public static void staticStuff(String arg)
|
||||
{
|
||||
Console.WriteLine(arg);
|
||||
}
|
||||
|
||||
protected void nonPublicStuff(String arg)
|
||||
{
|
||||
Console.WriteLine(arg + Console.ReadLine());
|
||||
}
|
||||
|
||||
internal void internalStuff(String arg)
|
||||
{
|
||||
Console.WriteLine(arg);
|
||||
}
|
||||
}
|
||||
13
csharp/ql/test/utils/modeleditor/PublicInterface.cs
Normal file
13
csharp/ql/test/utils/modeleditor/PublicInterface.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
|
||||
namespace GitHub.CodeQL;
|
||||
|
||||
public interface PublicInterface
|
||||
{
|
||||
void stuff(String arg);
|
||||
|
||||
static void staticStuff(String arg)
|
||||
{
|
||||
Console.WriteLine(arg);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user