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

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

Issue 1026093002: Fix hints in the analyzer package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/test/generated/ast_test.dart ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.element_test; 8 library engine.element_test;
9 9
10 import 'package:analyzer/src/generated/ast.dart'; 10 import 'package:analyzer/src/generated/ast.dart';
(...skipping 3768 matching lines...) Expand 10 before | Expand all | Expand 10 after
3779 _uA = UnionTypeImpl.union([_typeA]); 3779 _uA = UnionTypeImpl.union([_typeA]);
3780 _uB = UnionTypeImpl.union([_typeB]); 3780 _uB = UnionTypeImpl.union([_typeB]);
3781 _uAB = UnionTypeImpl.union([_typeA, _typeB]); 3781 _uAB = UnionTypeImpl.union([_typeA, _typeB]);
3782 _uBA = UnionTypeImpl.union([_typeB, _typeA]); 3782 _uBA = UnionTypeImpl.union([_typeB, _typeA]);
3783 _us = <DartType>[_uA, _uB, _uAB, _uBA]; 3783 _us = <DartType>[_uA, _uB, _uAB, _uBA];
3784 } 3784 }
3785 3785
3786 void test_emptyUnionsNotAllowed() { 3786 void test_emptyUnionsNotAllowed() {
3787 try { 3787 try {
3788 UnionTypeImpl.union([]); 3788 UnionTypeImpl.union([]);
3789 } on IllegalArgumentException catch (e) { 3789 } on IllegalArgumentException {
3790 return; 3790 return;
3791 } 3791 }
3792 fail("Expected illegal argument exception."); 3792 fail("Expected illegal argument exception.");
3793 } 3793 }
3794 3794
3795 void test_equality_beingASubtypeOfAnElementIsNotSufficient() { 3795 void test_equality_beingASubtypeOfAnElementIsNotSufficient() {
3796 // Non-equal if some elements are different 3796 // Non-equal if some elements are different
3797 expect(_uAB == _uA, isFalse); 3797 expect(_uAB == _uA, isFalse);
3798 } 3798 }
3799 3799
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
3985 } 3985 }
3986 3986
3987 class _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction 3987 class _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction
3988 extends InterfaceTypeImpl { 3988 extends InterfaceTypeImpl {
3989 _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction(ClassElement arg0) 3989 _FunctionTypeImplTest_isSubtypeOf_baseCase_classFunction(ClassElement arg0)
3990 : super.con1(arg0); 3990 : super.con1(arg0);
3991 3991
3992 @override 3992 @override
3993 bool get isDartCoreFunction => true; 3993 bool get isDartCoreFunction => true;
3994 } 3994 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/ast_test.dart ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698