| 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.engine_test; | 8 library engine.engine_test; |
| 9 | 9 |
| 10 import 'dart:async'; | 10 import 'dart:async'; |
| (...skipping 2230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2241 } | 2241 } |
| 2242 | 2242 |
| 2243 | 2243 |
| 2244 @ReflectiveTestCase() | 2244 @ReflectiveTestCase() |
| 2245 class AnalysisOptionsImplTest extends EngineTestCase { | 2245 class AnalysisOptionsImplTest extends EngineTestCase { |
| 2246 void test_AnalysisOptionsImpl_copy() { | 2246 void test_AnalysisOptionsImpl_copy() { |
| 2247 bool booleanValue = true; | 2247 bool booleanValue = true; |
| 2248 for (int i = 0; i < 2; i++, booleanValue = !booleanValue) { | 2248 for (int i = 0; i < 2; i++, booleanValue = !booleanValue) { |
| 2249 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 2249 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| 2250 options.analyzeFunctionBodies = booleanValue; | 2250 options.analyzeFunctionBodies = booleanValue; |
| 2251 options.analyzePolymer = booleanValue; | |
| 2252 options.cacheSize = i; | 2251 options.cacheSize = i; |
| 2253 options.dart2jsHint = booleanValue; | 2252 options.dart2jsHint = booleanValue; |
| 2254 options.enableDeferredLoading = booleanValue; | 2253 options.enableDeferredLoading = booleanValue; |
| 2255 options.generateSdkErrors = booleanValue; | 2254 options.generateSdkErrors = booleanValue; |
| 2256 options.hint = booleanValue; | 2255 options.hint = booleanValue; |
| 2257 options.incremental = booleanValue; | 2256 options.incremental = booleanValue; |
| 2258 options.preserveComments = booleanValue; | 2257 options.preserveComments = booleanValue; |
| 2259 AnalysisOptionsImpl copy = new AnalysisOptionsImpl.con1(options); | 2258 AnalysisOptionsImpl copy = new AnalysisOptionsImpl.con1(options); |
| 2260 expect(copy.analyzeFunctionBodies, options.analyzeFunctionBodies); | 2259 expect(copy.analyzeFunctionBodies, options.analyzeFunctionBodies); |
| 2261 expect(copy.analyzePolymer, options.analyzePolymer); | |
| 2262 expect(copy.cacheSize, options.cacheSize); | 2260 expect(copy.cacheSize, options.cacheSize); |
| 2263 expect(copy.dart2jsHint, options.dart2jsHint); | 2261 expect(copy.dart2jsHint, options.dart2jsHint); |
| 2264 expect(copy.enableDeferredLoading, options.enableDeferredLoading); | 2262 expect(copy.enableDeferredLoading, options.enableDeferredLoading); |
| 2265 expect(copy.enableEnum, options.enableEnum); | 2263 expect(copy.enableEnum, options.enableEnum); |
| 2266 expect(copy.generateSdkErrors, options.generateSdkErrors); | 2264 expect(copy.generateSdkErrors, options.generateSdkErrors); |
| 2267 expect(copy.hint, options.hint); | 2265 expect(copy.hint, options.hint); |
| 2268 expect(copy.incremental, options.incremental); | 2266 expect(copy.incremental, options.incremental); |
| 2269 expect(copy.preserveComments, options.preserveComments); | 2267 expect(copy.preserveComments, options.preserveComments); |
| 2270 } | 2268 } |
| 2271 } | 2269 } |
| 2272 | 2270 |
| 2273 void test_getAnalyzeFunctionBodies() { | 2271 void test_getAnalyzeFunctionBodies() { |
| 2274 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 2272 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| 2275 bool value = !options.analyzeFunctionBodies; | 2273 bool value = !options.analyzeFunctionBodies; |
| 2276 options.analyzeFunctionBodies = value; | 2274 options.analyzeFunctionBodies = value; |
| 2277 expect(options.analyzeFunctionBodies, value); | 2275 expect(options.analyzeFunctionBodies, value); |
| 2278 } | 2276 } |
| 2279 | 2277 |
| 2280 void test_getAnalyzePolymer() { | |
| 2281 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | |
| 2282 bool value = !options.analyzePolymer; | |
| 2283 options.analyzePolymer = value; | |
| 2284 expect(options.analyzePolymer, value); | |
| 2285 } | |
| 2286 | |
| 2287 void test_getCacheSize() { | 2278 void test_getCacheSize() { |
| 2288 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 2279 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| 2289 expect(options.cacheSize, AnalysisOptionsImpl.DEFAULT_CACHE_SIZE); | 2280 expect(options.cacheSize, AnalysisOptionsImpl.DEFAULT_CACHE_SIZE); |
| 2290 int value = options.cacheSize + 1; | 2281 int value = options.cacheSize + 1; |
| 2291 options.cacheSize = value; | 2282 options.cacheSize = value; |
| 2292 expect(options.cacheSize, value); | 2283 expect(options.cacheSize, value); |
| 2293 } | 2284 } |
| 2294 | 2285 |
| 2295 void test_getDart2jsHint() { | 2286 void test_getDart2jsHint() { |
| 2296 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); | 2287 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
| (...skipping 1836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4133 expect(entry.allErrors, hasLength(0)); | 4124 expect(entry.allErrors, hasLength(0)); |
| 4134 entry.setValue( | 4125 entry.setValue( |
| 4135 HtmlEntry.PARSE_ERRORS, | 4126 HtmlEntry.PARSE_ERRORS, |
| 4136 <AnalysisError>[ | 4127 <AnalysisError>[ |
| 4137 new AnalysisError.con1(source, ParserErrorCode.EXPECTED_TOKEN, [";"]
)]); | 4128 new AnalysisError.con1(source, ParserErrorCode.EXPECTED_TOKEN, [";"]
)]); |
| 4138 entry.setValue( | 4129 entry.setValue( |
| 4139 HtmlEntry.RESOLUTION_ERRORS, | 4130 HtmlEntry.RESOLUTION_ERRORS, |
| 4140 <AnalysisError>[ | 4131 <AnalysisError>[ |
| 4141 new AnalysisError.con1(source, HtmlWarningCode.INVALID_URI, ["-"])])
; | 4132 new AnalysisError.con1(source, HtmlWarningCode.INVALID_URI, ["-"])])
; |
| 4142 entry.setValue( | 4133 entry.setValue( |
| 4143 HtmlEntry.POLYMER_BUILD_ERRORS, | |
| 4144 <AnalysisError>[ | |
| 4145 new AnalysisError.con1(source, PolymerCode.INVALID_ATTRIBUTE_NAME, [
"-"])]); | |
| 4146 entry.setValue( | |
| 4147 HtmlEntry.POLYMER_RESOLUTION_ERRORS, | |
| 4148 <AnalysisError>[ | |
| 4149 new AnalysisError.con1(source, PolymerCode.INVALID_ATTRIBUTE_NAME, [
"-"])]); | |
| 4150 entry.setValue( | |
| 4151 HtmlEntry.HINTS, | 4134 HtmlEntry.HINTS, |
| 4152 <AnalysisError>[new AnalysisError.con1(source, HintCode.DEAD_CODE)]); | 4135 <AnalysisError>[new AnalysisError.con1(source, HintCode.DEAD_CODE)]); |
| 4153 expect(entry.allErrors, hasLength(5)); | 4136 expect(entry.allErrors, hasLength(3)); |
| 4154 } | 4137 } |
| 4155 | 4138 |
| 4156 void test_invalidateAllResolutionInformation() { | 4139 void test_invalidateAllResolutionInformation() { |
| 4157 HtmlEntry entry = _entryWithValidState(); | 4140 HtmlEntry entry = _entryWithValidState(); |
| 4158 entry.invalidateAllResolutionInformation(false); | 4141 entry.invalidateAllResolutionInformation(false); |
| 4159 expect( | |
| 4160 entry.getState(HtmlEntry.POLYMER_BUILD_ERRORS), | |
| 4161 same(CacheState.INVALID)); | |
| 4162 expect( | |
| 4163 entry.getState(HtmlEntry.POLYMER_RESOLUTION_ERRORS), | |
| 4164 same(CacheState.INVALID)); | |
| 4165 expect(entry.getState(HtmlEntry.ELEMENT), same(CacheState.INVALID)); | 4142 expect(entry.getState(HtmlEntry.ELEMENT), same(CacheState.INVALID)); |
| 4166 expect(entry.getState(HtmlEntry.HINTS), same(CacheState.INVALID)); | 4143 expect(entry.getState(HtmlEntry.HINTS), same(CacheState.INVALID)); |
| 4167 expect(entry.getState(SourceEntry.LINE_INFO), same(CacheState.VALID)); | 4144 expect(entry.getState(SourceEntry.LINE_INFO), same(CacheState.VALID)); |
| 4168 expect(entry.getState(HtmlEntry.PARSE_ERRORS), same(CacheState.VALID)); | 4145 expect(entry.getState(HtmlEntry.PARSE_ERRORS), same(CacheState.VALID)); |
| 4169 expect(entry.getState(HtmlEntry.PARSED_UNIT), same(CacheState.VALID)); | 4146 expect(entry.getState(HtmlEntry.PARSED_UNIT), same(CacheState.VALID)); |
| 4170 expect( | 4147 expect( |
| 4171 entry.getState(HtmlEntry.REFERENCED_LIBRARIES), | 4148 entry.getState(HtmlEntry.REFERENCED_LIBRARIES), |
| 4172 same(CacheState.VALID)); | 4149 same(CacheState.VALID)); |
| 4173 expect( | 4150 expect( |
| 4174 entry.getState(HtmlEntry.RESOLUTION_ERRORS), | 4151 entry.getState(HtmlEntry.RESOLUTION_ERRORS), |
| 4175 same(CacheState.INVALID)); | 4152 same(CacheState.INVALID)); |
| 4176 } | 4153 } |
| 4177 | 4154 |
| 4178 void test_invalidateAllResolutionInformation_includingUris() { | 4155 void test_invalidateAllResolutionInformation_includingUris() { |
| 4179 HtmlEntry entry = _entryWithValidState(); | 4156 HtmlEntry entry = _entryWithValidState(); |
| 4180 entry.invalidateAllResolutionInformation(true); | 4157 entry.invalidateAllResolutionInformation(true); |
| 4181 expect( | |
| 4182 entry.getState(HtmlEntry.POLYMER_BUILD_ERRORS), | |
| 4183 same(CacheState.INVALID)); | |
| 4184 expect( | |
| 4185 entry.getState(HtmlEntry.POLYMER_RESOLUTION_ERRORS), | |
| 4186 same(CacheState.INVALID)); | |
| 4187 expect(entry.getState(HtmlEntry.ELEMENT), same(CacheState.INVALID)); | 4158 expect(entry.getState(HtmlEntry.ELEMENT), same(CacheState.INVALID)); |
| 4188 expect(entry.getState(HtmlEntry.HINTS), same(CacheState.INVALID)); | 4159 expect(entry.getState(HtmlEntry.HINTS), same(CacheState.INVALID)); |
| 4189 expect(entry.getState(SourceEntry.LINE_INFO), same(CacheState.VALID)); | 4160 expect(entry.getState(SourceEntry.LINE_INFO), same(CacheState.VALID)); |
| 4190 expect(entry.getState(HtmlEntry.PARSE_ERRORS), same(CacheState.VALID)); | 4161 expect(entry.getState(HtmlEntry.PARSE_ERRORS), same(CacheState.VALID)); |
| 4191 expect(entry.getState(HtmlEntry.PARSED_UNIT), same(CacheState.VALID)); | 4162 expect(entry.getState(HtmlEntry.PARSED_UNIT), same(CacheState.VALID)); |
| 4192 expect( | 4163 expect( |
| 4193 entry.getState(HtmlEntry.REFERENCED_LIBRARIES), | 4164 entry.getState(HtmlEntry.REFERENCED_LIBRARIES), |
| 4194 same(CacheState.INVALID)); | 4165 same(CacheState.INVALID)); |
| 4195 expect( | 4166 expect( |
| 4196 entry.getState(HtmlEntry.RESOLUTION_ERRORS), | 4167 entry.getState(HtmlEntry.RESOLUTION_ERRORS), |
| (...skipping 13 matching lines...) Expand all Loading... |
| 4210 } | 4181 } |
| 4211 | 4182 |
| 4212 void test_setState_parsedUnit() { | 4183 void test_setState_parsedUnit() { |
| 4213 state = HtmlEntry.PARSED_UNIT; | 4184 state = HtmlEntry.PARSED_UNIT; |
| 4214 } | 4185 } |
| 4215 | 4186 |
| 4216 void test_setState_parseErrors() { | 4187 void test_setState_parseErrors() { |
| 4217 state = HtmlEntry.PARSE_ERRORS; | 4188 state = HtmlEntry.PARSE_ERRORS; |
| 4218 } | 4189 } |
| 4219 | 4190 |
| 4220 void test_setState_polymerBuildErrors() { | |
| 4221 state = HtmlEntry.POLYMER_BUILD_ERRORS; | |
| 4222 } | |
| 4223 | |
| 4224 void test_setState_polymerResolutionErrors() { | |
| 4225 state = HtmlEntry.POLYMER_RESOLUTION_ERRORS; | |
| 4226 } | |
| 4227 | |
| 4228 void test_setState_referencedLibraries() { | 4191 void test_setState_referencedLibraries() { |
| 4229 state = HtmlEntry.REFERENCED_LIBRARIES; | 4192 state = HtmlEntry.REFERENCED_LIBRARIES; |
| 4230 } | 4193 } |
| 4231 | 4194 |
| 4232 void test_setState_resolutionErrors() { | 4195 void test_setState_resolutionErrors() { |
| 4233 state = HtmlEntry.RESOLUTION_ERRORS; | 4196 state = HtmlEntry.RESOLUTION_ERRORS; |
| 4234 } | 4197 } |
| 4235 | 4198 |
| 4236 void test_setValue_element() { | 4199 void test_setValue_element() { |
| 4237 _setValue(HtmlEntry.ELEMENT, new HtmlElementImpl(null, "test.html")); | 4200 _setValue(HtmlEntry.ELEMENT, new HtmlElementImpl(null, "test.html")); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 4260 _setValue(HtmlEntry.PARSED_UNIT, new ht.HtmlUnit(null, null, null)); | 4223 _setValue(HtmlEntry.PARSED_UNIT, new ht.HtmlUnit(null, null, null)); |
| 4261 } | 4224 } |
| 4262 | 4225 |
| 4263 void test_setValue_parseErrors() { | 4226 void test_setValue_parseErrors() { |
| 4264 _setValue( | 4227 _setValue( |
| 4265 HtmlEntry.PARSE_ERRORS, | 4228 HtmlEntry.PARSE_ERRORS, |
| 4266 <AnalysisError>[ | 4229 <AnalysisError>[ |
| 4267 new AnalysisError.con1(null, HtmlWarningCode.INVALID_URI, ["-"])]); | 4230 new AnalysisError.con1(null, HtmlWarningCode.INVALID_URI, ["-"])]); |
| 4268 } | 4231 } |
| 4269 | 4232 |
| 4270 void test_setValue_polymerBuildErrors() { | |
| 4271 _setValue( | |
| 4272 HtmlEntry.POLYMER_BUILD_ERRORS, | |
| 4273 <AnalysisError>[ | |
| 4274 new AnalysisError.con1(null, PolymerCode.INVALID_ATTRIBUTE_NAME, ["-
"])]); | |
| 4275 } | |
| 4276 | |
| 4277 void test_setValue_polymerResolutionErrors() { | |
| 4278 _setValue( | |
| 4279 HtmlEntry.POLYMER_RESOLUTION_ERRORS, | |
| 4280 <AnalysisError>[ | |
| 4281 new AnalysisError.con1(null, PolymerCode.INVALID_ATTRIBUTE_NAME, ["-
"])]); | |
| 4282 } | |
| 4283 | |
| 4284 void test_setValue_referencedLibraries() { | 4233 void test_setValue_referencedLibraries() { |
| 4285 _setValue(HtmlEntry.REFERENCED_LIBRARIES, <Source>[new TestSource()]); | 4234 _setValue(HtmlEntry.REFERENCED_LIBRARIES, <Source>[new TestSource()]); |
| 4286 } | 4235 } |
| 4287 | 4236 |
| 4288 void test_setValue_resolutionErrors() { | 4237 void test_setValue_resolutionErrors() { |
| 4289 _setValue( | 4238 _setValue( |
| 4290 HtmlEntry.RESOLUTION_ERRORS, | 4239 HtmlEntry.RESOLUTION_ERRORS, |
| 4291 <AnalysisError>[ | 4240 <AnalysisError>[ |
| 4292 new AnalysisError.con1(null, HtmlWarningCode.INVALID_URI, ["-"])]); | 4241 new AnalysisError.con1(null, HtmlWarningCode.INVALID_URI, ["-"])]); |
| 4293 } | 4242 } |
| 4294 | 4243 |
| 4295 HtmlEntry _entryWithValidState() { | 4244 HtmlEntry _entryWithValidState() { |
| 4296 HtmlEntry entry = new HtmlEntry(); | 4245 HtmlEntry entry = new HtmlEntry(); |
| 4297 entry.setValue(HtmlEntry.ELEMENT, null); | 4246 entry.setValue(HtmlEntry.ELEMENT, null); |
| 4298 entry.setValue(HtmlEntry.HINTS, null); | 4247 entry.setValue(HtmlEntry.HINTS, null); |
| 4299 entry.setValue(SourceEntry.LINE_INFO, null); | 4248 entry.setValue(SourceEntry.LINE_INFO, null); |
| 4300 entry.setValue(HtmlEntry.PARSE_ERRORS, null); | 4249 entry.setValue(HtmlEntry.PARSE_ERRORS, null); |
| 4301 entry.setValue(HtmlEntry.PARSED_UNIT, null); | 4250 entry.setValue(HtmlEntry.PARSED_UNIT, null); |
| 4302 entry.setValue(HtmlEntry.POLYMER_BUILD_ERRORS, null); | |
| 4303 entry.setValue(HtmlEntry.POLYMER_RESOLUTION_ERRORS, null); | |
| 4304 entry.setValue(HtmlEntry.REFERENCED_LIBRARIES, null); | 4251 entry.setValue(HtmlEntry.REFERENCED_LIBRARIES, null); |
| 4305 entry.setValue(HtmlEntry.RESOLUTION_ERRORS, null); | 4252 entry.setValue(HtmlEntry.RESOLUTION_ERRORS, null); |
| 4306 expect(entry.getState(HtmlEntry.ELEMENT), same(CacheState.VALID)); | 4253 expect(entry.getState(HtmlEntry.ELEMENT), same(CacheState.VALID)); |
| 4307 expect(entry.getState(HtmlEntry.HINTS), same(CacheState.VALID)); | 4254 expect(entry.getState(HtmlEntry.HINTS), same(CacheState.VALID)); |
| 4308 expect(entry.getState(SourceEntry.LINE_INFO), same(CacheState.VALID)); | 4255 expect(entry.getState(SourceEntry.LINE_INFO), same(CacheState.VALID)); |
| 4309 expect(entry.getState(HtmlEntry.PARSE_ERRORS), same(CacheState.VALID)); | 4256 expect(entry.getState(HtmlEntry.PARSE_ERRORS), same(CacheState.VALID)); |
| 4310 expect(entry.getState(HtmlEntry.PARSED_UNIT), same(CacheState.VALID)); | 4257 expect(entry.getState(HtmlEntry.PARSED_UNIT), same(CacheState.VALID)); |
| 4311 expect( | 4258 expect( |
| 4312 entry.getState(HtmlEntry.POLYMER_BUILD_ERRORS), | |
| 4313 same(CacheState.VALID)); | |
| 4314 expect( | |
| 4315 entry.getState(HtmlEntry.POLYMER_RESOLUTION_ERRORS), | |
| 4316 same(CacheState.VALID)); | |
| 4317 expect( | |
| 4318 entry.getState(HtmlEntry.REFERENCED_LIBRARIES), | 4259 entry.getState(HtmlEntry.REFERENCED_LIBRARIES), |
| 4319 same(CacheState.VALID)); | 4260 same(CacheState.VALID)); |
| 4320 expect(entry.getState(HtmlEntry.RESOLUTION_ERRORS), same(CacheState.VALID)); | 4261 expect(entry.getState(HtmlEntry.RESOLUTION_ERRORS), same(CacheState.VALID)); |
| 4321 return entry; | 4262 return entry; |
| 4322 } | 4263 } |
| 4323 | 4264 |
| 4324 void _setValue(DataDescriptor descriptor, Object newValue) { | 4265 void _setValue(DataDescriptor descriptor, Object newValue) { |
| 4325 HtmlEntry entry = new HtmlEntry(); | 4266 HtmlEntry entry = new HtmlEntry(); |
| 4326 Object value = entry.getValue(descriptor); | 4267 Object value = entry.getValue(descriptor); |
| 4327 expect(newValue, isNot(same(value))); | 4268 expect(newValue, isNot(same(value))); |
| (...skipping 2459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6787 E visitParseDartTask(ParseDartTask task) { | 6728 E visitParseDartTask(ParseDartTask task) { |
| 6788 fail("Unexpectedly invoked visitParseDartTask"); | 6729 fail("Unexpectedly invoked visitParseDartTask"); |
| 6789 return null; | 6730 return null; |
| 6790 } | 6731 } |
| 6791 @override | 6732 @override |
| 6792 E visitParseHtmlTask(ParseHtmlTask task) { | 6733 E visitParseHtmlTask(ParseHtmlTask task) { |
| 6793 fail("Unexpectedly invoked visitParseHtmlTask"); | 6734 fail("Unexpectedly invoked visitParseHtmlTask"); |
| 6794 return null; | 6735 return null; |
| 6795 } | 6736 } |
| 6796 @override | 6737 @override |
| 6797 E visitPolymerBuildHtmlTask(PolymerBuildHtmlTask task) { | |
| 6798 fail("Unexpectedly invoked visitPolymerBuildHtmlTask"); | |
| 6799 return null; | |
| 6800 } | |
| 6801 @override | |
| 6802 E visitPolymerResolveHtmlTask(PolymerResolveHtmlTask task) { | |
| 6803 fail("Unexpectedly invoked visitPolymerResolveHtmlTask"); | |
| 6804 return null; | |
| 6805 } | |
| 6806 @override | |
| 6807 E visitResolveDartLibraryCycleTask(ResolveDartLibraryCycleTask task) { | 6738 E visitResolveDartLibraryCycleTask(ResolveDartLibraryCycleTask task) { |
| 6808 fail("Unexpectedly invoked visitResolveDartLibraryCycleTask"); | 6739 fail("Unexpectedly invoked visitResolveDartLibraryCycleTask"); |
| 6809 return null; | 6740 return null; |
| 6810 } | 6741 } |
| 6811 @override | 6742 @override |
| 6812 E visitResolveDartLibraryTask(ResolveDartLibraryTask task) { | 6743 E visitResolveDartLibraryTask(ResolveDartLibraryTask task) { |
| 6813 fail("Unexpectedly invoked visitResolveDartLibraryTask"); | 6744 fail("Unexpectedly invoked visitResolveDartLibraryTask"); |
| 6814 return null; | 6745 return null; |
| 6815 } | 6746 } |
| 6816 @override | 6747 @override |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7010 bool contains(Source source) => source == libB; | 6941 bool contains(Source source) => source == libB; |
| 7011 } | 6942 } |
| 7012 | 6943 |
| 7013 | 6944 |
| 7014 class _UniversalCachePartitionTest_test_setMaxCacheSize implements | 6945 class _UniversalCachePartitionTest_test_setMaxCacheSize implements |
| 7015 CacheRetentionPolicy { | 6946 CacheRetentionPolicy { |
| 7016 @override | 6947 @override |
| 7017 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => | 6948 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => |
| 7018 RetentionPriority.LOW; | 6949 RetentionPriority.LOW; |
| 7019 } | 6950 } |
| OLD | NEW |