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

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

Issue 854363005: Remove Element.users support. (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/utilities_collection.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 2071 matching lines...) Expand 10 before | Expand all | Expand 10 after
2082 String code; 2082 String code;
2083 LibraryElement library; 2083 LibraryElement library;
2084 CompilationUnit unit; 2084 CompilationUnit unit;
2085 2085
2086 void setUp() { 2086 void setUp() {
2087 super.setUp(); 2087 super.setUp();
2088 test_resolveApiChanges = true; 2088 test_resolveApiChanges = true;
2089 log.logger = log.NULL_LOGGER; 2089 log.logger = log.NULL_LOGGER;
2090 } 2090 }
2091 2091
2092 void test_api_method_edit_returnType() {
2093 _resolveUnit(r'''
2094 class A {
2095 int m() {
2096 return null;
2097 }
2098 }
2099 main() {
2100 A a = new A();
2101 int v = a.m();
2102 print(v);
2103 }
2104 ''');
2105 _resolve(_editString('int m', 'String m'), _isDeclaration);
2106 // We don't add or fix an error, but we verify that type of "v"
2107 // is updated from "int" to "String".
2108 }
2109
2110 void test_classMemberAccessor_body() { 2092 void test_classMemberAccessor_body() {
2111 _resolveUnit(r''' 2093 _resolveUnit(r'''
2112 class A { 2094 class A {
2113 int get test { 2095 int get test {
2114 return 1 + 2; 2096 return 1 + 2;
2115 } 2097 }
2116 }'''); 2098 }''');
2117 _resolve(_editString('+', '*'), _isFunctionBody); 2099 _resolve(_editString('+', '*'), _isFunctionBody);
2118 } 2100 }
2119 2101
(...skipping 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after
3696 } 3678 }
3697 } 3679 }
3698 3680
3699 3681
3700 class _Edit { 3682 class _Edit {
3701 final int offset; 3683 final int offset;
3702 final int length; 3684 final int length;
3703 final String replacement; 3685 final String replacement;
3704 _Edit(this.offset, this.length, this.replacement); 3686 _Edit(this.offset, this.length, this.replacement);
3705 } 3687 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/utilities_collection.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698