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

Side by Side Diff: sdk/lib/vmservice/devfs.dart

Issue 2880543002: Revert "Change some platform libraries to use `part of URI`." (Closed)
Patch Set: Created 3 years, 7 months 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 | « sdk/lib/vmservice/constants.dart ('k') | sdk/lib/vmservice/message.dart » ('j') | 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 part of "dart:_vmservice"; 5 part of dart._vmservice;
6 6
7 String _encodeDevFSDisabledError(Message message) { 7 String _encodeDevFSDisabledError(Message message) {
8 return encodeRpcError(message, kFeatureDisabled, 8 return encodeRpcError(message, kFeatureDisabled,
9 details: "DevFS is not supported by this Dart implementation"); 9 details: "DevFS is not supported by this Dart implementation");
10 } 10 }
11 11
12 String _encodeFileSystemAlreadyExistsError(Message message, String fsName) { 12 String _encodeFileSystemAlreadyExistsError(Message message, String fsName) {
13 return encodeRpcError(message, kFileSystemAlreadyExists, 13 return encodeRpcError(message, kFileSystemAlreadyExists,
14 details: "${message.method}: file system '${fsName}' already exists"); 14 details: "${message.method}: file system '${fsName}' already exists");
15 } 15 }
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 } 390 }
391 var fileList = await listFiles(fs.uri); 391 var fileList = await listFiles(fs.uri);
392 // Remove any url-encoding in the filenames. 392 // Remove any url-encoding in the filenames.
393 for (int i = 0; i < fileList.length; i++) { 393 for (int i = 0; i < fileList.length; i++) {
394 fileList[i]['name'] = Uri.decodeFull(fileList[i]['name']); 394 fileList[i]['name'] = Uri.decodeFull(fileList[i]['name']);
395 } 395 }
396 var result = {'type': 'FSFileList', 'files': fileList}; 396 var result = {'type': 'FSFileList', 'files': fileList};
397 return encodeResult(message, result); 397 return encodeResult(message, result);
398 } 398 }
399 } 399 }
OLDNEW
« no previous file with comments | « sdk/lib/vmservice/constants.dart ('k') | sdk/lib/vmservice/message.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698