| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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.src.summary.resynthesize_ast_test; | 5 library analyzer.test.src.summary.resynthesize_ast_test; |
| 6 | 6 |
| 7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
| 8 import 'package:analyzer/dart/element/element.dart'; | 8 import 'package:analyzer/dart/element/element.dart'; |
| 9 import 'package:analyzer/error/error.dart'; | 9 import 'package:analyzer/error/error.dart'; |
| 10 import 'package:analyzer/src/dart/element/element.dart'; | 10 import 'package:analyzer/src/dart/element/element.dart'; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 variablesWithNotConstInitializers.add('a2'); | 152 variablesWithNotConstInitializers.add('a2'); |
| 153 super.test_canInferAlsoFromStaticAndInstanceFieldsFlagOn(); | 153 super.test_canInferAlsoFromStaticAndInstanceFieldsFlagOn(); |
| 154 } | 154 } |
| 155 | 155 |
| 156 @override | 156 @override |
| 157 @failingTest | 157 @failingTest |
| 158 void test_circularReference_viaClosures_initializerTypes() { | 158 void test_circularReference_viaClosures_initializerTypes() { |
| 159 super.test_circularReference_viaClosures_initializerTypes(); | 159 super.test_circularReference_viaClosures_initializerTypes(); |
| 160 } | 160 } |
| 161 | 161 |
| 162 @override | |
| 163 @failingTest | |
| 164 void test_constructors_inferFromArguments() { | |
| 165 // TODO(jmesserly): does this need to be implemented in AST summaries? | |
| 166 // The test might need a change as well to not be based on local variable | |
| 167 // types, which don't seem to be available. | |
| 168 super.test_constructors_inferFromArguments(); | |
| 169 } | |
| 170 | |
| 171 @override | |
| 172 @failingTest | |
| 173 void test_constructors_inferFromArguments_const() { | |
| 174 super.test_constructors_inferFromArguments_const(); | |
| 175 } | |
| 176 | |
| 177 void test_infer_extractIndex_custom() { | 162 void test_infer_extractIndex_custom() { |
| 178 var unit = checkFile(''' | 163 var unit = checkFile(''' |
| 179 class A { | 164 class A { |
| 180 String operator [](_) => null; | 165 String operator [](_) => null; |
| 181 } | 166 } |
| 182 var a = new A(); | 167 var a = new A(); |
| 183 var b = a[0]; | 168 var b = a[0]; |
| 184 '''); | 169 '''); |
| 185 expect(unit.topLevelVariables[1].type.toString(), 'String'); | 170 expect(unit.topLevelVariables[1].type.toString(), 'String'); |
| 186 } | 171 } |
| (...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 } | 905 } |
| 921 | 906 |
| 922 @override | 907 @override |
| 923 DartSdk createDartSdk() => AbstractContextTest.SHARED_MOCK_SDK; | 908 DartSdk createDartSdk() => AbstractContextTest.SHARED_MOCK_SDK; |
| 924 | 909 |
| 925 @override | 910 @override |
| 926 TestSummaryResynthesizer encodeDecodeLibrarySource(Source source) { | 911 TestSummaryResynthesizer encodeDecodeLibrarySource(Source source) { |
| 927 return _encodeLibrary(source); | 912 return _encodeLibrary(source); |
| 928 } | 913 } |
| 929 } | 914 } |
| OLD | NEW |