| 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'; |
| 11 import 'package:analysis_server/src/computer/computer_outline.dart'; | 11 import 'package:analysis_server/src/computer/computer_outline.dart'; |
| 12 import 'package:analysis_server/src/computer/computer_overrides.dart'; | 12 import 'package:analysis_server/src/computer/computer_overrides.dart'; |
| 13 import 'package:analysis_server/src/operation/operation.dart'; | 13 import 'package:analysis_server/src/operation/operation.dart'; |
| 14 import 'package:analysis_server/src/protocol.dart' as protocol; | 14 import 'package:analysis_server/src/protocol_server.dart' as protocol; |
| 15 import 'package:analysis_server/src/services/index/index.dart'; | 15 import 'package:analysis_server/src/services/index/index.dart'; |
| 16 import 'package:analyzer/src/generated/ast.dart'; | 16 import 'package:analyzer/src/generated/ast.dart'; |
| 17 import 'package:analyzer/src/generated/engine.dart'; | 17 import 'package:analyzer/src/generated/engine.dart'; |
| 18 import 'package:analyzer/src/generated/error.dart'; | 18 import 'package:analyzer/src/generated/error.dart'; |
| 19 import 'package:analyzer/src/generated/html.dart'; | 19 import 'package:analyzer/src/generated/html.dart'; |
| 20 import 'package:analyzer/src/generated/source.dart'; | 20 import 'package:analyzer/src/generated/source.dart'; |
| 21 | 21 |
| 22 | 22 |
| 23 void sendAnalysisNotificationErrors(AnalysisServer server, String file, | 23 void sendAnalysisNotificationErrors(AnalysisServer server, String file, |
| 24 LineInfo lineInfo, List<AnalysisError> errors) { | 24 LineInfo lineInfo, List<AnalysisError> errors) { |
| 25 server.sendNotification(new protocol.AnalysisErrorsParams(file, | 25 server.sendNotification(new protocol.AnalysisErrorsParams(file, |
| 26 protocol.AnalysisError.listFromEngine(lineInfo, errors)).toNotification())
; | 26 protocol.doAnalysisError_listFromEngine(lineInfo, errors)).toNotification(
)); |
| 27 } | 27 } |
| 28 | 28 |
| 29 | 29 |
| 30 void sendAnalysisNotificationHighlights(AnalysisServer server, String file, | 30 void sendAnalysisNotificationHighlights(AnalysisServer server, String file, |
| 31 CompilationUnit dartUnit) { | 31 CompilationUnit dartUnit) { |
| 32 server.sendNotification(new protocol.AnalysisHighlightsParams(file, | 32 server.sendNotification(new protocol.AnalysisHighlightsParams(file, |
| 33 new DartUnitHighlightsComputer(dartUnit).compute()).toNotification()); | 33 new DartUnitHighlightsComputer(dartUnit).compute()).toNotification()); |
| 34 } | 34 } |
| 35 | 35 |
| 36 | 36 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // HTML | 159 // HTML |
| 160 { | 160 { |
| 161 HtmlUnit htmlUnit = notice.htmlUnit; | 161 HtmlUnit htmlUnit = notice.htmlUnit; |
| 162 if (htmlUnit != null) { | 162 if (htmlUnit != null) { |
| 163 index.indexHtmlUnit(context, htmlUnit); | 163 index.indexHtmlUnit(context, htmlUnit); |
| 164 } | 164 } |
| 165 } | 165 } |
| 166 } | 166 } |
| 167 } | 167 } |
| 168 } | 168 } |
| OLD | NEW |