private static CompilerError Instantiate(string code, LexicalInfo location, bool isParserError, params object[] args) { return(new CompilerError(code, location, isParserError, Array.ConvertAll(args, DisplayStringFor))); }
private static CompilerError Instantiate(string code, LexicalInfo location, Exception error, params object[] args) { return(new CompilerError(code, location, error, args)); }
internal static CompilerError InvalidEscapeSequence(string sequence, LexicalInfo location) { return(Instantiate("MCE0029", new LexicalInfo(location.FileName, location.Line, location.Column, 0), false, sequence)); }
public static CompilerError InputError(LexicalInfo lexicalInfo, Exception error) { return(Instantiate("MCE0001", lexicalInfo, error, lexicalInfo.FileName, error.Message)); }
internal static CompilerError XmlSchemaValidationError(XmlSchemaException ex, LexicalInfo location) { return(Instantiate("MCE0018", new LexicalInfo(location.FileName, location.Line, location.Column, 0), false, ex.Message)); }