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

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

Issue 2210293002: infer null from context, this avoids bottom being introduced (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 super.test_blockBodiedLambdas_nestedLambdas_topLevel(); 137 super.test_blockBodiedLambdas_nestedLambdas_topLevel();
138 } 138 }
139 139
140 @override 140 @override
141 @failingTest 141 @failingTest
142 void test_blockBodiedLambdas_syncStar_topLevel() { 142 void test_blockBodiedLambdas_syncStar_topLevel() {
143 super.test_blockBodiedLambdas_syncStar_topLevel(); 143 super.test_blockBodiedLambdas_syncStar_topLevel();
144 } 144 }
145 145
146 @override 146 @override
147 @failingTest
148 void test_bottom() {
149 super.test_bottom();
150 }
151
152 @override
147 void test_canInferAlsoFromStaticAndInstanceFieldsFlagOn() { 153 void test_canInferAlsoFromStaticAndInstanceFieldsFlagOn() {
148 variablesWithNotConstInitializers.add('a2'); 154 variablesWithNotConstInitializers.add('a2');
149 super.test_canInferAlsoFromStaticAndInstanceFieldsFlagOn(); 155 super.test_canInferAlsoFromStaticAndInstanceFieldsFlagOn();
150 } 156 }
151 157
152 @override 158 @override
153 @failingTest 159 @failingTest
154 void test_circularReference_viaClosures_initializerTypes() { 160 void test_circularReference_viaClosures_initializerTypes() {
155 super.test_circularReference_viaClosures_initializerTypes(); 161 super.test_circularReference_viaClosures_initializerTypes();
156 } 162 }
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 } 818 }
813 819
814 UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource); 820 UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource);
815 LinkedLibraryBuilder linkedLibrary = 821 LinkedLibraryBuilder linkedLibrary =
816 prelink(definingUnit, getPart, getImport); 822 prelink(definingUnit, getPart, getImport);
817 linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) { 823 linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) {
818 _serializeLibrary(resolveRelativeUri(d.uri)); 824 _serializeLibrary(resolveRelativeUri(d.uri));
819 }); 825 });
820 } 826 }
821 } 827 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698