Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: pkg/analyzer/lib/src/generated/sdk.dart

Issue 2508973005: Un-deprecate some deprecated code and fix a couple of hints (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/parser.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698