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

Side by Side Diff: pkg/analysis_server/lib/src/domain_analysis.dart

Issue 1131373004: Propogate and handle lint analysis option. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged master. Created 5 years, 7 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/incremental_resolver.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 domain.analysis; 5 library domain.analysis;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/analysis_server.dart'; 9 import 'package:analysis_server/src/analysis_server.dart';
10 import 'package:analysis_server/src/computer/computer_hover.dart'; 10 import 'package:analysis_server/src/computer/computer_hover.dart';
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 if (newOptions.generateDart2jsHints != null) { 214 if (newOptions.generateDart2jsHints != null) {
215 updaters.add((engine.AnalysisOptionsImpl options) { 215 updaters.add((engine.AnalysisOptionsImpl options) {
216 options.dart2jsHint = newOptions.generateDart2jsHints; 216 options.dart2jsHint = newOptions.generateDart2jsHints;
217 }); 217 });
218 } 218 }
219 if (newOptions.generateHints != null) { 219 if (newOptions.generateHints != null) {
220 updaters.add((engine.AnalysisOptionsImpl options) { 220 updaters.add((engine.AnalysisOptionsImpl options) {
221 options.hint = newOptions.generateHints; 221 options.hint = newOptions.generateHints;
222 }); 222 });
223 } 223 }
224 if (newOptions.generateLints != null) {
225 updaters.add((engine.AnalysisOptionsImpl options) {
226 options.lint = newOptions.generateLints;
227 });
228 }
224 server.updateOptions(updaters); 229 server.updateOptions(updaters);
225 return new AnalysisUpdateOptionsResult().toResponse(request.id); 230 return new AnalysisUpdateOptionsResult().toResponse(request.id);
226 } 231 }
227 } 232 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/incremental_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698