{"id":17017173,"url":"https://github.com/steviegt6/cle-elum","last_synced_at":"2025-08-24T00:20:15.398Z","repository":{"id":108369147,"uuid":"593493717","full_name":"steviegt6/cle-elum","owner":"steviegt6","description":"roslyn","archived":false,"fork":false,"pushed_at":"2023-01-31T17:53:28.000Z","size":4284,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T20:47:13.511Z","etag":null,"topics":["compiler","csharp","mod","modding","monomod","roslyn","roslyn-analyzer","roslyn-analyzers"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steviegt6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"patreon":"steviegt6","ko_fi":"steviegt6"}},"created_at":"2023-01-26T06:04:12.000Z","updated_at":"2023-02-04T23:05:01.000Z","dependencies_parsed_at":"2023-03-07T07:00:55.726Z","dependency_job_id":null,"html_url":"https://github.com/steviegt6/cle-elum","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steviegt6%2Fcle-elum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steviegt6%2Fcle-elum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steviegt6%2Fcle-elum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steviegt6%2Fcle-elum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steviegt6","download_url":"https://codeload.github.com/steviegt6/cle-elum/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244976734,"owners_count":20541535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compiler","csharp","mod","modding","monomod","roslyn","roslyn-analyzer","roslyn-analyzers"],"created_at":"2024-10-14T06:35:54.512Z","updated_at":"2025-03-22T15:27:16.319Z","avatar_url":"https://github.com/steviegt6.png","language":"C#","funding_links":["https://patreon.com/steviegt6","https://ko-fi.com/steviegt6"],"categories":[],"sub_categories":[],"readme":"\u003e **Warning** | This is not a practical project. If you find yourself ever needing this, consider rethinking everything.\n\n# cle-elum\n\n\u003e compiler hacking!!!!!1!! but for c#\n\n---\n\nExperimental, questionable Roslyn activities.\n\n## Things\n\n### Roslyn Modding\n\nModify Roslyn in-memory with [MonoMod](https://github.com/MonoMod/MonoMod) (RuntimeDetour) and a somewhat convenient little bit of API boilerplate:\n\n```cs\n[DiagnosticAnalyzer(LanguageNames.CSharp)]\npublic sealed class MyAnalyzer : DiagnosticAnalyzer {\n    public override ImmutableArray\u003cDiagnosticDescriptor\u003e SupportedDiagnostics =\u003e\n        ImmutableArray\u003cDiagnosticDescriptor\u003e.Empty;\n\n    public MyAnalyzer() {\n        // Your entrypoint lies within this class' constructor.\n        BootstrapAnalyzer.EnsureInitialized();\n        Patch();\n    }\n\n    public override void Initialize(AnalysisContext context) { }\n\n    private static void Patch() {\n        // use monomod here\n    }\n}\n```\n\nGeneral changes that make normally-invalid stuff valid will be reflected properly in Visual Studio, but not anything that doesn't use Roslyn (such as Rider).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteviegt6%2Fcle-elum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteviegt6%2Fcle-elum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteviegt6%2Fcle-elum/lists"}