DiagnosticDescriptor.DiagnosticDescriptor2
Describes a diagnostic message with a unique code and template.
public sealed class DiagnosticDescriptor2 : DiagnosticDescriptorInherits from Yarn.Compiler.DiagnosticDescriptor
This class ensures that diagnostic codes and their descriptions
are always paired correctly, preventing typos and mismatches.
All diagnostics should be created using the predefined descriptors
in this class.
#Methods
#Create(string, Antlr4.Runtime.IToken, string, string)
public Diagnostic Create(string sourceFile, Antlr4.Runtime.IToken token, string message1, string message2);Parameters
sourceFilestringtokenAntlr4.Runtime.ITokenmessage1stringmessage2string
Returns Diagnostic
#Create(string, Antlr4.Runtime.ParserRuleContext, string, string)
public Diagnostic Create(string sourceFile, Antlr4.Runtime.ParserRuleContext context, string message1, string message2);Parameters
sourceFilestringcontextAntlr4.Runtime.ParserRuleContextmessage1stringmessage2string
Returns Diagnostic
#Create(string, Range, string, string)
Creates a new Diagnostic using this descriptor.
public Diagnostic Create(string sourceFile, Range range, string message1, string message2);Parameters
sourceFilestringThe name of the file in which this error occurred.rangeYarn.Compiler.RangeThe range of the file associated with this error.args(unknown)The arguments to use when composing the diagnostic's message.message1stringmessage2string
Returns Diagnostic: The diagnostic.
#Create(string, string, string)
Creates a new Diagnostic using this descriptor.
public Diagnostic Create(string sourceFile, string message1, string message2);Parameters
sourceFilestringThe name of the file in which this error occurred.args(unknown)The arguments to use when composing the diagnostic's message.message1stringmessage2string
Returns Diagnostic: The diagnostic.
Generated from Yarn Spinner for Unity 3.3.