| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library status_file_parser; | 5 library status_file_parser; |
| 6 | 6 |
| 7 import "dart:async"; | 7 import "dart:async"; |
| 8 import "dart:convert" show LineSplitter, UTF8; | 8 import "dart:convert" show LineSplitter, UTF8; |
| 9 import "dart:io"; | 9 import "dart:io"; |
| 10 | 10 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 return false; | 102 return false; |
| 103 } | 103 } |
| 104 | 104 |
| 105 String toString() => prettyName; | 105 String toString() => prettyName; |
| 106 } | 106 } |
| 107 | 107 |
| 108 | 108 |
| 109 final RegExp SplitComment = new RegExp("^([^#]*)(#.*)?\$"); | 109 final RegExp SplitComment = new RegExp("^([^#]*)(#.*)?\$"); |
| 110 final RegExp HeaderPattern = new RegExp(r"^\[([^\]]+)\]"); | 110 final RegExp HeaderPattern = new RegExp(r"^\[([^\]]+)\]"); |
| 111 final RegExp RulePattern = new RegExp(r"\s*([^: ]*)\s*:(.*)"); | 111 final RegExp RulePattern = new RegExp(r"\s*([^: ]*)\s*:(.*)"); |
| 112 final RegExp IssueNumberPattern = | 112 final RegExp IssueNumberPattern = new RegExp("[Ii]ssue ([0-9]+)"); |
| 113 new RegExp("Issue ([0-9]+)|dartbug.com/([0-9]+)", caseSensitive: false); | |
| 114 | 113 |
| 115 class StatusFile { | 114 class StatusFile { |
| 116 final Path location; | 115 final Path location; |
| 117 | 116 |
| 118 StatusFile(this.location); | 117 StatusFile(this.location); |
| 119 } | 118 } |
| 120 | 119 |
| 121 // TODO(whesse): Implement configuration_info library that contains data | 120 // TODO(whesse): Implement configuration_info library that contains data |
| 122 // structures for test configuration, including Section. | 121 // structures for test configuration, including Section. |
| 123 class Section { | 122 class Section { |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 } | 342 } |
| 344 regExps[i] = regExp; | 343 regExps[i] = regExp; |
| 345 } | 344 } |
| 346 _keyToRegExps[key] = regExps; | 345 _keyToRegExps[key] = regExps; |
| 347 }); | 346 }); |
| 348 | 347 |
| 349 _regExpCache = null; | 348 _regExpCache = null; |
| 350 _preprocessed = true; | 349 _preprocessed = true; |
| 351 } | 350 } |
| 352 } | 351 } |
| OLD | NEW |