Open sandboxFocus

Interface IHtmlCodeWriter

Provides HTML code writing functionality. Implemented by the optional Metalama.Extensions.HtmlWriter package.

Namespace: Metalama.Framework.Engine.Formatting
Assembly: Metalama.Framework.Sdk.dll
Syntax
public interface IHtmlCodeWriter : IProjectService, IService

Methods

Name Description
WriteAllDiffAsync(IPartialCompilation, IPartialCompilation, HtmlCodeWriterOptions, IEnumerable<Diagnostic>?, Func<Diagnostic, Compilation, bool>?, CancellationToken)

Writes all diffs between input and output compilations to HTML format.

WriteAsync(Document, TextWriter, HtmlCodeWriterOptions, IEnumerable<Diagnostic>?, CancellationToken)

Writes a document to HTML format.

WriteDiffAsync(Document, Document, TextWriter, TextWriter, HtmlCodeWriterOptions, IEnumerable<Diagnostic>?, IEnumerable<Diagnostic>?, CancellationToken)

Writes a diff between two documents to HTML format.

Extension Methods