Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | |
| 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. | |
| 4 | |
| 5 part of dart.core; | |
| 6 | |
| 7 /** | |
| 8 * Class of the `null` value. | |
| 9 * | |
| 10 * The only instance of the [Null] class is the `null` object. | |
| 11 * | |
| 12 * Extending or implementing `Null` is not allowed, and the | |
|
Søren Gjesse
2013/08/13 14:53:52
Comment cut short.
rmacnak
2013/08/14 01:23:13
"It is a compile-time error for a class to attempt
Lasse Reichstein Nielsen
2013/08/14 08:18:35
Done.
| |
| 13 */ | |
| 14 class Null { | |
| 15 /** | |
|
Søren Gjesse
2013/08/13 14:53:52
Will this dartdoc ever end up in the documentation
Lasse Reichstein Nielsen
2013/08/14 08:18:35
Probably, but not displayed by default.
I'll copy
| |
| 16 * Instantiating `Null` is not allowed. | |
| 17 * | |
| 18 * This constructor is only here to prevent the automatic | |
| 19 * generation of a default constructor. | |
| 20 */ | |
| 21 factory Null._() { | |
|
rmacnak
2013/08/14 01:23:13
Please mimic the factory in bool.
Lasse Reichstein Nielsen
2013/08/14 08:18:35
Done.
| |
| 22 throw new UnsupportedError('new Null()'); | |
| 23 } | |
| 24 | |
| 25 /** Returns the string `"null"`. */ | |
| 26 String toString() => "null"; | |
| 27 } | |
| OLD | NEW |