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

Side by Side Diff: pkg/analyzer/test/generated/incremental_resolver_test.dart

Issue 2238443003: Fix for updating documentationComment for top-level variables. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 | « pkg/analyzer/lib/src/generated/incremental_resolver.dart ('k') | no next file » | 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 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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/incremental_resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698