You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
@@ -366,8 +366,6 @@ namespace Mono.CSharp
|
||||
}
|
||||
}
|
||||
|
||||
args.Append("/sdk:4.5");
|
||||
|
||||
args.Append (" -- ");
|
||||
foreach (string source in fileNames)
|
||||
args.AppendFormat("\"{0}\" ",source);
|
||||
@@ -387,6 +385,12 @@ namespace Mono.CSharp
|
||||
\s*
|
||||
(?<message>.*)$";
|
||||
|
||||
static readonly Regex RelatedSymbolsRegex = new Regex(
|
||||
@"
|
||||
\(Location\ of\ the\ symbol\ related\ to\ previous\ (warning|error)\)
|
||||
",
|
||||
RegexOptions.Compiled | RegexOptions.ExplicitCapture | RegexOptions.IgnorePatternWhitespace);
|
||||
|
||||
private static CompilerError CreateErrorFromString(string error_string)
|
||||
{
|
||||
if (error_string.StartsWith ("BETA"))
|
||||
@@ -399,11 +403,17 @@ namespace Mono.CSharp
|
||||
Regex reg = new Regex (ErrorRegexPattern, RegexOptions.Compiled | RegexOptions.ExplicitCapture | RegexOptions.IgnorePatternWhitespace);
|
||||
Match match=reg.Match(error_string);
|
||||
if (!match.Success) {
|
||||
// We had some sort of runtime crash
|
||||
error.ErrorText = error_string;
|
||||
error.IsWarning = false;
|
||||
error.ErrorNumber = "";
|
||||
return error;
|
||||
match = RelatedSymbolsRegex.Match (error_string);
|
||||
if (!match.Success) {
|
||||
// We had some sort of runtime crash
|
||||
error.ErrorText = error_string;
|
||||
error.IsWarning = false;
|
||||
error.ErrorNumber = "";
|
||||
return error;
|
||||
} else {
|
||||
// This line is a continuation of previous warning of error
|
||||
return null;
|
||||
}
|
||||
}
|
||||
if (String.Empty != match.Result("${file}"))
|
||||
error.FileName=match.Result("${file}");
|
||||
|
Reference in New Issue
Block a user