| 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 /// Operations relative to the user's installed Dart SDK. |   5 /// Operations relative to the user's installed Dart SDK. | 
|   6 library sdk; |   6 library sdk; | 
|   7  |   7  | 
|   8 import 'dart:io'; |   8 import 'dart:io'; | 
|   9  |   9  | 
|  10 import 'package:pathos/path.dart' as path; |  10 import 'package:pathos/path.dart' as path; | 
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  49     throw new FormatException("The Dart SDK's 'version' file was not in a " |  49     throw new FormatException("The Dart SDK's 'version' file was not in a " | 
|  50         "format pub could recognize. Found: $version"); |  50         "format pub could recognize. Found: $version"); | 
|  51   } |  51   } | 
|  52  |  52  | 
|  53   // Semantic versions cannot use "_". |  53   // Semantic versions cannot use "_". | 
|  54   var build = match[4].replaceAll('_', '.'); |  54   var build = match[4].replaceAll('_', '.'); | 
|  55  |  55  | 
|  56   return new Version( |  56   return new Version( | 
|  57       int.parse(match[1]), int.parse(match[2]), int.parse(match[3]), |  57       int.parse(match[1]), int.parse(match[2]), int.parse(match[3]), | 
|  58       build: build); |  58       build: build); | 
|  59 } |  59 } | 
| OLD | NEW |