Skip to content

C#: Update MainMethod to understand new Main method syntaxes - #65

Open
Levi Broderick (GrabYourPitchforks) wants to merge 1 commit into
microsoft:mainfrom
GrabYourPitchforks:csharp/mainmethod
Open

C#: Update MainMethod to understand new Main method syntaxes#65
Levi Broderick (GrabYourPitchforks) wants to merge 1 commit into
microsoft:mainfrom
GrabYourPitchforks:csharp/mainmethod

Conversation

@GrabYourPitchforks

Copy link
Copy Markdown
Member

Recent versions of C# allow Task and Task<int>-returning main methods. This updates the MainMethod class to understand these new syntaxes.

There already exist limited regression tests at https://github.com/microsoft/codeql/blob/e1949c7d69ec0a5f6afd98a51aa2305dd7442394/csharp/ql/test/library-tests/csharp9-standalone/GlobalStmt.cs.

Ben Rodes (bdrodes) pushed a commit that referenced this pull request Jan 9, 2025
feat(queries): Improve Use Of Vulnerable Actions query
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant