浏览代码

Removed Storage Tags

kindlich 4 年前
父节点
当前提交
cfa5b45a8b
找不到此签名对应的密钥

+ 3
- 3
src/main/zencode/compactio/src/CompactBytesDataInput.zs 查看文件

@@ -16,15 +16,15 @@ public class CompactBytesDataInput {
16 16
 	private const P55 as ulong = 1UL << 55;
17 17
 	private const P56 as ulong = 1UL << 56;
18 18
 	
19
-	val data as byte[]`borrow:this;
19
+	val data as byte[];
20 20
 	var offset as usize : get;
21 21
 	
22
-	public this(data as byte[]`borrow:this) {
22
+	public this(data as byte[]) {
23 23
 		this.data = data;
24 24
 		this.offset = 0;
25 25
 	}
26 26
 	
27
-	public this(data as byte[]`borrow:this, offset as usize) {
27
+	public this(data as byte[], offset as usize) {
28 28
 		this.data = data;
29 29
 		this.offset = offset;
30 30
 	}

+ 50
- 50
src/main/zencode/compactio/src/CompactDataInput.zs 查看文件

@@ -1,103 +1,103 @@
1 1
 public interface CompactDataInput {
2
-	readBool`mutable() as bool;
2
+	readBool() as bool;
3 3
 	
4
-	readByte`mutable() as byte;
4
+	readByte() as byte;
5 5
 	
6
-	readSByte`mutable() as sbyte;
6
+	readSByte() as sbyte;
7 7
 	
8
-	readShort`mutable() as short;
8
+	readShort() as short;
9 9
 	
10
-	readUShort`mutable() as ushort;
10
+	readUShort() as ushort;
11 11
 	
12
-	readInt`mutable() as int;
12
+	readInt() as int;
13 13
 	
14
-	readUInt`mutable() as uint;
14
+	readUInt() as uint;
15 15
 	
16
-	readLong`mutable() as long;
16
+	readLong() as long;
17 17
 	
18
-	readULong`mutable() as ulong;
18
+	readULong() as ulong;
19 19
 	
20
-	readVarInt`mutable() as int;
20
+	readVarInt() as int;
21 21
 	
22
-	readVarUInt`mutable() as uint;
22
+	readVarUInt() as uint;
23 23
 	
24
-	readVarLong`mutable() as long;
24
+	readVarLong() as long;
25 25
 	
26
-	readVarULong`mutable() as ulong;
26
+	readVarULong() as ulong;
27 27
 	
28
-	readFloat`mutable() as float;
28
+	readFloat() as float;
29 29
 	
30
-	readDouble`mutable() as double;
30
+	readDouble() as double;
31 31
 	
32
-	readChar`mutable() as char;
32
+	readChar() as char;
33 33
 	
34
-	readString`mutable() as string;
34
+	readString() as string;
35 35
 	
36
-	readBytes`mutable() as byte[];
36
+	readBytes() as byte[];
37 37
 	
38
-	readRawBytes`mutable(length as usize) as byte[];
38
+	readRawBytes(length as usize) as byte[];
39 39
 	
40
-	readBoolArray`mutable() as bool[];
40
+	readBoolArray() as bool[];
41 41
 	
42
-	readByteArray`mutable() as byte[];
42
+	readByteArray() as byte[];
43 43
 	
44
-	readSByteArray`mutable() as sbyte[];
44
+	readSByteArray() as sbyte[];
45 45
 	
46
-	readShortArray`mutable() as short[];
46
+	readShortArray() as short[];
47 47
 	
48
-	readShortArrayRaw`mutable(length as usize) as short[];
48
+	readShortArrayRaw(length as usize) as short[];
49 49
 	
50
-	readUShortArray`mutable() as ushort[];
50
+	readUShortArray() as ushort[];
51 51
 	
52
-	readUShortArrayRaw`mutable(length as usize) as ushort[];
52
+	readUShortArrayRaw(length as usize) as ushort[];
53 53
 	
54
-	readVarIntArray`mutable() as int[];
54
+	readVarIntArray() as int[];
55 55
 	
56
-	readVarIntArrayRaw`mutable(length as usize) as int[];
56
+	readVarIntArrayRaw(length as usize) as int[];
57 57
 	
58
-	readVarUIntArray`mutable() as uint[];
58
+	readVarUIntArray() as uint[];
59 59
 	
60
-	readVarUIntArrayRaw`mutable(length as usize) as uint[];
60
+	readVarUIntArrayRaw(length as usize) as uint[];
61 61
 	
62
-	readIntArray`mutable() as int[];
62
+	readIntArray() as int[];
63 63
 	
64
-	readIntArrayRaw`mutable(length as usize) as int[];
64
+	readIntArrayRaw(length as usize) as int[];
65 65
 	
66
-	readUIntArray`mutable() as uint[];
66
+	readUIntArray() as uint[];
67 67
 	
68
-	readUIntArrayRaw`mutable(length as usize) as uint[];
68
+	readUIntArrayRaw(length as usize) as uint[];
69 69
 	
70
-	readVarLongArray`mutable() as long[];
70
+	readVarLongArray() as long[];
71 71
 	
72
-	readVarLongArrayRaw`mutable(length as usize) as long[];
72
+	readVarLongArrayRaw(length as usize) as long[];
73 73
 	
74
-	readVarULongArray`mutable() as ulong[];
74
+	readVarULongArray() as ulong[];
75 75
 	
76
-	readVarULongArrayRaw`mutable(length as usize) as ulong[];
76
+	readVarULongArrayRaw(length as usize) as ulong[];
77 77
 	
78
-	readLongArray`mutable() as long[];
78
+	readLongArray() as long[];
79 79
 	
80
-	readLongArrayRaw`mutable(length as usize) as long[];
80
+	readLongArrayRaw(length as usize) as long[];
81 81
 	
82
-	readULongArray`mutable() as ulong[];
82
+	readULongArray() as ulong[];
83 83
 	
84
-	readULongArrayRaw`mutable(length as usize) as ulong[];
84
+	readULongArrayRaw(length as usize) as ulong[];
85 85
 	
86
-	readFloatArray`mutable() as float[];
86
+	readFloatArray() as float[];
87 87
 	
88
-	readFloatArrayRaw`mutable(length as usize) as float[];
88
+	readFloatArrayRaw(length as usize) as float[];
89 89
 	
90
-	readDoubleArray`mutable() as double[];
90
+	readDoubleArray() as double[];
91 91
 	
92
-	readDoubleArrayRaw`mutable(length as usize) as double[];
92
+	readDoubleArrayRaw(length as usize) as double[];
93 93
 	
94
-	readStringArray`mutable() as string[];
94
+	readStringArray() as string[];
95 95
 	
96
-	readStringArrayRaw`mutable(length as usize) as string[];
96
+	readStringArrayRaw(length as usize) as string[];
97 97
 	
98
-	skip`mutable(bytes as usize) as void;
98
+	skip(bytes as usize) as void;
99 99
 	
100
-	hasMore`mutable() as bool;
100
+	hasMore() as bool;
101 101
 	
102 102
 	~this;
103 103
 }

+ 7
- 7
src/main/zencode/listeners/src/ListenerList.zs 查看文件

@@ -3,14 +3,14 @@ public class ListenerList<T> {
3 3
 	public const PRIORITY_DEFAULT = 0;
4 4
 	public const PRIORITY_LOW = -100;
5 5
 	
6
-	var first as EventListenerNode`borrow? = null;
7
-	var last as EventListenerNode`borrow? = null;
6
+	var first as EventListenerNode? = null;
7
+	var last as EventListenerNode? = null;
8 8
 	
9
-	public add(listener as T) as ListenerHandle<T>`unique
9
+	public add(listener as T) as ListenerHandle<T>
10 10
 		=> add(listener, PRIORITY_DEFAULT);
11 11
 	
12
-	public add(listener as T, priority as int) as ListenerHandle<T>`unique {
13
-		val node = new EventListenerNode`unique(listener, priority);
12
+	public add(listener as T, priority as int) as ListenerHandle<T> {
13
+		val node = new EventListenerNode(listener, priority);
14 14
 		
15 15
 		if first == null {
16 16
 			first = last = node;
@@ -55,8 +55,8 @@ public class ListenerList<T> {
55 55
 	private class EventListenerNode {
56 56
 		val listener as T : get;
57 57
 		val priority as int;
58
-		var next as EventListenerNode`borrow? = null;
59
-		var prev as EventListenerNode`borrow? = null;
58
+		var next as EventListenerNode? = null;
59
+		var prev as EventListenerNode? = null;
60 60
 		
61 61
 		public this(listener as T, priority as int) {
62 62
 			this.listener = listener;

+ 1
- 1
src/main/zencode/live/src/ImmutableLiveBool.zs 查看文件

@@ -11,6 +11,6 @@ public class ImmutableLiveBool {
11 11
 	}
12 12
 	
13 13
 	public implements LiveBool {
14
-		addListener(listener) => new DummyListenerHandle<LiveBool.Listener>`unique(listener);
14
+		addListener(listener) => new DummyListenerHandle<LiveBool.Listener>(listener);
15 15
 	}
16 16
 }

+ 1
- 1
src/main/zencode/live/src/ImmutableLiveObject.zs 查看文件

@@ -8,6 +8,6 @@ public class ImmutableLiveObject<T> {
8 8
 	}
9 9
 	
10 10
 	public implements LiveObject<T> {
11
-		addListener(listener) => new DummyListenerHandle<LiveObject<T>.Listener<T>>`unique(listener);
11
+		addListener(listener) => new DummyListenerHandle<LiveObject<T>.Listener<T>>(listener);
12 12
 	}
13 13
 }

+ 1
- 1
src/main/zencode/live/src/ImmutableLiveString.zs 查看文件

@@ -8,6 +8,6 @@ public class ImmutableLiveString {
8 8
 	}
9 9
 	
10 10
 	public implements LiveString {
11
-		addListener(listener) => new DummyListenerHandle<LiveString.Listener>`unique(listener);
11
+		addListener(listener) => new DummyListenerHandle<LiveString.Listener>(listener);
12 12
 	}
13 13
 }

+ 1
- 1
src/main/zencode/live/src/LiveBool.zs 查看文件

@@ -1,7 +1,7 @@
1 1
 public interface LiveBool {
2 2
 	get value as bool;
3 3
 	
4
-	addListener(listener as Listener) as ListenerHandle`unique;
4
+	addListener(listener as Listener) as ListenerHandle;
5 5
 	
6 6
 	alias Listener as function(oldValue as bool, newValue as bool) as void;
7 7
 	alias ListenerHandle as listeners.ListenerHandle<Listener>;

+ 2
- 2
src/main/zencode/live/src/LiveConcatList.zs 查看文件

@@ -6,8 +6,8 @@ import listeners.ListenerHandle;
6 6
 	val a as LiveList<T>;
7 7
 	val b as LiveList<T>;
8 8
 	
9
-	val aListener as ListenerHandle<LiveList<T>.Listener<T>>`unique;
10
-	val bListener as ListenerHandle<LiveList<T>.Listener<T>>`unique;
9
+	val aListener as ListenerHandle<LiveList<T>.Listener<T>>;
10
+	val bListener as ListenerHandle<LiveList<T>.Listener<T>>;
11 11
 	
12 12
 	public this(a as LiveList<T>, b as LiveList<T>) {
13 13
 		this.a = a;

+ 1
- 1
src/main/zencode/live/src/LiveEmptyList.zs 查看文件

@@ -10,6 +10,6 @@ public class LiveEmptyList<T> {
10 10
 		
11 11
 		iterate() => Iterator<T>.empty<T>();
12 12
 		
13
-		addListener(listener) => new DummyListenerHandle<Listener<T>>`unique(listener);
13
+		addListener(listener) => new DummyListenerHandle<Listener<T>>(listener);
14 14
 	}
15 15
 }

+ 1
- 1
src/main/zencode/live/src/LiveFloat.zs 查看文件

@@ -2,7 +2,7 @@ public interface LiveFloat {
2 2
 	get value as float;
3 3
 	set value as float;
4 4
 	
5
-	addListener(listener as Listener) as ListenerHandle`unique;
5
+	addListener(listener as Listener) as ListenerHandle;
6 6
 	
7 7
 	alias Listener as function(oldValue as float, newValue as float) as void;
8 8
 	alias ListenerHandle as listeners.ListenerHandle<Listener>;

+ 1
- 1
src/main/zencode/live/src/LiveInt.zs 查看文件

@@ -2,7 +2,7 @@ public interface LiveInt {
2 2
 	get value as int;
3 3
 	set value as int;
4 4
 	
5
-	addListener(listener as Listener) as ListenerHandle`unique;
5
+	addListener(listener as Listener) as ListenerHandle;
6 6
 	
7 7
 	alias Listener as function(oldValue as int, newValue as int) as void;
8 8
 	alias ListenerHandle as listeners.ListenerHandle<Listener>;

+ 1
- 1
src/main/zencode/live/src/LiveList.zs 查看文件

@@ -10,7 +10,7 @@ public interface LiveList<T> : Iterable<T> {
10 10
 	
11 11
 	[](index as usize) as T;
12 12
 	
13
-	addListener(listener as Listener<T>) as ListenerHandle<T>`unique;
13
+	addListener(listener as Listener<T>) as ListenerHandle<T>;
14 14
 	
15 15
 	public interface Listener<T> {
16 16
 		onInserted(index as usize, value as T) as void;

+ 1
- 1
src/main/zencode/live/src/LiveObject.zs 查看文件

@@ -1,7 +1,7 @@
1 1
 public interface LiveObject<T> {
2 2
 	get value as T;
3 3
 	
4
-	addListener(listener as Listener<T>) as ListenerHandle<T>`unique;
4
+	addListener(listener as Listener<T>) as ListenerHandle<T>;
5 5
 	
6 6
 	alias Listener<T> as function(oldValue as T, newValue as T) as void;
7 7
 	alias ListenerHandle<T> as listeners.ListenerHandle<Listener<T>>;

+ 1
- 1
src/main/zencode/live/src/LiveString.zs 查看文件

@@ -1,7 +1,7 @@
1 1
 public interface LiveString {
2 2
 	get value as string;
3 3
 	
4
-	addListener(listener as Listener) as ListenerHandle`unique;
4
+	addListener(listener as Listener) as ListenerHandle;
5 5
 	
6 6
 	alias Listener as function(oldValue as string, newValue as string) as void;
7 7
 	alias ListenerHandle as listeners.ListenerHandle<Listener>;

正在加载...
取消
保存