summaryrefslogtreecommitdiff
path: root/Util
diff options
context:
space:
mode:
authorGravatar rustanleino <unknown>2010-11-25 21:31:57 +0000
committerGravatar rustanleino <unknown>2010-11-25 21:31:57 +0000
commitd6bc9bf0a6eac0d8eb3b551c6da1d7754a10a6a1 (patch)
treef0d3c6e9e2ccf9725a7cde052358c9458dff575b /Util
parent367093297e9a3ae6ac77c8d363d6fbfdf6badefb (diff)
Dafny: Improved default decreases clauses for methods and functions
Dafny: Don't display "alloc" field in BVD Chalice: Fixed error-message parsing error in VS mode
Diffstat (limited to 'Util')
-rw-r--r--Util/VS2010/Chalice/ChaliceLanguageService/Integration/IronyLanguageService.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Util/VS2010/Chalice/ChaliceLanguageService/Integration/IronyLanguageService.cs b/Util/VS2010/Chalice/ChaliceLanguageService/Integration/IronyLanguageService.cs
index 8519e467..bb7cfebb 100644
--- a/Util/VS2010/Chalice/ChaliceLanguageService/Integration/IronyLanguageService.cs
+++ b/Util/VS2010/Chalice/ChaliceLanguageService/Integration/IronyLanguageService.cs
@@ -183,13 +183,13 @@ namespace Demo
}
// each line is of the form: "x,y,w,z:arbitrary text"
- string[] numbersAndText = line.Split(':');
- if (numbersAndText.Length != 2) {
+ int colonIndex = line.IndexOf(':');
+ if (colonIndex == -1) {
AddErrorBecauseOfToolProblems(req, "Couldn't find colon in '" + line + "'");
continue;
}
- string numbers = numbersAndText[0];
- var message = numbersAndText[1];
+ string numbers = line.Substring(0, colonIndex);
+ var message = line.Substring(colonIndex + 1);
string[] positions = numbers.Split(',');
if (positions.Length != 4) {
AddErrorBecauseOfToolProblems(req, "Couldn't find four numbers in '" + numbers + "'");