| 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/error/error.dart'; | 10 import 'package:analyzer/error/error.dart'; |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 } | 137 } |
| 138 } | 138 } |
| 139 | 139 |
| 140 @reflectiveTest | 140 @reflectiveTest |
| 141 class IncrementalResolverTest extends ResolverTestCase { | 141 class IncrementalResolverTest extends ResolverTestCase { |
| 142 Source source; | 142 Source source; |
| 143 String code; | 143 String code; |
| 144 LibraryElement library; | 144 LibraryElement library; |
| 145 CompilationUnit unit; | 145 CompilationUnit unit; |
| 146 | 146 |
| 147 @override | |
| 148 void reset() { | |
| 149 analysisContext2 = AnalysisContextFactory.contextWithCore(); | |
| 150 } | |
| 151 | |
| 152 @override | |
| 153 void resetWithOptions(AnalysisOptions options) { | |
| 154 AnalysisContextFactory.contextWithCoreAndOptions(options); | |
| 155 } | |
| 156 | |
| 157 void setUp() { | 147 void setUp() { |
| 158 super.setUp(); | 148 super.setUp(); |
| 159 logging.logger = logging.NULL_LOGGER; | 149 logging.logger = logging.NULL_LOGGER; |
| 160 } | 150 } |
| 161 | 151 |
| 162 void test_classMemberAccessor_body() { | 152 void test_classMemberAccessor_body() { |
| 163 _resolveUnit(r''' | 153 _resolveUnit(r''' |
| 164 class A { | 154 class A { |
| 165 int get test { | 155 int get test { |
| 166 return 1 + 2; | 156 return 1 + 2; |
| (...skipping 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2350 void logException(Object exception, [Object stackTrace]) { | 2340 void logException(Object exception, [Object stackTrace]) { |
| 2351 lastException = exception; | 2341 lastException = exception; |
| 2352 lastStackTrace = stackTrace; | 2342 lastStackTrace = stackTrace; |
| 2353 } | 2343 } |
| 2354 | 2344 |
| 2355 @override | 2345 @override |
| 2356 logging.LoggingTimer startTimer() { | 2346 logging.LoggingTimer startTimer() { |
| 2357 return new logging.LoggingTimer(this); | 2347 return new logging.LoggingTimer(this); |
| 2358 } | 2348 } |
| 2359 } | 2349 } |
| OLD | NEW |