| OLD | NEW |
| 1 Sky Script Language | 1 Sky Script Language |
| 2 =================== | 2 =================== |
| 3 | 3 |
| 4 The Sky script language is Dart. | 4 The Sky script language is Dart. |
| 5 | 5 |
| 6 The way that Sky integrates the module system with its script language | 6 The way that Sky integrates the module system with its script language |
| 7 is described in [modules.md](modules.md). | 7 is described in [modules.md](modules.md). |
| 8 | 8 |
| 9 When an method defined as ``external`` receives an argument, it must | 9 When an method defined as ``external`` receives an argument, it must |
| 10 type-check it, and, if the argument's value is the wrong type, then it | 10 type-check it, and, if the argument's value is the wrong type, then it |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 ```dart | 25 ```dart |
| 26 const nonnull = const Object(); | 26 const nonnull = const Object(); |
| 27 ``` | 27 ``` |
| 28 | 28 |
| 29 The ``@nonnull`` annotation does nothing in code not marked | 29 The ``@nonnull`` annotation does nothing in code not marked |
| 30 ``external``, but it has been included anyway for documentation | 30 ``external``, but it has been included anyway for documentation |
| 31 purposes. It indicates places where providing a null is a contract | 31 purposes. It indicates places where providing a null is a contract |
| 32 violation and that results are therefore likely to be poor. | 32 violation and that results are therefore likely to be poor. |
| 33 | 33 |
| 34 The following definitions are exposed in ``sky:core``: | 34 The following definitions are exposed in ``dart:sky``: |
| 35 | 35 |
| 36 ```dart | 36 ```dart |
| 37 abstract class AutomaticMetadata { | 37 abstract class AutomaticMetadata { |
| 38 const AutomaticMetadata(); | 38 const AutomaticMetadata(); |
| 39 void init(DeclarationMirror target, Module module); | 39 void init(DeclarationMirror target, Module module); |
| 40 | 40 |
| 41 static void runLibrary(LibraryMirror library, Module module) { | 41 static void runLibrary(LibraryMirror library, Module module) { |
| 42 library.declarations.values.toList()..sort((DeclarationMirror a, Declaration
Mirror b) { | 42 library.declarations.values.toList()..sort((DeclarationMirror a, Declaration
Mirror b) { |
| 43 bool aHasLocation; | 43 bool aHasLocation; |
| 44 try { | 44 try { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 to a superclass' constructor, wherein the subclass' constructor has | 98 to a superclass' constructor, wherein the subclass' constructor has |
| 99 the same arguments as the superclass' constructor and does nothing | 99 the same arguments as the superclass' constructor and does nothing |
| 100 but invoke that superclass' constructor with the same arguments. The | 100 but invoke that superclass' constructor with the same arguments. The |
| 101 syntax for defining this is, within the class body for a class | 101 syntax for defining this is, within the class body for a class |
| 102 called ClassName: | 102 called ClassName: |
| 103 | 103 |
| 104 ```dart | 104 ```dart |
| 105 ClassName = SuperclassName; | 105 ClassName = SuperclassName; |
| 106 ClassName.namedConstructor = SuperclassName.otherNamedConstructor; | 106 ClassName.namedConstructor = SuperclassName.otherNamedConstructor; |
| 107 ``` | 107 ``` |
| OLD | NEW |