using System.Text; using JetBrains.Annotations; using Microsoft.CodeAnalysis.Text; namespace Terminal.Gui.Analyzers.Internal; internal interface IStandardCSharpCodeGenerator where T : IGeneratedTypeMetadata { /// /// Generates and returns the full source text corresponding to , /// in the requested or if not provided. /// /// /// The of the generated source text or if not /// provided. /// /// [UsedImplicitly] [SkipLocalsInit] ref readonly SourceText GenerateSourceText (Encoding? encoding = null); /// /// A type implementing which /// will be used for source generation. /// [UsedImplicitly] T Metadata { get; set; } }