| 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 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 Loading... |
| 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 } |
| OLD | NEW |