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

Unified Diff: runtime/lib/bool_patch.dart

Issue 50983002: Implement fromEnvironment on bool, int and String (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments Created 7 years, 2 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: runtime/lib/bool_patch.dart
diff --git a/runtime/lib/bool_patch.dart b/runtime/lib/bool_patch.dart
index e6463feab13a4780055934447e74e584f3aa1873..cd6b7408a0c4deb59d8ac23ddaab6532995bf458 100644
--- a/runtime/lib/bool_patch.dart
+++ b/runtime/lib/bool_patch.dart
@@ -6,6 +6,10 @@
patch class bool {
+ /* patch */ const factory bool.fromEnvironment(String name,
+ {bool defaultValue})
+ native "Bool_fromEnvironment";
+
int get _identityHashCode {
return this ? 1231 : 1237;
}
« no previous file with comments | « runtime/lib/bool.cc ('k') | runtime/lib/corelib_sources.gypi » ('j') | sdk/lib/core/bool.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698