Skip to content

Instantly share code, notes, and snippets.

@paulloz
paulloz / InputMapGenerator.cs
Last active July 3, 2024 11:26
Constants generator from Godot's input map
using Microsoft.CodeAnalysis;
using System.Collections.Immutable;
using System.Linq;
using System.Text;
namespace SourceGenerators;
[Generator(LanguageNames.CSharp)]
public class InputMapGenerator : IIncrementalGenerator
{