| Index: pkg/analysis_server/tool/spec/codegen_tools.dart
|
| diff --git a/pkg/analysis_server/tool/spec/codegen_tools.dart b/pkg/analysis_server/tool/spec/codegen_tools.dart
|
| index f79036e62c964133c93dd55840a95d45c8108587..4c1210c4116524263e30dc7f44defdb93f138a55 100644
|
| --- a/pkg/analysis_server/tool/spec/codegen_tools.dart
|
| +++ b/pkg/analysis_server/tool/spec/codegen_tools.dart
|
| @@ -411,7 +411,15 @@ class GeneratedDirectory extends GeneratedContent {
|
| return false;
|
| }
|
| });
|
| - if (outputFile.listSync().length != map.length) {
|
| + int nonHiddenFileCount = 0;
|
| + outputFile.listSync(
|
| + recursive: false,
|
| + followLinks: false).forEach((FileSystemEntity fileSystemEntity) {
|
| + if(fileSystemEntity is File && !basename(fileSystemEntity.path).startsWith('.')) {
|
| + nonHiddenFileCount++;
|
| + }
|
| + });
|
| + if (nonHiddenFileCount != map.length) {
|
| // The number of files generated doesn't match the number we expected to
|
| // generate.
|
| return false;
|
|
|