Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adds a C# IL Extractor Prototype#299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
gfs wants to merge3 commits intomicrosoft:main
base:main
Choose a base branch
Loading
fromgfs:gfs/cil-extractor-prototype

Conversation

@gfs
Copy link
Collaborator

@gfsgfs commentedNov 19, 2025

Adds C# IL extractor prototype (minimally scoped for now to detect methods/control flow) an some simple example queries to demonstrate it can detect method calls from compiled database.

---- Copilot Summary ---
Extractor Implementation:

  • Added the initial extractor inSemmle.Extraction.CSharp.IL, includingILExtractor.cs for reading assemblies and writing facts,TrapWriter.cs for TRAP file output, andProgram.cs as the CLI entry point. The extractor captures assemblies, types, methods, IL instructions, control flow, calls, and exception handlers.[1][2][3]

Schema and Configuration:

  • Defined the database schema for C# IL extraction insemmlecode.csharp.il.dbscheme, specifying tables for assemblies, types, methods, IL instructions, control flow, call targets, operands, and exception handlers.
  • Added extractor and QL library configuration files:codeql-extractor.yml for extractor metadata,qlpack.yml for QL library, anddowngrades/qlpack.yml for downgrade support.[1][2][3]

Documentation and Project Structure:

  • Created a comprehensiveREADME.md describing the extractor’s features, usage, schema, use cases, design philosophy, limitations, and directory layout.

Build and Environment:

  • Added.gitignore for C# build artifacts and test results, and a.csproj file for the extractor project targeting .NET 8.0 and referencing Mono.Cecil.[1][2]

felickz reacted with eyes emoji
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@gfs

[8]ページ先頭

©2009-2025 Movatter.jp