protected static XmlSyntaxDiagnosticInfo MakeError( XmlParseErrorCode code, params object[] args ) { return(new XmlSyntaxDiagnosticInfo(0, 0, code, args)); }
protected void AddError( int position, int width, XmlParseErrorCode code, params object[] args ) { this.AddError(this.MakeError(position, width, code, args)); }
internal XmlSyntaxDiagnosticInfo( int offset, int width, XmlParseErrorCode code, params object[] args ) : base(offset, width, ErrorCode.WRN_XMLParseError, args) { _xmlErrorCode = code; }
protected XmlSyntaxDiagnosticInfo MakeError( int position, int width, XmlParseErrorCode code, params object[] args ) { int offset = GetLexemeOffsetFromPosition(position); return(new XmlSyntaxDiagnosticInfo(offset, width, code, args)); }
private XmlSyntaxDiagnosticInfo(SerializationInfo info, StreamingContext context) : base(info, context) { xmlErrorCode = (XmlParseErrorCode)info.GetInt32("xmlErrorCode"); }
internal XmlSyntaxDiagnosticInfo(XmlParseErrorCode code, params object[] args) : this(0, 0, code, args) { }
protected XmlSyntaxDiagnosticInfo(ObjectReader reader) : base(reader) { this.xmlErrorCode = (XmlParseErrorCode)reader.ReadCompressedUInt(); }
internal XmlSyntaxDiagnosticInfo(int offset, int width, XmlParseErrorCode code, params object[] args) : base(offset, width, ErrorCode.WRN_XMLParseError, args) { _xmlErrorCode = code; }
private XmlSyntaxDiagnosticInfo(ObjectReader reader) : base(reader) { _xmlErrorCode = (XmlParseErrorCode)reader.ReadUInt32(); }
protected XmlSyntaxDiagnosticInfo MakeError(int position, int width, XmlParseErrorCode code, params object[] args) { int offset = position >= TextWindow.LexemeStartPosition ? position - TextWindow.LexemeStartPosition : position; return(new XmlSyntaxDiagnosticInfo(offset, width, code, args)); }
private SyntaxToken WithXmlParseError(SyntaxToken node, XmlParseErrorCode code, params string[] args) { XmlParseErrorArgument arg = new XmlParseErrorArgument(code, args); return(node.WithAdditionalDiagnostics(this.MakeError(0, node.Width, ErrorCode.WRN_XMLParseError, arg))); }
protected XmlSyntaxDiagnosticInfo MakeError(int position, int width, XmlParseErrorCode code, params object[] args) { int offset = GetLexemeOffsetFromPosition(position); return new XmlSyntaxDiagnosticInfo(offset, width, code, args); }
/// <remarks>Don't call this during a parse--it loads resources</remarks> public static string GetMessage(XmlParseErrorCode id, CultureInfo culture) { return ResourceManager.GetString(id.ToString(), culture); }
protected static XmlSyntaxDiagnosticInfo MakeError(XmlParseErrorCode code, params object[] args) { return new XmlSyntaxDiagnosticInfo(0, 0, code, args); }
protected static XmlSyntaxDiagnosticInfo MakeError(XmlParseErrorCode code) { return(new XmlSyntaxDiagnosticInfo(0, 0, code)); }
protected XmlSyntaxDiagnosticInfo MakeError(int position, int width, XmlParseErrorCode code, params object[] args) { int offset = position >= TextWindow.LexemeStartPosition ? position - TextWindow.LexemeStartPosition : position; return new XmlSyntaxDiagnosticInfo(offset, width, code, args); }
protected void AddError(XmlParseErrorCode code, params object[] args) { this.AddError(MakeError(code, args)); }
protected void AddError(int position, int width, XmlParseErrorCode code, params object[] args) { this.AddError(this.MakeError(position, width, code, args)); }
protected static XmlSyntaxDiagnosticInfo MakeError(XmlParseErrorCode code) { return new XmlSyntaxDiagnosticInfo(0, 0, code); }
protected void AddError(XmlParseErrorCode code) { this.AddError(MakeError(code)); }
public static string GetMessage(XmlParseErrorCode id, CultureInfo culture) { return(ResourceManager.GetString(id.ToString(), culture)); }
private TNode WithXmlParseError <TNode>(TNode node, XmlParseErrorCode code, params string[] args) where TNode : SyntaxNode { XmlParseErrorArgument arg = new XmlParseErrorArgument(code, args); return((TNode)node.WithAdditionalDiagnostics(this.MakeError(0, node.Width, ErrorCode.WRN_XMLParseError, arg))); }