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

Side by Side Diff: pkg/analyzer/test/generated/resolver_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.resolver_test; 5 library analyzer.test.generated.resolver_test;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/standard_ast_factory.dart'; 10 import 'package:analyzer/dart/ast/standard_ast_factory.dart';
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 } 625 }
626 }'''); 626 }''');
627 await computeAnalysisResult(source); 627 await computeAnalysisResult(source);
628 assertErrors(source, [StaticTypeWarningCode.UNDEFINED_OPERATOR]); 628 assertErrors(source, [StaticTypeWarningCode.UNDEFINED_OPERATOR]);
629 } 629 }
630 630
631 @override 631 @override
632 void setUp() { 632 void setUp() {
633 AnalysisOptionsImpl options = new AnalysisOptionsImpl(); 633 AnalysisOptionsImpl options = new AnalysisOptionsImpl();
634 options.hint = false; 634 options.hint = false;
635 resetWithOptions(options); 635 resetWith(options: options);
636 } 636 }
637 637
638 test_assert_is() async { 638 test_assert_is() async {
639 Source source = addSource(r''' 639 Source source = addSource(r'''
640 int f(num n) { 640 int f(num n) {
641 assert (n is int); 641 assert (n is int);
642 return n & 0x0F; 642 return n & 0x0F;
643 }'''); 643 }''');
644 await computeAnalysisResult(source); 644 await computeAnalysisResult(source);
645 assertErrors(source, [StaticTypeWarningCode.UNDEFINED_OPERATOR]); 645 assertErrors(source, [StaticTypeWarningCode.UNDEFINED_OPERATOR]);
(...skipping 3064 matching lines...) Expand 10 before | Expand all | Expand 10 after
3710 */ 3710 */
3711 class _StaleElement extends ElementImpl { 3711 class _StaleElement extends ElementImpl {
3712 _StaleElement() : super("_StaleElement", -1); 3712 _StaleElement() : super("_StaleElement", -1);
3713 3713
3714 @override 3714 @override
3715 get kind => throw "_StaleElement's kind shouldn't be accessed"; 3715 get kind => throw "_StaleElement's kind shouldn't be accessed";
3716 3716
3717 @override 3717 @override
3718 /*=T*/ accept/*<T>*/(_) => throw "_StaleElement shouldn't be visited"; 3718 /*=T*/ accept/*<T>*/(_) => throw "_StaleElement shouldn't be visited";
3719 } 3719 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/non_hint_code_test.dart ('k') | pkg/analyzer/test/generated/resolver_test_case.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698