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

Unified Diff: sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 12527006: A selector whose type mask is nullable, applies to methods on the null implementation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
Index: sdk/lib/_internal/compiler/implementation/compiler.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/compiler.dart (revision 19535)
+++ sdk/lib/_internal/compiler/implementation/compiler.dart (working copy)
@@ -151,6 +151,10 @@
void registerSuperNoSuchMethod() {}
void registerConstantMap() {}
void registerRuntimeType() {}
+
+ bool isNullImplementation(ClassElement cls) {
karlklose 2013/03/06 08:05:20 Would it be better to call it the 'null class'?
ngeoffray 2013/03/06 08:08:25 No, the null class is the null class of the core l
+ return cls == compiler.nullClass;
+ }
}
/**
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/backend.dart » ('j') | tests/language/null_method_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698