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

Side by Side Diff: pkg/analyzer/test/src/task/dart_test.dart

Issue 1058703003: Replace LIBRARY_ELEMENT6 with LIBRARY_ELEMENT. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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/lib/src/task/dart.dart ('k') | no next file » | 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 test.src.task.dart_test; 5 library test.src.task.dart_test;
6 6
7 import 'package:analyzer/file_system/file_system.dart'; 7 import 'package:analyzer/file_system/file_system.dart';
8 import 'package:analyzer/file_system/memory_file_system.dart'; 8 import 'package:analyzer/file_system/memory_file_system.dart';
9 import 'package:analyzer/src/context/cache.dart'; 9 import 'package:analyzer/src/context/cache.dart';
10 import 'package:analyzer/src/generated/ast.dart'; 10 import 'package:analyzer/src/generated/ast.dart';
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 class B { 668 class B {
669 B(int i); 669 B(int i);
670 } 670 }
671 class M1 {} 671 class M1 {}
672 class M2 {} 672 class M2 {}
673 673
674 class C2 = C1 with M2; 674 class C2 = C1 with M2;
675 class C1 = B with M1; 675 class C1 = B with M1;
676 class C3 = B with M2; 676 class C3 = B with M2;
677 '''); 677 ''');
678 _computeResult(source, LIBRARY_ELEMENT6); 678 _computeResult(source, LIBRARY_ELEMENT);
679 expect(task, new isInstanceOf<BuildLibraryConstructorsTask>()); 679 expect(task, new isInstanceOf<BuildLibraryConstructorsTask>());
680 LibraryElement libraryElement = outputs[LIBRARY_ELEMENT6]; 680 LibraryElement libraryElement = outputs[LIBRARY_ELEMENT];
681 // C1 681 // C1
682 { 682 {
683 ClassElement classElement = libraryElement.getType('C2'); 683 ClassElement classElement = libraryElement.getType('C2');
684 List<ConstructorElement> constructors = classElement.constructors; 684 List<ConstructorElement> constructors = classElement.constructors;
685 expect(constructors, hasLength(1)); 685 expect(constructors, hasLength(1));
686 expect(constructors[0].parameters, hasLength(1)); 686 expect(constructors[0].parameters, hasLength(1));
687 } 687 }
688 // C3 688 // C3
689 { 689 {
690 ClassElement classElement = libraryElement.getType('C3'); 690 ClassElement classElement = libraryElement.getType('C3');
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1829 return entryMap.putIfAbsent(target, () => new CacheEntry()); 1829 return entryMap.putIfAbsent(target, () => new CacheEntry());
1830 } 1830 }
1831 1831
1832 TimestampedData<String> getContents(Source source) => source.contents; 1832 TimestampedData<String> getContents(Source source) => source.contents;
1833 1833
1834 noSuchMethod(Invocation invocation) { 1834 noSuchMethod(Invocation invocation) {
1835 print('noSuchMethod: ${invocation.memberName}'); 1835 print('noSuchMethod: ${invocation.memberName}');
1836 return super.noSuchMethod(invocation); 1836 return super.noSuchMethod(invocation);
1837 } 1837 }
1838 } 1838 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698