OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 import 'package:analysis_server/protocol/protocol.dart'; | 5 import 'package:analysis_server/protocol/protocol.dart'; |
6 import 'package:analysis_server/protocol/protocol_generated.dart' | 6 import 'package:analysis_server/protocol/protocol_generated.dart' |
7 hide AnalysisOptions; | 7 hide AnalysisOptions; |
8 import 'package:analysis_server/src/constants.dart'; | 8 import 'package:analysis_server/src/constants.dart'; |
9 import 'package:analysis_server/src/domain_analysis.dart'; | 9 import 'package:analysis_server/src/domain_analysis.dart'; |
10 import 'package:analyzer/src/generated/engine.dart'; | 10 import 'package:analyzer/src/generated/engine.dart'; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 void setStrongMode(bool isSet) { | 66 void setStrongMode(bool isSet) { |
67 addOptionsFile(''' | 67 addOptionsFile(''' |
68 analyzer: | 68 analyzer: |
69 strong-mode: $isSet | 69 strong-mode: $isSet |
70 '''); | 70 '''); |
71 } | 71 } |
72 | 72 |
73 @override | 73 @override |
74 void setUp() { | 74 void setUp() { |
75 enableNewAnalysisDriver = true; | |
76 generateSummaryFiles = true; | 75 generateSummaryFiles = true; |
77 registerLintRules(); | 76 registerLintRules(); |
78 super.setUp(); | 77 super.setUp(); |
79 server.handlers = [new AnalysisDomainHandler(server)]; | 78 server.handlers = [new AnalysisDomainHandler(server)]; |
80 } | 79 } |
81 | 80 |
82 @override | 81 @override |
83 void tearDown() { | 82 void tearDown() { |
84 filesErrors[optionsFilePath] = []; | 83 filesErrors[optionsFilePath] = []; |
85 filesErrors[testFile] = []; | 84 filesErrors[testFile] = []; |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 @override | 335 @override |
337 String get optionsFilePath => '$projectPath/analysis_options.yaml'; | 336 String get optionsFilePath => '$projectPath/analysis_options.yaml'; |
338 } | 337 } |
339 | 338 |
340 @reflectiveTest | 339 @reflectiveTest |
341 class OldAnalysisOptionsFileNotificationTest | 340 class OldAnalysisOptionsFileNotificationTest |
342 extends AnalysisOptionsFileNotificationTest { | 341 extends AnalysisOptionsFileNotificationTest { |
343 @override | 342 @override |
344 String get optionsFilePath => '$projectPath/.analysis_options'; | 343 String get optionsFilePath => '$projectPath/.analysis_options'; |
345 } | 344 } |
OLD | NEW |