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

Side by Side Diff: pkg/analysis_server/lib/src/context_manager.dart

Issue 1521883002: Fix lints: unnecessary_brace_in_string_interp (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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
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 context.directory.manager; 5 library context.directory.manager;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:convert'; 9 import 'dart:convert';
10 import 'dart:core' hide Resource; 10 import 'dart:core' hide Resource;
(...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after
1559 } 1559 }
1560 1560
1561 /** 1561 /**
1562 * Concrete [FolderDisposition] object indicating that the context for a given 1562 * Concrete [FolderDisposition] object indicating that the context for a given
1563 * folder should resolve packages using a ".packages" file. 1563 * folder should resolve packages using a ".packages" file.
1564 */ 1564 */
1565 class PackagesFileDisposition extends FolderDisposition { 1565 class PackagesFileDisposition extends FolderDisposition {
1566 @override 1566 @override
1567 final Packages packages; 1567 final Packages packages;
1568 1568
1569 PackagesFileDisposition(this.packages) {} 1569 PackagesFileDisposition(this.packages);
1570 1570
1571 @override 1571 @override
1572 String get packageRoot => null; 1572 String get packageRoot => null;
1573 1573
1574 Map<String, List<Folder>> buildPackageMap(ResourceProvider resourceProvider) { 1574 Map<String, List<Folder>> buildPackageMap(ResourceProvider resourceProvider) {
1575 Map<String, List<Folder>> packageMap = <String, List<Folder>>{}; 1575 Map<String, List<Folder>> packageMap = <String, List<Folder>>{};
1576 if (packages == null) { 1576 if (packages == null) {
1577 return packageMap; 1577 return packageMap;
1578 } 1578 }
1579 packages.asMap().forEach((String name, Uri uri) { 1579 packages.asMap().forEach((String name, Uri uri) {
(...skipping 10 matching lines...) Expand all
1590 ResourceProvider resourceProvider) { 1590 ResourceProvider resourceProvider) {
1591 if (packages != null) { 1591 if (packages != null) {
1592 // Construct package map for the SdkExtUriResolver. 1592 // Construct package map for the SdkExtUriResolver.
1593 Map<String, List<Folder>> packageMap = buildPackageMap(resourceProvider); 1593 Map<String, List<Folder>> packageMap = buildPackageMap(resourceProvider);
1594 return <UriResolver>[new SdkExtUriResolver(packageMap)]; 1594 return <UriResolver>[new SdkExtUriResolver(packageMap)];
1595 } else { 1595 } else {
1596 return const <UriResolver>[]; 1596 return const <UriResolver>[];
1597 } 1597 }
1598 } 1598 }
1599 } 1599 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698