| OLD | NEW |
| 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 source.pub_package_map_provider; | 5 library analyzer.source.pub_package_map_provider; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 import 'dart:core' hide Resource; | 9 import 'dart:core' hide Resource; |
| 10 import 'dart:io' as io; | 10 import 'dart:io' as io; |
| 11 | 11 |
| 12 import 'package:analyzer/file_system/file_system.dart'; | 12 import 'package:analyzer/file_system/file_system.dart'; |
| 13 import 'package:analyzer/source/package_map_provider.dart'; | 13 import 'package:analyzer/source/package_map_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_io.dart'; | 15 import 'package:analyzer/src/generated/sdk_io.dart'; |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 String workingDirectory = folder.path; | 174 String workingDirectory = folder.path; |
| 175 int subprocessId = AnalysisEngine.instance.instrumentationService | 175 int subprocessId = AnalysisEngine.instance.instrumentationService |
| 176 .logSubprocessStart(executablePath, arguments, workingDirectory); | 176 .logSubprocessStart(executablePath, arguments, workingDirectory); |
| 177 io.ProcessResult result = io.Process | 177 io.ProcessResult result = io.Process |
| 178 .runSync(executablePath, arguments, workingDirectory: workingDirectory); | 178 .runSync(executablePath, arguments, workingDirectory: workingDirectory); |
| 179 AnalysisEngine.instance.instrumentationService.logSubprocessResult( | 179 AnalysisEngine.instance.instrumentationService.logSubprocessResult( |
| 180 subprocessId, result.exitCode, result.stdout, result.stderr); | 180 subprocessId, result.exitCode, result.stdout, result.stderr); |
| 181 return result; | 181 return result; |
| 182 } | 182 } |
| 183 } | 183 } |
| OLD | NEW |