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

Side by Side Diff: frog/tests/leg/src/mock_compiler.dart

Issue 10105031: Check number of type arguments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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('mock_compiler'); 5 #library('mock_compiler');
6 6
7 #import("dart:uri"); 7 #import("dart:uri");
8 8
9 #import("../../../../lib/compiler/implementation/elements/elements.dart"); 9 #import("../../../../lib/compiler/implementation/elements/elements.dart");
10 #import("../../../../lib/compiler/implementation/leg.dart"); 10 #import("../../../../lib/compiler/implementation/leg.dart");
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 parseScript(String text, [LibraryElement library]) { 125 parseScript(String text, [LibraryElement library]) {
126 if (library === null) library = mainApp; 126 if (library === null) library = mainApp;
127 parseUnit(text, this, library); 127 parseUnit(text, this, library);
128 } 128 }
129 129
130 void enqueue(WorkItem work) { 130 void enqueue(WorkItem work) {
131 super.enqueue(work); 131 super.enqueue(work);
132 } 132 }
133 133
134 resolve(ClassElement element) {
135 return resolver.resolveType(element);
136 }
137
138 void scanBuiltinLibraries() { 134 void scanBuiltinLibraries() {
139 // Do nothing. The mock core library is already handled in the constructor. 135 // Do nothing. The mock core library is already handled in the constructor.
140 } 136 }
141 137
142 LibraryElement scanBuiltinLibrary(String name) { 138 LibraryElement scanBuiltinLibrary(String name) {
143 // Do nothing. The mock core library is already handled in the constructor. 139 // Do nothing. The mock core library is already handled in the constructor.
144 } 140 }
145 141
146 Script readScript(Uri uri, [ScriptTag node]) { 142 Script readScript(Uri uri, [ScriptTag node]) {
147 String code = sources[uri.toString()]; 143 String code = sources[uri.toString()];
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 importLibrary(library, compiler.coreLibrary, compiler); 183 importLibrary(library, compiler.coreLibrary, compiler);
188 return library; 184 return library;
189 } 185 }
190 186
191 class StringScript extends Script { 187 class StringScript extends Script {
192 final String code; 188 final String code;
193 StringScript(this.code) : super(null, null); 189 StringScript(this.code) : super(null, null);
194 String get text() => code; 190 String get text() => code;
195 String get name() => "mock script"; 191 String get name() => "mock script";
196 } 192 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698