| 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/ast/token.dart'; | 8 import 'package:analyzer/dart/ast/token.dart'; |
| 9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
| 10 import 'package:analyzer/src/context/cache.dart'; | 10 import 'package:analyzer/src/context/cache.dart'; |
| (...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 class A { | 571 class A { |
| 572 /** | 572 /** |
| 573 * A field [field] of the type [int] in the class [A]. | 573 * A field [field] of the type [int] in the class [A]. |
| 574 * Updated, with a reference to the [String] type. | 574 * Updated, with a reference to the [String] type. |
| 575 */ | 575 */ |
| 576 int field; | 576 int field; |
| 577 } | 577 } |
| 578 '''); | 578 '''); |
| 579 } | 579 } |
| 580 | 580 |
| 581 void test_dartDoc_beforeTopLevelVariable() { |
| 582 _resolveUnit(r''' |
| 583 /** |
| 584 * Variables [V1] and [V2] of type [int]. |
| 585 */ |
| 586 int V1, V2; |
| 587 '''); |
| 588 _updateAndValidate(r''' |
| 589 /** |
| 590 * Variables [V1] and [V2] of type [int]. |
| 591 * Updated, with a reference to the [String] type. |
| 592 */ |
| 593 int V1, V2; |
| 594 '''); |
| 595 } |
| 596 |
| 581 void test_dartDoc_clumsy_addReference() { | 597 void test_dartDoc_clumsy_addReference() { |
| 582 _resolveUnit(r''' | 598 _resolveUnit(r''' |
| 583 /** | 599 /** |
| 584 * aaa bbbb | 600 * aaa bbbb |
| 585 */ | 601 */ |
| 586 main() { | 602 main() { |
| 587 } | 603 } |
| 588 '''); | 604 '''); |
| 589 _updateAndValidate(r''' | 605 _updateAndValidate(r''' |
| 590 /** | 606 /** |
| (...skipping 1743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2334 void logException(Object exception, [Object stackTrace]) { | 2350 void logException(Object exception, [Object stackTrace]) { |
| 2335 lastException = exception; | 2351 lastException = exception; |
| 2336 lastStackTrace = stackTrace; | 2352 lastStackTrace = stackTrace; |
| 2337 } | 2353 } |
| 2338 | 2354 |
| 2339 @override | 2355 @override |
| 2340 logging.LoggingTimer startTimer() { | 2356 logging.LoggingTimer startTimer() { |
| 2341 return new logging.LoggingTimer(this); | 2357 return new logging.LoggingTimer(this); |
| 2342 } | 2358 } |
| 2343 } | 2359 } |
| OLD | NEW |