@zenuml/core 3.45.2 → 3.45.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/stats.html +1 -1
- package/dist/zenuml.esm.mjs +7398 -7325
- package/dist/zenuml.js +536 -536
- package/docs/parser/Assignment.md +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Assignment occurs in the following contexts:
|
|
2
|
+
- Non-self Sync Message `ret = A.m()` or `T ret = A.m()`
|
|
3
|
+
- Self Sync Message `ret = m()` or `T ret = m()`
|
|
4
|
+
- Creation `ret = new A()` or `T ret = new A()`
|
|
5
|
+
|
|
6
|
+
For self sync message, the assignment is rendered with the message itself.
|
|
7
|
+
|
|
8
|
+
For non-self sync message and creation, the assignment is rendered as a return statement. If the Type presents, the return message would be like `t:T`. In such cases, we need to provide positions for type and assignee separately.
|