Skip to content

Commit c2c9620

Browse files
committed
Update
1 parent 8b63c54 commit c2c9620

5 files changed

Lines changed: 34 additions & 5 deletions

File tree

TODO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- [70%] Classes
99
- [70%] Enumerations
1010
- [70%] Interfaces
11-
- [ ] Variables
11+
- [70%] Variables
1212
- [ ] Virtual variables
1313
- [ ] Methods
1414
- [ ] Multi-methods

src/SUMMARY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@
3030
- [Namespaces](./namespaces.md)
3131
- [Classes](./classes.md)
3232
- [Enumerations](./enums.md)
33-
- [Interfaces](./interfaces.md)
33+
- [Interfaces](./interfaces.md)
34+
- [Variables](./variables.md)

src/classes.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,12 @@ The class, in convention when either extending `EventTarget` or implementing `IE
132132
* Target.
133133
*/
134134
class A extends EventTarget {}
135-
```
135+
```
136+
137+
## Static properties
138+
139+
Definitions marked `static` that appear within the `class` block are part of the static properties of the class, which are accessed as `C.n` where `C` is teh class and `n` the property name.
140+
141+
## Instance properties
142+
143+
Definitions not marked `static` that appear within the `class` block are part of the prototype of the class, and are called *instance* properties.

src/enums.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ The variant value as declared by the `const` is determined as follows:
151151
#### valueOf()
152152

153153
```
154-
public function valueOf():T {
154+
public override function valueOf():T {
155155
//
156156
}
157157
```
@@ -161,7 +161,7 @@ Returns the numeric value of the enumeration instance, where `T` is the numeric
161161
#### toString()
162162

163163
```
164-
public function toString():String {
164+
public override function toString():String {
165165
//
166166
}
167167
```

src/variables.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Variables
2+
3+
A variable may be read-only or writeable, and consists of a type.
4+
5+
```
6+
var x = 0
7+
const y = 10
8+
```
9+
10+
## Documentation comment
11+
12+
A documentation comment can be applied to a variable.
13+
14+
## Initializer
15+
16+
If the initializer of a variable is a constant, then the variable consists of a constant initializer.
17+
18+
```
19+
var x = 0
20+
```

0 commit comments

Comments
 (0)