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

Side by Side Diff: pkg/analyzer/test/src/summary/resynthesize_ast_test.dart

Issue 2015833004: Fix circularity detection for AST-based type inference in the presence of closures. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 } 147 }
148 148
149 @override 149 @override
150 void test_canInferAlsoFromStaticAndInstanceFieldsFlagOn() { 150 void test_canInferAlsoFromStaticAndInstanceFieldsFlagOn() {
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_circularReference_viaClosures_initializerTypes() {
158 super.test_circularReference_viaClosures_initializerTypes();
159 }
160
161 @override
162 @failingTest
157 void test_genericMethods_inferJSBuiltin() { 163 void test_genericMethods_inferJSBuiltin() {
158 super.test_genericMethods_inferJSBuiltin(); 164 super.test_genericMethods_inferJSBuiltin();
159 } 165 }
160 166
161 void test_infer_extractIndex_custom() { 167 void test_infer_extractIndex_custom() {
162 var unit = checkFile(''' 168 var unit = checkFile('''
163 class A { 169 class A {
164 String operator [](_) => null; 170 String operator [](_) => null;
165 } 171 }
166 var a = new A(); 172 var a = new A();
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 } 698 }
693 699
694 UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource); 700 UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource);
695 LinkedLibraryBuilder linkedLibrary = 701 LinkedLibraryBuilder linkedLibrary =
696 prelink(definingUnit, getPart, getImport); 702 prelink(definingUnit, getPart, getImport);
697 linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) { 703 linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) {
698 _serializeLibrary(resolveRelativeUri(d.uri)); 704 _serializeLibrary(resolveRelativeUri(d.uri));
699 }); 705 });
700 } 706 }
701 } 707 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/link.dart ('k') | pkg/analyzer/test/src/task/strong/inferred_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698