Skip to content

TextStudioDiagnosticReport

ClassTextStudioTextStudio
public sealed class TextStudioDiagnosticReport

Immutable analyzed markup plus general and tag-specific diagnostics.

public static readonly TextStudioDiagnosticReport Empty

Returns

TextStudio.TextStudioDiagnosticReport

TextStudioDiagnosticReport(string, TextStudioDiagnostic[], TextStudioTagDiagnostic[])

Section titled “TextStudioDiagnosticReport(string, TextStudioDiagnostic[], TextStudioTagDiagnostic[])”
public TextStudioDiagnosticReport(string source, TextStudioDiagnostic[] diagnostics, TextStudioTagDiagnostic[] tags)

Creates a report that owns the supplied immutable diagnostic arrays.

Parameters

Name Type
source System.String
diagnostics TextStudio.TextStudioDiagnostic[]
tags TextStudio.TextStudioTagDiagnostic[]

public string Source { get; }

Returns

System.String

public TextStudioDiagnostic[] Diagnostics { get; }

Returns

TextStudio.TextStudioDiagnostic[]

public TextStudioTagDiagnostic[] Tags { get; }

Returns

TextStudio.TextStudioTagDiagnostic[]

public int AuthoredTagCount { get; }

Returns

System.Int32

public bool HasErrors { get; }

Returns

System.Boolean

public bool HasWarnings { get; }

Returns

System.Boolean