| 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 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |