OLD | NEW |
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 library analysis_server.src.single_context_manager; | 5 library analysis_server.src.single_context_manager; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:core' hide Resource; | 8 import 'dart:core'; |
9 import 'dart:math' as math; | 9 import 'dart:math' as math; |
10 | 10 |
11 import 'package:analysis_server/src/context_manager.dart'; | 11 import 'package:analysis_server/src/context_manager.dart'; |
12 import 'package:analyzer/file_system/file_system.dart'; | 12 import 'package:analyzer/file_system/file_system.dart'; |
13 import 'package:analyzer/plugin/resolver_provider.dart'; | 13 import 'package:analyzer/plugin/resolver_provider.dart'; |
14 import 'package:analyzer/src/generated/engine.dart'; | 14 import 'package:analyzer/src/generated/engine.dart'; |
15 import 'package:analyzer/src/generated/sdk.dart'; | 15 import 'package:analyzer/src/generated/sdk.dart'; |
16 import 'package:analyzer/src/generated/source.dart'; | 16 import 'package:analyzer/src/generated/source.dart'; |
17 import 'package:analyzer/src/util/glob.dart'; | 17 import 'package:analyzer/src/util/glob.dart'; |
18 import 'package:path/path.dart' as path; | 18 import 'package:path/path.dart' as path; |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 static List<Resource> _getChildrenSafe(Folder folder) { | 499 static List<Resource> _getChildrenSafe(Folder folder) { |
500 try { | 500 try { |
501 return folder.getChildren(); | 501 return folder.getChildren(); |
502 } on FileSystemException { | 502 } on FileSystemException { |
503 // The folder either doesn't exist or cannot be read. | 503 // The folder either doesn't exist or cannot be read. |
504 // Either way, there are no children. | 504 // Either way, there are no children. |
505 return const <Resource>[]; | 505 return const <Resource>[]; |
506 } | 506 } |
507 } | 507 } |
508 } | 508 } |
OLD | NEW |