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

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

Issue 2667343005: Infer Null for return type of functions with empty returns. (Closed)
Patch Set: Address comments, fix 28630, ddc expectations Created 3 years, 10 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/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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 100 }
101 101
102 @override 102 @override
103 @failingTest 103 @failingTest
104 void test_blockBodiedLambdas_basic_topLevel() { 104 void test_blockBodiedLambdas_basic_topLevel() {
105 super.test_blockBodiedLambdas_basic_topLevel(); 105 super.test_blockBodiedLambdas_basic_topLevel();
106 } 106 }
107 107
108 @override 108 @override
109 @failingTest 109 @failingTest
110 void test_blockBodiedLambdas_doesNotInferBottom_asyncStar_topLevel() { 110 void test_blockBodiedLambdas_inferBottom_async_topLevel() {
111 super.test_blockBodiedLambdas_doesNotInferBottom_asyncStar_topLevel(); 111 super.test_blockBodiedLambdas_inferBottom_async_topLevel();
112 } 112 }
113 113
114 @override 114 @override
115 @failingTest 115 @failingTest
116 void test_blockBodiedLambdas_doesNotInferBottom_syncStar_topLevel() { 116 void test_blockBodiedLambdas_inferBottom_asyncStar_topLevel() {
117 super.test_blockBodiedLambdas_doesNotInferBottom_syncStar_topLevel(); 117 super.test_blockBodiedLambdas_inferBottom_asyncStar_topLevel();
118 } 118 }
119 119
120 @override 120 @override
121 @failingTest
122 void test_blockBodiedLambdas_inferBottom_sync_topLevel() {
123 super.test_blockBodiedLambdas_inferBottom_sync_topLevel();
124 }
125
126 @override
127 @failingTest
128 void test_blockBodiedLambdas_inferBottom_syncStar_topLevel() {
129 super.test_blockBodiedLambdas_inferBottom_syncStar_topLevel();
130 }
131
132 @override
121 @failingTest 133 @failingTest
122 void test_blockBodiedLambdas_LUB_topLevel() { 134 void test_blockBodiedLambdas_LUB_topLevel() {
123 super.test_blockBodiedLambdas_LUB_topLevel(); 135 super.test_blockBodiedLambdas_LUB_topLevel();
124 } 136 }
125 137
126 @override 138 @override
127 @failingTest 139 @failingTest
128 void test_blockBodiedLambdas_nestedLambdas_topLevel() { 140 void test_blockBodiedLambdas_nestedLambdas_topLevel() {
129 super.test_blockBodiedLambdas_nestedLambdas_topLevel(); 141 super.test_blockBodiedLambdas_nestedLambdas_topLevel();
130 } 142 }
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 } 558 }
547 559
548 @override 560 @override
549 @failingTest 561 @failingTest
550 void test_inferLocalFunctionReturnType() { 562 void test_inferLocalFunctionReturnType() {
551 super.test_inferLocalFunctionReturnType(); 563 super.test_inferLocalFunctionReturnType();
552 } 564 }
553 565
554 @override 566 @override
555 @failingTest 567 @failingTest
568 void test_inferredType_blockBodiedClosure_noArguments() {
569 super.test_inferredType_blockBodiedClosure_noArguments();
570 }
571
572 @override
573 @failingTest
574 void test_inferredType_blockClosure_noArgs_noReturn() {
575 super.test_inferredType_blockClosure_noArgs_noReturn();
576 }
577
578 @override
579 @failingTest
556 void test_inferredType_opAssignToProperty_prefixedIdentifier() { 580 void test_inferredType_opAssignToProperty_prefixedIdentifier() {
557 super.test_inferredType_opAssignToProperty_prefixedIdentifier(); 581 super.test_inferredType_opAssignToProperty_prefixedIdentifier();
558 } 582 }
559 583
560 @override 584 @override
561 @failingTest 585 @failingTest
562 void test_inferredType_opAssignToProperty_prefixedIdentifier_viaInterface() { 586 void test_inferredType_opAssignToProperty_prefixedIdentifier_viaInterface() {
563 super 587 super
564 .test_inferredType_opAssignToProperty_prefixedIdentifier_viaInterface(); 588 .test_inferredType_opAssignToProperty_prefixedIdentifier_viaInterface();
565 } 589 }
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 } 958 }
935 959
936 @override 960 @override
937 DartSdk createDartSdk() => AbstractContextTest.SHARED_MOCK_SDK; 961 DartSdk createDartSdk() => AbstractContextTest.SHARED_MOCK_SDK;
938 962
939 @override 963 @override
940 TestSummaryResynthesizer encodeDecodeLibrarySource(Source source) { 964 TestSummaryResynthesizer encodeDecodeLibrarySource(Source source) {
941 return _encodeLibrary(source); 965 return _encodeLibrary(source);
942 } 966 }
943 } 967 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698