Diagnostic
public sealed class DiagnosticInherits from System.Object
#Nested Types
- DiagnosticSeverity enumThe severity of the issue.
#Properties
#Code
public string? Code { get; set; }Type String
#Column Obsolete
Use Range.Start.Character
public int Column { get }Type Int32
#Context
public string? Context { get; set; }Type String
#FileName
public string FileName { get; set; }Type String
#Line Obsolete
Use Range.Start.Line
public int Line { get }Type Int32
#Message
public string Message { get; set; }Type String
#Range
public Range Range { get; set; }Type Range
#Severity
public DiagnosticSeverity Severity { get; set; }Type DiagnosticSeverity
#Methods
#CreateDiagnostic(string, DiagnosticDescriptor, string[])
public static Diagnostic CreateDiagnostic(string fileName, DiagnosticDescriptor descriptor, params string[] args)Parameters
fileNamestringThe file where the diagnostic occurred.descriptorYarn.Compiler.DiagnosticDescriptorThe diagnostic descriptor defining the error code and message template.argsstring[]Arguments to format the message template.
Returns Diagnostic: A new diagnostic instance.
#CreateDiagnostic(string, IToken, DiagnosticDescriptor, string[])
public static Diagnostic CreateDiagnostic(string fileName, IToken token, DiagnosticDescriptor descriptor, params string[] args)Parameters
fileNamestringThe file where the diagnostic occurred.tokenITokenThe token where the diagnostic occurred.descriptorYarn.Compiler.DiagnosticDescriptorThe diagnostic descriptor defining the error code and message template.argsstring[]Arguments to format the message template.
Returns Diagnostic: A new diagnostic instance.
#CreateDiagnostic(string, ParserRuleContext?, DiagnosticDescriptor, string[])
public static Diagnostic CreateDiagnostic(string fileName, ParserRuleContext? context, DiagnosticDescriptor descriptor, params string[] args)Parameters
fileNamestringThe file where the diagnostic occurred.contextParserRuleContext?The parser context where the diagnostic occurred.descriptorYarn.Compiler.DiagnosticDescriptorThe diagnostic descriptor defining the error code and message template.argsstring[]Arguments to format the message template.
Returns Diagnostic: A new diagnostic instance.
#CreateDiagnostic(string, Range, DiagnosticDescriptor, string[])
public static Diagnostic CreateDiagnostic(string fileName, Range range, DiagnosticDescriptor descriptor, params string[] args)Parameters
fileNamestringThe file where the diagnostic occurred.rangeYarn.Compiler.RangeThe range in the file where the diagnostic occurred.descriptorYarn.Compiler.DiagnosticDescriptorThe diagnostic descriptor defining the error code and message template.argsstring[]Arguments to format the message template.
Returns Diagnostic: A new diagnostic instance.
#Equals(object)
public override bool Equals(object obj)Parameters
objobject
Returns Boolean
#GetHashCode()
public override int GetHashCode()Returns Int32
#ToString()
public override string ToString()Returns String
Generated from Yarn Spinner for Unity 3.3.