| 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 operation.analysis; | 5 library operation.analysis; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/analysis_server.dart'; | 7 import 'package:analysis_server/src/analysis_server.dart'; |
| 8 import 'package:analysis_server/src/computer/computer_highlights.dart'; | 8 import 'package:analysis_server/src/computer/computer_highlights.dart'; |
| 9 import 'package:analysis_server/src/computer/computer_navigation.dart'; | 9 import 'package:analysis_server/src/computer/computer_navigation.dart'; |
| 10 import 'package:analysis_server/src/computer/computer_occurrences.dart'; | 10 import 'package:analysis_server/src/computer/computer_occurrences.dart'; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 void sendAnalysisNotificationHighlights(AnalysisServer server, String file, | 31 void sendAnalysisNotificationHighlights(AnalysisServer server, String file, |
| 32 CompilationUnit dartUnit) { | 32 CompilationUnit dartUnit) { |
| 33 var regions = new DartUnitHighlightsComputer(dartUnit).compute(); | 33 var regions = new DartUnitHighlightsComputer(dartUnit).compute(); |
| 34 var params = new protocol.AnalysisHighlightsParams(file, regions); | 34 var params = new protocol.AnalysisHighlightsParams(file, regions); |
| 35 server.sendNotification(params.toNotification()); | 35 server.sendNotification(params.toNotification()); |
| 36 } | 36 } |
| 37 | 37 |
| 38 | 38 |
| 39 void sendAnalysisNotificationNavigation(AnalysisServer server, String file, | 39 void sendAnalysisNotificationNavigation(AnalysisServer server, String file, |
| 40 CompilationUnit dartUnit) { | 40 CompilationUnit dartUnit) { |
| 41 var regions = new DartUnitNavigationComputer(dartUnit).compute(); | 41 var computer = new DartUnitNavigationComputer(dartUnit); |
| 42 var params = new protocol.AnalysisNavigationParams(file, regions); | 42 computer.compute(); |
| 43 var params = new protocol.AnalysisNavigationParams( |
| 44 file, |
| 45 computer.regions, |
| 46 computer.targets, |
| 47 computer.files); |
| 43 server.sendNotification(params.toNotification()); | 48 server.sendNotification(params.toNotification()); |
| 44 } | 49 } |
| 45 | 50 |
| 46 | 51 |
| 47 void sendAnalysisNotificationOccurrences(AnalysisServer server, String file, | 52 void sendAnalysisNotificationOccurrences(AnalysisServer server, String file, |
| 48 CompilationUnit dartUnit) { | 53 CompilationUnit dartUnit) { |
| 49 var occurrences = new DartUnitOccurrencesComputer(dartUnit).compute(); | 54 var occurrences = new DartUnitOccurrencesComputer(dartUnit).compute(); |
| 50 var params = new protocol.AnalysisOccurrencesParams(file, occurrences); | 55 var params = new protocol.AnalysisOccurrencesParams(file, occurrences); |
| 51 server.sendNotification(params.toNotification()); | 56 server.sendNotification(params.toNotification()); |
| 52 } | 57 } |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // HTML | 182 // HTML |
| 178 { | 183 { |
| 179 HtmlUnit htmlUnit = notice.htmlUnit; | 184 HtmlUnit htmlUnit = notice.htmlUnit; |
| 180 if (htmlUnit != null) { | 185 if (htmlUnit != null) { |
| 181 index.indexHtmlUnit(context, htmlUnit); | 186 index.indexHtmlUnit(context, htmlUnit); |
| 182 } | 187 } |
| 183 } | 188 } |
| 184 } | 189 } |
| 185 } | 190 } |
| 186 } | 191 } |
| OLD | NEW |