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

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

Issue 681003002: Replace ${name} with $name where possible. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Clean up also implementation Created 6 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 | Annotate | Revision Log
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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.sdk; 8 library engine.sdk;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 * 209 *
210 * @return the library map describing the contents of the SDK 210 * @return the library map describing the contents of the SDK
211 */ 211 */
212 LibraryMap get librariesMap => _librariesMap; 212 LibraryMap get librariesMap => _librariesMap;
213 213
214 @override 214 @override
215 Object visitMapLiteralEntry(MapLiteralEntry node) { 215 Object visitMapLiteralEntry(MapLiteralEntry node) {
216 String libraryName = null; 216 String libraryName = null;
217 Expression key = node.key; 217 Expression key = node.key;
218 if (key is SimpleStringLiteral) { 218 if (key is SimpleStringLiteral) {
219 libraryName = "${_LIBRARY_PREFIX}${key.value}"; 219 libraryName = "$_LIBRARY_PREFIX${key.value}";
220 } 220 }
221 Expression value = node.value; 221 Expression value = node.value;
222 if (value is InstanceCreationExpression) { 222 if (value is InstanceCreationExpression) {
223 SdkLibraryImpl library = new SdkLibraryImpl(libraryName); 223 SdkLibraryImpl library = new SdkLibraryImpl(libraryName);
224 List<Expression> arguments = value.argumentList.arguments; 224 List<Expression> arguments = value.argumentList.arguments;
225 for (Expression argument in arguments) { 225 for (Expression argument in arguments) {
226 if (argument is SimpleStringLiteral) { 226 if (argument is SimpleStringLiteral) {
227 library.path = argument.value; 227 library.path = argument.value;
228 } else if (argument is NamedExpression) { 228 } else if (argument is NamedExpression) {
229 String name = argument.name.label.name; 229 String name = argument.name.label.name;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 this._implementation = implementation; 437 this._implementation = implementation;
438 } 438 }
439 439
440 /** 440 /**
441 * Record that this library can be run on the VM. 441 * Record that this library can be run on the VM.
442 */ 442 */
443 void setVmLibrary() { 443 void setVmLibrary() {
444 _platforms |= VM_PLATFORM; 444 _platforms |= VM_PLATFORM;
445 } 445 }
446 } 446 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | pkg/analyzer/lib/src/generated/sdk_io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698