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 import 'package:analysis_server/plugin/protocol/protocol.dart' as protocol; | 5 import 'package:analysis_server/protocol/protocol_generated.dart' as protocol; |
6 import 'package:analysis_server/src/analysis_server.dart' show AnalysisServer; | 6 import 'package:analysis_server/src/analysis_server.dart' show AnalysisServer; |
7 import 'package:analysis_server/src/domains/analysis/navigation.dart'; | 7 import 'package:analysis_server/src/domains/analysis/navigation.dart'; |
8 import 'package:analysis_server/src/domains/analysis/navigation_dart.dart'; | 8 import 'package:analysis_server/src/domains/analysis/navigation_dart.dart'; |
9 import 'package:analysis_server/src/domains/analysis/occurrences.dart'; | 9 import 'package:analysis_server/src/domains/analysis/occurrences.dart'; |
10 import 'package:analysis_server/src/domains/analysis/occurrences_dart.dart'; | 10 import 'package:analysis_server/src/domains/analysis/occurrences_dart.dart'; |
11 import 'package:analysis_server/src/protocol_server.dart' as protocol; | 11 import 'package:analysis_server/src/protocol_server.dart' as protocol; |
12 import 'package:analyzer/src/dart/analysis/driver.dart'; | 12 import 'package:analyzer/src/dart/analysis/driver.dart'; |
13 | 13 |
14 void new_sendDartNotificationNavigation( | 14 void new_sendDartNotificationNavigation( |
15 AnalysisServer analysisServer, AnalysisResult result) { | 15 AnalysisServer analysisServer, AnalysisResult result) { |
(...skipping 20 matching lines...) Expand all Loading... |
36 } | 36 } |
37 } | 37 } |
38 | 38 |
39 void new_sendErrorNotification( | 39 void new_sendErrorNotification( |
40 AnalysisServer analysisServer, AnalysisResult result) { | 40 AnalysisServer analysisServer, AnalysisResult result) { |
41 var serverErrors = protocol.doAnalysisError_listFromEngine( | 41 var serverErrors = protocol.doAnalysisError_listFromEngine( |
42 result.driver.analysisOptions, result.lineInfo, result.errors); | 42 result.driver.analysisOptions, result.lineInfo, result.errors); |
43 var params = new protocol.AnalysisErrorsParams(result.path, serverErrors); | 43 var params = new protocol.AnalysisErrorsParams(result.path, serverErrors); |
44 analysisServer.sendNotification(params.toNotification()); | 44 analysisServer.sendNotification(params.toNotification()); |
45 } | 45 } |
OLD | NEW |