Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(706)

Side by Side Diff: pkg/analysis_server/lib/src/operation/operation_analysis.dart

Issue 596893002: Rework launch data (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated Java side Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698