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

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

Issue 1949603003: Finer grain control over specifying which variables have invalid constant initializers. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 super.test_blockBodiedLambdas_nestedLambdas_topLevel(); 146 super.test_blockBodiedLambdas_nestedLambdas_topLevel();
147 } 147 }
148 148
149 @override 149 @override
150 @failingTest 150 @failingTest
151 void test_blockBodiedLambdas_syncStar_topLevel() { 151 void test_blockBodiedLambdas_syncStar_topLevel() {
152 super.test_blockBodiedLambdas_syncStar_topLevel(); 152 super.test_blockBodiedLambdas_syncStar_topLevel();
153 } 153 }
154 154
155 @override 155 @override
156 void test_canInferAlsoFromStaticAndInstanceFieldsFlagOn() {
157 variablesWithNotConstInitializers.add('a2');
158 super.test_canInferAlsoFromStaticAndInstanceFieldsFlagOn();
159 }
160
161 @override
156 @failingTest 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 }
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 } 733 }
728 734
729 UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource); 735 UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource);
730 LinkedLibraryBuilder linkedLibrary = 736 LinkedLibraryBuilder linkedLibrary =
731 prelink(definingUnit, getPart, getImport); 737 prelink(definingUnit, getPart, getImport);
732 linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) { 738 linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) {
733 _serializeLibrary(resolveRelativeUri(d.uri)); 739 _serializeLibrary(resolveRelativeUri(d.uri));
734 }); 740 });
735 } 741 }
736 } 742 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/resynthesize.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698