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

Side by Side Diff: pkg/analyzer/test/generated/static_warning_code_test.dart

Issue 2627083003: Replace reset() arguments with resetWith() invocation. (Closed)
Patch Set: Remove commented code. Created 3 years, 11 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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.generated.static_warning_code_test; 5 library analyzer.test.generated.static_warning_code_test;
6 6
7 import 'package:analyzer/error/error.dart'; 7 import 'package:analyzer/error/error.dart';
8 import 'package:analyzer/src/error/codes.dart'; 8 import 'package:analyzer/src/error/codes.dart';
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/source_io.dart'; 10 import 'package:analyzer/src/generated/source_io.dart';
(...skipping 2837 matching lines...) Expand 10 before | Expand all | Expand 10 after
2848 class C implements I { 2848 class C implements I {
2849 }'''); 2849 }''');
2850 await computeAnalysisResult(source); 2850 await computeAnalysisResult(source);
2851 assertErrors(source, 2851 assertErrors(source,
2852 [StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO]); 2852 [StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO]);
2853 verify([source]); 2853 verify([source]);
2854 } 2854 }
2855 2855
2856 test_nonAbstractClassInheritsAbstractMemberTwo_variable_fromMixin_missingBoth( ) async { 2856 test_nonAbstractClassInheritsAbstractMemberTwo_variable_fromMixin_missingBoth( ) async {
2857 // 26411 2857 // 26411
2858 resetWithOptions(new AnalysisOptionsImpl()..enableSuperMixins = true); 2858 resetWith(options: new AnalysisOptionsImpl()..enableSuperMixins = true);
2859 Source source = addSource(r''' 2859 Source source = addSource(r'''
2860 class A { 2860 class A {
2861 int f; 2861 int f;
2862 } 2862 }
2863 class B extends A {} 2863 class B extends A {}
2864 class C extends Object with B {} 2864 class C extends Object with B {}
2865 '''); 2865 ''');
2866 await computeAnalysisResult(source); 2866 await computeAnalysisResult(source);
2867 assertErrors(source, 2867 assertErrors(source,
2868 [StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO]); 2868 [StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO]);
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
3706 3706
3707 test_voidReturnForGetter() async { 3707 test_voidReturnForGetter() async {
3708 Source source = addSource(r''' 3708 Source source = addSource(r'''
3709 class S { 3709 class S {
3710 void get value {} 3710 void get value {}
3711 }'''); 3711 }''');
3712 await computeAnalysisResult(source); 3712 await computeAnalysisResult(source);
3713 assertErrors(source, [StaticWarningCode.VOID_RETURN_FOR_GETTER]); 3713 assertErrors(source, [StaticWarningCode.VOID_RETURN_FOR_GETTER]);
3714 } 3714 }
3715 } 3715 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/static_type_warning_code_test.dart ('k') | pkg/analyzer/test/generated/strong_mode_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698