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

Side by Side Diff: pkg/analyzer_experimental/test/generated/test_support.dart

Issue 16059002: Manual fixes for Dart^2 analyzer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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_experimental/lib/src/generated/source_io.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 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 3
4 library engine.test_support; 4 library engine.test_support;
5 5
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'dart:uri'; 7 import 'dart:uri';
8 import 'package:analyzer_experimental/src/generated/java_core.dart'; 8 import 'package:analyzer_experimental/src/generated/java_core.dart';
9 import 'package:analyzer_experimental/src/generated/java_engine.dart'; 9 import 'package:analyzer_experimental/src/generated/java_engine.dart';
10 import 'package:analyzer_experimental/src/generated/java_junit.dart'; 10 import 'package:analyzer_experimental/src/generated/java_junit.dart';
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 bool exists() => true; 662 bool exists() => true;
663 bool isInSystemLibrary() { 663 bool isInSystemLibrary() {
664 throw new UnsupportedOperationException(); 664 throw new UnsupportedOperationException();
665 } 665 }
666 Source resolve(String uri) { 666 Source resolve(String uri) {
667 throw new UnsupportedOperationException(); 667 throw new UnsupportedOperationException();
668 } 668 }
669 Source resolveRelative(Uri uri) { 669 Source resolveRelative(Uri uri) {
670 throw new UnsupportedOperationException(); 670 throw new UnsupportedOperationException();
671 } 671 }
672 UriKind get uriKind {
673 throw new UnsupportedOperationException();
674 }
672 } 675 }
673 676
674 /** 677 /**
675 * Wrapper around [Function] which should be called with "target" and "arguments ". 678 * Wrapper around [Function] which should be called with "target" and "arguments ".
676 */ 679 */
677 class MethodTrampoline { 680 class MethodTrampoline {
678 int parameterCount; 681 int parameterCount;
679 Function trampoline; 682 Function trampoline;
680 MethodTrampoline(this.parameterCount, this.trampoline); 683 MethodTrampoline(this.parameterCount, this.trampoline);
681 Object invoke(target, List arguments) { 684 Object invoke(target, List arguments) {
682 if (arguments.length != parameterCount) { 685 if (arguments.length != parameterCount) {
683 throw new IllegalArgumentException("${arguments.length} != $parameterCount "); 686 throw new IllegalArgumentException("${arguments.length} != $parameterCount ");
684 } 687 }
685 switch (parameterCount) { 688 switch (parameterCount) {
686 case 0: 689 case 0:
687 return trampoline(target); 690 return trampoline(target);
688 case 1: 691 case 1:
689 return trampoline(target, arguments[0]); 692 return trampoline(target, arguments[0]);
690 case 2: 693 case 2:
691 return trampoline(target, arguments[0], arguments[1]); 694 return trampoline(target, arguments[0], arguments[1]);
692 case 3: 695 case 3:
693 return trampoline(target, arguments[0], arguments[1], arguments[2]); 696 return trampoline(target, arguments[0], arguments[1], arguments[2]);
694 case 4: 697 case 4:
695 return trampoline(target, arguments[0], arguments[1], arguments[2], argu ments[3]); 698 return trampoline(target, arguments[0], arguments[1], arguments[2], argu ments[3]);
696 default: 699 default:
697 throw new IllegalArgumentException("Not implemented for > 4 arguments"); 700 throw new IllegalArgumentException("Not implemented for > 4 arguments");
698 } 701 }
699 } 702 }
700 } 703 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/source_io.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698