| 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/src/dart/element/element.dart'; | 9 import 'package:analyzer/src/dart/element/element.dart'; |
| 10 import 'package:analyzer/src/generated/engine.dart' | 10 import 'package:analyzer/src/generated/engine.dart' |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 variablesWithNotConstInitializers.add('a2'); | 151 variablesWithNotConstInitializers.add('a2'); |
| 152 super.test_canInferAlsoFromStaticAndInstanceFieldsFlagOn(); | 152 super.test_canInferAlsoFromStaticAndInstanceFieldsFlagOn(); |
| 153 } | 153 } |
| 154 | 154 |
| 155 @override | 155 @override |
| 156 @failingTest | 156 @failingTest |
| 157 void test_genericMethods_inferJSBuiltin() { | 157 void test_genericMethods_inferJSBuiltin() { |
| 158 super.test_genericMethods_inferJSBuiltin(); | 158 super.test_genericMethods_inferJSBuiltin(); |
| 159 } | 159 } |
| 160 | 160 |
| 161 @override |
| 162 @failingTest |
| 163 void test_genericMethods_usesGreatestLowerBound() { |
| 164 // FunctionElementForLink_Local does not implement properties used by |
| 165 // FunctionTypeImpl (in particular: returnType, parameters, typeParameters). |
| 166 super.test_genericMethods_usesGreatestLowerBound(); |
| 167 } |
| 168 |
| 161 void test_infer_extractIndex_custom() { | 169 void test_infer_extractIndex_custom() { |
| 162 var unit = checkFile(''' | 170 var unit = checkFile(''' |
| 163 class A { | 171 class A { |
| 164 String operator [](_) => null; | 172 String operator [](_) => null; |
| 165 } | 173 } |
| 166 var a = new A(); | 174 var a = new A(); |
| 167 var b = a[0]; | 175 var b = a[0]; |
| 168 '''); | 176 '''); |
| 169 expect(unit.topLevelVariables[1].type.toString(), 'String'); | 177 expect(unit.topLevelVariables[1].type.toString(), 'String'); |
| 170 } | 178 } |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 } | 687 } |
| 680 | 688 |
| 681 UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource); | 689 UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource); |
| 682 LinkedLibraryBuilder linkedLibrary = | 690 LinkedLibraryBuilder linkedLibrary = |
| 683 prelink(definingUnit, getPart, getImport); | 691 prelink(definingUnit, getPart, getImport); |
| 684 linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) { | 692 linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) { |
| 685 _serializeLibrary(resolveRelativeUri(d.uri)); | 693 _serializeLibrary(resolveRelativeUri(d.uri)); |
| 686 }); | 694 }); |
| 687 } | 695 } |
| 688 } | 696 } |
| OLD | NEW |