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

Side by Side Diff: packages/analyzer/test/generated/non_error_resolver_test.dart

Issue 1521693002: Roll Observatory deps (charted -> ^0.3.0) (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years 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 engine.non_error_resolver_test; 5 library engine.non_error_resolver_test;
6 6
7 import 'package:analyzer/src/generated/ast.dart'; 7 import 'package:analyzer/src/generated/ast.dart';
8 import 'package:analyzer/src/generated/element.dart'; 8 import 'package:analyzer/src/generated/element.dart';
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/error.dart'; 10 import 'package:analyzer/src/generated/error.dart';
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 case 0: 684 case 0:
685 break; 685 break;
686 } 686 }
687 } 687 }
688 }'''); 688 }''');
689 computeLibrarySourceErrors(source); 689 computeLibrarySourceErrors(source);
690 assertNoErrors(source); 690 assertNoErrors(source);
691 verify([source]); 691 verify([source]);
692 } 692 }
693 693
694 void test_bug_24539_getter() {
695 Source source = addSource('''
696 class C<T> {
697 List<Foo> get x => null;
698 }
699
700 typedef Foo(param);
701 ''');
702 computeLibrarySourceErrors(source);
703 assertNoErrors(source);
704 verify([source]);
705 }
706
707 void test_bug_24539_setter() {
708 Source source = addSource('''
709 class C<T> {
710 void set x(List<Foo> value) {}
711 }
712
713 typedef Foo(param);
714 ''');
715 computeLibrarySourceErrors(source);
716 assertNoErrors(source);
717 verify([source]);
718 }
719
694 void test_builtInIdentifierAsType_dynamic() { 720 void test_builtInIdentifierAsType_dynamic() {
695 Source source = addSource(r''' 721 Source source = addSource(r'''
696 f() { 722 f() {
697 dynamic x; 723 dynamic x;
698 }'''); 724 }''');
699 computeLibrarySourceErrors(source); 725 computeLibrarySourceErrors(source);
700 assertNoErrors(source); 726 assertNoErrors(source);
701 verify([source]); 727 verify([source]);
702 } 728 }
703 729
(...skipping 5050 matching lines...) Expand 10 before | Expand all | Expand 10 after
5754 reset(); 5780 reset();
5755 } 5781 }
5756 5782
5757 void _check_wrongNumberOfParametersForOperator1(String name) { 5783 void _check_wrongNumberOfParametersForOperator1(String name) {
5758 _check_wrongNumberOfParametersForOperator(name, "a"); 5784 _check_wrongNumberOfParametersForOperator(name, "a");
5759 } 5785 }
5760 5786
5761 CompilationUnit _getResolvedLibraryUnit(Source source) => 5787 CompilationUnit _getResolvedLibraryUnit(Source source) =>
5762 analysisContext.getResolvedCompilationUnit2(source, source); 5788 analysisContext.getResolvedCompilationUnit2(source, source);
5763 } 5789 }
OLDNEW
« no previous file with comments | « packages/analyzer/test/generated/engine_test.dart ('k') | packages/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698