| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 sendAnalysisNotificationOverrides(server, file, dartUnit); | 133 sendAnalysisNotificationOverrides(server, file, dartUnit); |
| 134 } | 134 } |
| 135 } | 135 } |
| 136 if (server.shouldSendErrorsNotificationFor(file)) { | 136 if (server.shouldSendErrorsNotificationFor(file)) { |
| 137 sendAnalysisNotificationErrors( | 137 sendAnalysisNotificationErrors( |
| 138 server, | 138 server, |
| 139 file, | 139 file, |
| 140 notice.lineInfo, | 140 notice.lineInfo, |
| 141 notice.errors); | 141 notice.errors); |
| 142 } | 142 } |
| 143 server.fileAnalyzed(notice); |
| 143 } | 144 } |
| 144 } | 145 } |
| 145 | 146 |
| 146 void updateIndex(Index index, List<ChangeNotice> notices) { | 147 void updateIndex(Index index, List<ChangeNotice> notices) { |
| 147 if (index == null) { | 148 if (index == null) { |
| 148 return; | 149 return; |
| 149 } | 150 } |
| 150 for (ChangeNotice notice in notices) { | 151 for (ChangeNotice notice in notices) { |
| 151 // Dart | 152 // Dart |
| 152 { | 153 { |
| 153 CompilationUnit dartUnit = notice.compilationUnit; | 154 CompilationUnit dartUnit = notice.compilationUnit; |
| 154 if (dartUnit != null) { | 155 if (dartUnit != null) { |
| 155 index.indexUnit(context, dartUnit); | 156 index.indexUnit(context, dartUnit); |
| 156 } | 157 } |
| 157 } | 158 } |
| 158 // HTML | 159 // HTML |
| 159 { | 160 { |
| 160 HtmlUnit htmlUnit = notice.htmlUnit; | 161 HtmlUnit htmlUnit = notice.htmlUnit; |
| 161 if (htmlUnit != null) { | 162 if (htmlUnit != null) { |
| 162 index.indexHtmlUnit(context, htmlUnit); | 163 index.indexHtmlUnit(context, htmlUnit); |
| 163 } | 164 } |
| 164 } | 165 } |
| 165 } | 166 } |
| 166 } | 167 } |
| 167 } | 168 } |
| OLD | NEW |