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

Unified Diff: frog/tests/leg/src/mock_compiler.dart

Issue 9666006: Support for "a is Function". (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « frog/leg/ssa/codegen.dart ('k') | tests/co19/co19-leg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/tests/leg/src/mock_compiler.dart
===================================================================
--- frog/tests/leg/src/mock_compiler.dart (revision 5320)
+++ frog/tests/leg/src/mock_compiler.dart (working copy)
@@ -35,7 +35,8 @@
builtin$filter$1(receiver, predicate) {}
builtin$removeLast$0(receiver) {}
index(a, index) {}
- indexSet(a, index, value) {}''';
+ indexSet(a, index, value) {}
+ class Closure {} ''';
final String DEFAULT_CORELIB = @'''
print(var obj) {}
@@ -64,7 +65,10 @@
script = new Script(uri, new MockFile(helperSource));
jsHelperLibrary = new LibraryElement(script);
parseScript(helperSource, jsHelperLibrary);
+ scanner.importLibrary(jsHelperLibrary, coreLibrary, null);
mainApp = mockLibrary(this, "");
+ objectClass = coreLibrary.find(Compiler.OBJECT);
+ closureClass = jsHelperLibrary.find(Compiler.CLOSURE);
}
void reportWarning(Node node, var message) {
« no previous file with comments | « frog/leg/ssa/codegen.dart ('k') | tests/co19/co19-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698