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

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

Issue 844063002: Update errors offsets during incremental comment resolution. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
« 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 engine.incremental_resolver_test; 5 library engine.incremental_resolver_test;
6 6
7 import 'package:analyzer/src/generated/ast.dart'; 7 import 'package:analyzer/src/generated/ast.dart';
8 import 'package:analyzer/src/generated/element.dart'; 8 import 'package:analyzer/src/generated/element.dart';
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/error.dart'; 10 import 'package:analyzer/src/generated/error.dart';
(...skipping 2443 matching lines...) Expand 10 before | Expand all | Expand 10 after
2454 class A {} 2454 class A {}
2455 '''); 2455 ''');
2456 } 2456 }
2457 2457
2458 void test_dartDoc_clumsy_updateText_insert() { 2458 void test_dartDoc_clumsy_updateText_insert() {
2459 _resolveUnit(r''' 2459 _resolveUnit(r'''
2460 /** 2460 /**
2461 * A function [main] with a parameter [p] of type [int]. 2461 * A function [main] with a parameter [p] of type [int].
2462 */ 2462 */
2463 main(int p) { 2463 main(int p) {
2464 unresolvedFunctionProblem();
2464 } 2465 }
2465 /** 2466 /**
2466 * Other comment with [int] reference. 2467 * Other comment with [int] reference.
2467 */ 2468 */
2468 foo() {} 2469 foo() {}
2469 '''); 2470 ''');
2470 _updateAndValidate(r''' 2471 _updateAndValidate(r'''
2471 /** 2472 /**
2472 * A function [main] with a parameter [p] of type [int]. 2473 * A function [main] with a parameter [p] of type [int].
2473 * Inserted text with [String] reference. 2474 * Inserted text with [String] reference.
2474 */ 2475 */
2475 main(int p) { 2476 main(int p) {
2477 unresolvedFunctionProblem();
2476 } 2478 }
2477 /** 2479 /**
2478 * Other comment with [int] reference. 2480 * Other comment with [int] reference.
2479 */ 2481 */
2480 foo() {} 2482 foo() {}
2481 '''); 2483 ''');
2482 } 2484 }
2483 2485
2484 void test_dartDoc_clumsy_updateText_remove() { 2486 void test_dartDoc_clumsy_updateText_remove() {
2485 _resolveUnit(r''' 2487 _resolveUnit(r'''
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
3400 } 3402 }
3401 } 3403 }
3402 3404
3403 3405
3404 class _Edit { 3406 class _Edit {
3405 final int offset; 3407 final int offset;
3406 final int length; 3408 final int length;
3407 final String replacement; 3409 final String replacement;
3408 _Edit(this.offset, this.length, this.replacement); 3410 _Edit(this.offset, this.length, this.replacement);
3409 } 3411 }
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