| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 analyzer.src.generated.sdk; | 5 library analyzer.src.generated.sdk; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/ast/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 /** | 114 /** |
| 115 * A table mapping (an encoding of) analysis options and SDK locations to the | 115 * A table mapping (an encoding of) analysis options and SDK locations to the |
| 116 * DartSdk from that location that has been configured with those options. | 116 * DartSdk from that location that has been configured with those options. |
| 117 */ | 117 */ |
| 118 Map<SdkDescription, DartSdk> sdkMap = new HashMap<SdkDescription, DartSdk>(); | 118 Map<SdkDescription, DartSdk> sdkMap = new HashMap<SdkDescription, DartSdk>(); |
| 119 | 119 |
| 120 /** | 120 /** |
| 121 * Initialize a newly created manager. | 121 * Initialize a newly created manager. |
| 122 */ | 122 */ |
| 123 DartSdkManager(this.defaultSdkDirectory, this.canUseSummaries); | 123 DartSdkManager(this.defaultSdkDirectory, this.canUseSummaries, |
| 124 [dynamic ignored]); |
| 124 | 125 |
| 125 /** | 126 /** |
| 126 * Return any SDK that has been created, or `null` if no SDKs have been | 127 * Return any SDK that has been created, or `null` if no SDKs have been |
| 127 * created. | 128 * created. |
| 128 */ | 129 */ |
| 129 DartSdk get anySdk { | 130 DartSdk get anySdk { |
| 130 if (sdkMap.isEmpty) { | 131 if (sdkMap.isEmpty) { |
| 131 return null; | 132 return null; |
| 132 } | 133 } |
| 133 return sdkMap.values.first; | 134 return sdkMap.values.first; |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 _platformsToPatchPaths[platforms] = paths; | 664 _platformsToPatchPaths[platforms] = paths; |
| 664 } | 665 } |
| 665 | 666 |
| 666 /** | 667 /** |
| 667 * Record that this library can be run on the VM. | 668 * Record that this library can be run on the VM. |
| 668 */ | 669 */ |
| 669 void setVmLibrary() { | 670 void setVmLibrary() { |
| 670 _platforms |= VM_PLATFORM; | 671 _platforms |= VM_PLATFORM; |
| 671 } | 672 } |
| 672 } | 673 } |
| OLD | NEW |