Skip to content

Instantly share code, notes, and snippets.

@paulloz
paulloz / InputMapGenerator.cs
Last active February 12, 2024 22:02
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
{