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