Skip to content

Instantly share code, notes, and snippets.

View msirkovsky-moodys's full-sized avatar

msirkovsky-moodys

View GitHub Profile
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace SourceGeneratorsExample;
[Generator(LanguageNames.CSharp)]
public class SourceGeneratorWithInterceptors : IIncrementalGenerator
{
public void Initialize(IncrementalGeneratorInitializationContext context)