-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[c#] Basic Static Calls & Improved Scoping, Type Map (#4040)
* Have type map able to generate type stubs from JSON input * Replaced initial simple stack with custom scope object for better scoping * Generating basic static call nodes with arguments and receivers * Updated DotNetAstGen TODO: Load imports and known types into scope for basic type resolution
- Loading branch information
1 parent
7860be9
commit 438a1c9
Showing
15 changed files
with
298 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
joern-cli/frontends/csharpsrc2cpg/src/main/resources/application.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
csharpsrc2cpg { | ||
dotnetastgen_version: "0.12.0" | ||
dotnetastgen_version: "0.13.0" | ||
} |
30 changes: 30 additions & 0 deletions
30
joern-cli/frontends/csharpsrc2cpg/src/main/resources/builtin_types.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"System": [ | ||
{ | ||
"name": "Console", | ||
"methods": [ | ||
{ | ||
"name": "Write" | ||
}, | ||
{ | ||
"name": "WriteLine" | ||
} | ||
], | ||
"fields": [] | ||
} | ||
], | ||
"System.Buffers": [ | ||
{ | ||
"name": "ArrayBufferWriter", | ||
"methods": [ | ||
{ | ||
"name": "Advance" | ||
}, | ||
{ | ||
"name": "Clear" | ||
} | ||
], | ||
"fields": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.