Skip to content

Commit 950413d

Browse files
committed
upd
1 parent 5c328e2 commit 950413d

19 files changed

Lines changed: 81 additions & 83 deletions

TODO

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
- [ ] Describe operations like GetQNameInNsSetOrAnyPublicNs() and possibly others used in property lookup
55
- [70%] Property lookup
66
- https://github.com/whackengine/sdk/blob/master/crates/mxmlsemantics/src/semantics/property_lookup.rs#L353
7-
- [x] PropertyLookup: remind of `shock_proxy` stuff
8-
- [x] `shock_proxy::get` allows for multiple signatures
7+
- [x] PropertyLookup: remind of `sx_proxy` stuff
8+
- [x] `sx_proxy::get` allows for multiple signatures
99
- [ ] Introduce lazily imported source files based in source paths, when lookuping from packages.
1010
- [ ] Values whose static type is a type parameter will lookup for names in the type parameter's derived types.
1111
- [ ] InScopeLookup
@@ -30,7 +30,7 @@
3030
- [x] Lexical scopes
3131
- [x] Default lexical scope
3232
- [x] Conditional compilation
33-
- [x] ShockDoc comments
33+
- [x] SXDoc comments
3434
- [x] Proxies
3535
- [x] Lexical conventions
3636
- [ ] Expressions
@@ -60,16 +60,16 @@
6060
- [ ] Takes a non-attribute qualified identifier.
6161
- [ ] Call operator
6262
- [ ] Base is passed *followedByCall=true*
63-
- [ ] Watch for static `shock_proxy::call` when calling classes (supports multiple signatures too)
64-
- [ ] `XML` and `XMLList` being called statically shall still pass themselves as the context type to the first call argument, even if they define `shock_proxy::call()`.
63+
- [ ] Watch for static `sx_proxy::call` when calling classes (supports multiple signatures too)
64+
- [ ] `XML` and `XMLList` being called statically shall still pass themselves as the context type to the first call argument, even if they define `sx_proxy::call()`.
6565
- [ ] `v as T` operator
6666
- [ ] Passes context type `T` to `v`
6767
- [ ] Assignment expression
68-
- [ ] When base is *KeyValuePairReferenceValue*, `shock_proxy::set()`
69-
- [ ] When base is *AttributeReferenceValue*, `shock_proxy::setAttribute()`
68+
- [ ] When base is *KeyValuePairReferenceValue*, `sx_proxy::set()`
69+
- [ ] When base is *AttributeReferenceValue*, `sx_proxy::setAttribute()`
7070
- [ ] Delete operator
71-
- [ ] `shock_proxy::delete()`
72-
- [ ] `shock_proxy::deleteAttribute()`
71+
- [ ] `sx_proxy::delete()`
72+
- [ ] `sx_proxy::deleteAttribute()`
7373
- [ ] New operator
7474
- [ ] Base is passed *followedByCall=true*
7575
- [ ] Support a dynamically typed base (`*` or `Class`)
@@ -90,7 +90,7 @@
9090
- [ ] Directives
9191
- [ ] Definition constructs
9292
- [ ] Global objects
93-
- [ ] shock_proxy namespace
93+
- [ ] sx_proxy namespace
9494
- [ ] DotEnv namespace
9595
- [ ] Reflect namespace
9696
- [ ] trace()
@@ -112,7 +112,7 @@
112112
- [ ] required `next():{ done: Boolean, value?: T }`
113113
- [ ] `length():int`
114114
- [ ] `skip(count:int):void`
115-
- [ ] `shock_proxy::filter(...)`
115+
- [ ] `sx_proxy::filter(...)`
116116
- [ ] Other functional methods
117117
- [ ] Iterable.\<K, V> (interface) requires keys() and values()
118118
- [ ] Generator.\<T>
@@ -124,16 +124,16 @@
124124
- [ ] toLocaleString()
125125
- [ ] valueOf()
126126
- [ ] Array
127-
- [ ] `shock_proxy::get(...)` throws if out of bounds
128-
- [ ] `shock_proxy::filter(...)`
127+
- [ ] `sx_proxy::get(...)` throws if out of bounds
128+
- [ ] `sx_proxy::filter(...)`
129129
- [ ] `clone()`
130130
- [ ] `shift(): (void, T)`
131131
- [ ] `pop(): (void, T)`
132132
- [ ] `first : (void, T)`
133133
- [ ] `last : (void, T)`
134134
- [ ] Map
135135
- [ ] `Map(weakKeys:Boolean = false)`
136-
- [ ] `shock_proxy::get()` throws if key does not match
136+
- [ ] `sx_proxy::get()` throws if key does not match
137137
- [ ] `length()`
138138
- [ ] `clear()`
139139
- [ ] `clone()`
@@ -155,22 +155,20 @@
155155
- [ ] `clone()`
156156
- [ ] XML
157157
- [ ] Implement `Iterable`
158-
- [ ] static `shock_proxy::call(arg:*):XML`
159-
- [ ] `shock_proxy::has(name:QName):Boolean`
160-
- [ ] `shock_proxy::get(index:int):XML` (throws if out of bounds)
161-
- [ ] `shock_proxy::get(name:QName):XMLList`
162-
- [ ] `shock_proxy::set(key:(int, QName), value:(XML, XMLList)):void`
163-
- [ ] `shock_proxy::delete(arg:(int, QName)):Boolean`
158+
- [ ] static `sx_proxy::call(arg:*):XML`
159+
- [ ] `sx_proxy::has(name:QName):Boolean`
160+
- [ ] `sx_proxy::get(index:int):XML` (throws if out of bounds)
161+
- [ ] `sx_proxy::get(name:QName):XMLList`
162+
- [ ] `sx_proxy::set(key:(int, QName), value:(XML, XMLList)):void`
163+
- [ ] `sx_proxy::delete(arg:(int, QName)):Boolean`
164164
- [ ] Attributes
165165
- [ ] XMLList
166-
- [ ] static `shock_proxy::call(arg:*):XMLList`
166+
- [ ] static `sx_proxy::call(arg:*):XMLList`
167167
- [ ] ByteArray
168168
- [ ] Indexing
169169
- [ ] `shareable:Boolean`
170170
- [ ] `clone()`
171-
- [ ] shock.intl.**
172-
- [ ] Like ECMA-262 `Intl`. Aliased globally as `Intl::` to avoid manual import.
173-
- [ ] shock.temporal.**
174-
175-
- [ ] Defines ECMA-262 like `Temporal` functionality, including classes and methods. That package is aliased globally as `Temporal::` to avoid manual import.
176-
171+
- [ ] SX.intl.**
172+
- [ ] Like ECMA-262 `Intl`. Aliased globally as `Intl::` for clarity.
173+
- [ ] SX.temporal.**
174+
- [ ] Defines ECMA-262 like `Temporal` functionality, including classes and methods. That package is aliased globally as `Temporal::` for clarity.

src/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@
5656
- [Lexical scopes](./lexical-scopes.md)
5757
- [Default lexical scope](./default-lexical-scope.md)
5858
- [Conditional compilation](./conditional-compilation.md)
59-
- [ShockDoc](./shockdoc.md)
59+
- [SXDoc](./sxdoc.md)
6060
- [Proxies](./proxies.md)
6161
- [Lexical conventions](./lexical-conventions.md)

src/_BASE/expressions/identifier.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
<?fixed={object.q::n}?>
88
```
99

10-
> **Note**: Forcing fixture access allows to access a variable or method when a class implements `shock_proxy::get(k)` where `k` includes `String` or `QName`. This may also be necessary inside the class body itself to resolve to certain lexical names.
10+
> **Note**: Forcing fixture access allows to access a variable or method when a class implements `sx_proxy::get(k)` where `k` includes `String` or `QName`. This may also be necessary inside the class body itself to resolve to certain lexical names.

src/aliases.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ type U = (decimal, String);
99
namespace special_version;
1010
```
1111

12-
## ShockDoc comment
12+
## SXDoc comment
1313

14-
An alias may be prefixed by a ShockDoc comment.
14+
An alias may be prefixed by a SXDoc comment.
1515

1616
```
1717
/** Comment */

src/classes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ A class owns three namespaces:
1919

2020
`protected` and `static protected` are propagated to the block of subclasses.
2121

22-
## ShockDoc comment
22+
## SXDoc comment
2323

24-
A class may be prefixed by a ShockDoc comment.
24+
A class may be prefixed by a SXDoc comment.
2525

2626
```
2727
/** Comment */

src/conversions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This section describes which type conversions are available.
44

5-
Explicit conversions may occur as either `T(v)` (strict conversion) or `v as T` (optional conversion). The behavior of the call operator over a type may not always be a conversion depending on if `T` implements the static `shock_proxy::call()` method.
5+
Explicit conversions may occur as either `T(v)` (strict conversion) or `v as T` (optional conversion). The behavior of the call operator over a type may not always be a conversion depending on if `T` implements the static `sx_proxy::call()` method.
66

77
```
88
T(v) // failure throws a TypeError

src/default-lexical-scope.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ The topmost scope from which all scopes inherit is implicitly created by ShockSc
44

55
## Imports
66

7-
The topmost scope imports the top-level package by wildcard. It is allowed to shadow names from the top-level package, in which case, the `global` alias may be used to access the top-level package.
7+
The topmost scope imports the top-level package by wildcard. It is allowed to shadow names from the top-level package, in which case, the `SX` alias may be used to access the top-level package.
88

9-
## global
9+
## SX
1010

11-
The topmost scope defines a `global` property, which is an alias to a package wildcard import of the top-level package.
11+
The topmost scope defines a `SX` property, which is an alias to a package wildcard import of the top-level package.
1212

1313
## Intl
1414

15-
The topmost scope defines a `Intl` property, which is an alias to `shock.intl.**`.
15+
The topmost scope defines a `Intl` property, which is an alias to `SX.intl.**`.
1616

1717
## Temporal
1818

19-
The topmost scope defines a `Temporal` property, which is an alias to `shock.temporal.**`.
19+
The topmost scope defines a `Temporal` property, which is an alias to `SX.temporal.**`.
2020

2121
## Provided by Whack
2222

src/enums.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ Returns the name of the enumeration instance. For a flag enumeration, returns th
170170

171171
### For flag enumerations
172172

173-
#### shock_proxy::has()
173+
#### sx_proxy::has()
174174

175175
```
176-
shock_proxy function has(v:E):Boolean {
176+
sx_proxy function has(v:E):Boolean {
177177
//
178178
}
179179
```

src/interfaces.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ The `interface` block may only contain function definitions, including regular m
2121

2222
An `interface` is a subtype of `Object`, although compile-time property lookups do not inherit `Object` properties.
2323

24-
## ShockDoc comment
24+
## SXDoc comment
2525

26-
An interface may be prefixed by a ShockDoc comment.
26+
An interface may be prefixed by a SXDoc comment.
2727

2828
```
2929
/** Comment */
@@ -89,7 +89,7 @@ As annotations, interface methods may have nothing but an access modifier that i
8989

9090
```
9191
interface I {
92-
shock_proxy function get(key:String):String;
92+
sx_proxy function get(key:String):String;
9393
}
9494
```
9595

src/methods.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class A {
2121
}
2222
```
2323

24-
## ShockDoc comment
24+
## SXDoc comment
2525

26-
A ShockDoc comment can be applied to a method.
26+
A SXDoc comment can be applied to a method.
2727

2828
```
2929
/** Comment */

0 commit comments

Comments
 (0)