| 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 analyzer.test.generated.incremental_resolver_test; | 5 library analyzer.test.generated.incremental_resolver_test; |
| 6 | 6 |
| 7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
| 8 import 'package:analyzer/dart/element/element.dart'; | 8 import 'package:analyzer/dart/element/element.dart'; |
| 9 import 'package:analyzer/src/context/cache.dart'; | 9 import 'package:analyzer/src/context/cache.dart'; |
| 10 import 'package:analyzer/src/dart/ast/utilities.dart'; | 10 import 'package:analyzer/src/dart/ast/utilities.dart'; |
| (...skipping 4526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4537 _foo() { | 4537 _foo() { |
| 4538 print(12); | 4538 print(12); |
| 4539 } | 4539 } |
| 4540 } | 4540 } |
| 4541 '''); | 4541 '''); |
| 4542 // no hints | 4542 // no hints |
| 4543 List<AnalysisError> errors = analysisContext.getErrors(source).errors; | 4543 List<AnalysisError> errors = analysisContext.getErrors(source).errors; |
| 4544 expect(errors, isEmpty); | 4544 expect(errors, isEmpty); |
| 4545 } | 4545 } |
| 4546 | 4546 |
| 4547 void test_updateConstantInitializer() { |
| 4548 _resolveUnit(r''' |
| 4549 main() { |
| 4550 const v = const [Unknown]; |
| 4551 } |
| 4552 '''); |
| 4553 _updateAndValidate(r''' |
| 4554 main() { |
| 4555 const v = const [Unknown]; |
| 4556 } |
| 4557 '''); |
| 4558 } |
| 4559 |
| 4547 void test_updateErrors_addNew_hint1() { | 4560 void test_updateErrors_addNew_hint1() { |
| 4548 _resolveUnit(r''' | 4561 _resolveUnit(r''' |
| 4549 int main() { | 4562 int main() { |
| 4550 return 42; | 4563 return 42; |
| 4551 } | 4564 } |
| 4552 '''); | 4565 '''); |
| 4553 _updateAndValidate(r''' | 4566 _updateAndValidate(r''' |
| 4554 int main() { | 4567 int main() { |
| 4555 } | 4568 } |
| 4556 '''); | 4569 '''); |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5179 @override | 5192 @override |
| 5180 void logException(Object exception, [Object stackTrace]) { | 5193 void logException(Object exception, [Object stackTrace]) { |
| 5181 hasError = true; | 5194 hasError = true; |
| 5182 } | 5195 } |
| 5183 | 5196 |
| 5184 @override | 5197 @override |
| 5185 logging.LoggingTimer startTimer() { | 5198 logging.LoggingTimer startTimer() { |
| 5186 return new logging.LoggingTimer(this); | 5199 return new logging.LoggingTimer(this); |
| 5187 } | 5200 } |
| 5188 } | 5201 } |
| OLD | NEW |