mlogjs 0.2.0 → 0.2.1
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/LICENSE +21 -21
- package/README.md +68 -18
- package/build/Compiler.d.ts +18 -18
- package/build/Compiler.js +99 -119
- package/build/Compiler.js.map +1 -1
- package/build/Scope.d.ts +26 -26
- package/build/Scope.js +60 -60
- package/build/Scope.js.map +1 -1
- package/build/bin.d.ts +2 -2
- package/build/bin.js +60 -41
- package/build/bin.js.map +1 -1
- package/build/handlers/BlockStatement.d.ts +2 -2
- package/build/handlers/BlockStatement.js +13 -13
- package/build/handlers/CallExpression.d.ts +3 -3
- package/build/handlers/CallExpression.js +19 -19
- package/build/handlers/ForStatement.d.ts +2 -2
- package/build/handlers/ForStatement.js +31 -31
- package/build/handlers/Function.d.ts +4 -4
- package/build/handlers/Function.js +35 -35
- package/build/handlers/Identifier.d.ts +2 -2
- package/build/handlers/Identifier.js +7 -7
- package/build/handlers/IfStatement.d.ts +2 -2
- package/build/handlers/IfStatement.js +24 -24
- package/build/handlers/Literal.d.ts +2 -2
- package/build/handlers/Literal.js +17 -17
- package/build/handlers/Object.d.ts +4 -4
- package/build/handlers/Object.js +43 -43
- package/build/handlers/OperationExpressions.d.ts +7 -7
- package/build/handlers/OperationExpressions.js +32 -32
- package/build/handlers/Program.d.ts +2 -2
- package/build/handlers/Program.js +8 -8
- package/build/handlers/Program.js.map +1 -1
- package/build/handlers/Statements.d.ts +5 -5
- package/build/handlers/Statements.js +29 -29
- package/build/handlers/TemplateExpression.d.ts +2 -2
- package/build/handlers/TemplateExpression.js +17 -17
- package/build/handlers/VariableDeclaration.d.ts +3 -3
- package/build/handlers/VariableDeclaration.js +55 -55
- package/build/handlers/WhileStatement.d.ts +2 -2
- package/build/handlers/WhileStatement.js +22 -22
- package/build/handlers/index.d.ts +14 -14
- package/build/handlers/index.js +30 -30
- package/build/index.d.ts +1 -1
- package/build/index.js +7 -7
- package/build/initScope.d.ts +2 -0
- package/build/initScope.js +40 -0
- package/build/initScope.js.map +1 -0
- package/build/instructions/AddressResolver.d.ts +12 -12
- package/build/instructions/AddressResolver.js +30 -30
- package/build/instructions/ControlInstructions.d.ts +11 -11
- package/build/instructions/ControlInstructions.js +22 -22
- package/build/instructions/EndInstruction.d.ts +4 -4
- package/build/instructions/EndInstruction.js +10 -10
- package/build/instructions/InstructionBase.d.ts +10 -10
- package/build/instructions/InstructionBase.js +20 -20
- package/build/instructions/JumpInstruction.d.ts +15 -15
- package/build/instructions/JumpInstruction.js +21 -21
- package/build/instructions/OperationInstruction.d.ts +5 -5
- package/build/instructions/OperationInstruction.js +10 -10
- package/build/instructions/SetCounterInstruction.d.ts +5 -5
- package/build/instructions/SetCounterInstruction.js +10 -10
- package/build/instructions/SetInstruction.d.ts +5 -5
- package/build/instructions/SetInstruction.js +10 -10
- package/build/instructions/ZeroSpaceInstruction.d.ts +4 -4
- package/build/instructions/ZeroSpaceInstruction.js +10 -10
- package/build/instructions/index.d.ts +9 -9
- package/build/instructions/index.js +25 -25
- package/build/macros/Building.d.ts +11 -11
- package/build/macros/Building.js +80 -80
- package/build/macros/Function.d.ts +12 -12
- package/build/macros/Function.js +19 -19
- package/build/macros/Math.d.ts +5 -5
- package/build/macros/Math.js +56 -56
- package/build/macros/Math.js.map +1 -1
- package/build/macros/Memory.d.ts +5 -5
- package/build/macros/Memory.js +60 -60
- package/build/macros/Namespace.d.ts +21 -21
- package/build/macros/Namespace.js +97 -97
- package/build/macros/Other.d.ts +5 -5
- package/build/macros/Other.js +19 -19
- package/build/macros/RawValue.d.ts +5 -5
- package/build/macros/RawValue.js +15 -15
- package/build/macros/commands/{control.d.ts → Control.d.ts} +5 -5
- package/build/macros/commands/{control.js → Control.js} +24 -24
- package/build/macros/commands/{control.js.map → Control.js.map} +0 -0
- package/build/macros/commands/Draw.d.ts +5 -5
- package/build/macros/commands/Draw.js +38 -38
- package/build/macros/commands/DrawFlush.d.ts +5 -5
- package/build/macros/commands/DrawFlush.js +16 -16
- package/build/macros/commands/GetLink.d.ts +5 -5
- package/build/macros/commands/GetLink.js +20 -20
- package/build/macros/commands/Lookup.d.ts +5 -5
- package/build/macros/commands/Lookup.js +23 -23
- package/build/macros/commands/Print.d.ts +5 -5
- package/build/macros/commands/Print.js +13 -13
- package/build/macros/commands/PrintFlush.d.ts +5 -5
- package/build/macros/commands/PrintFlush.js +16 -16
- package/build/macros/commands/Radar.d.ts +7 -7
- package/build/macros/commands/Radar.js +60 -60
- package/build/macros/commands/Sensor.d.ts +5 -5
- package/build/macros/commands/Sensor.js +19 -19
- package/build/macros/commands/UnitBind.d.ts +5 -5
- package/build/macros/commands/UnitBind.js +16 -16
- package/build/macros/commands/UnitControl.d.ts +5 -5
- package/build/macros/commands/UnitControl.js +67 -67
- package/build/macros/commands/UnitLocate.d.ts +5 -5
- package/build/macros/commands/UnitLocate.js +54 -54
- package/build/macros/commands/UnitRadar.d.ts +5 -5
- package/build/macros/commands/UnitRadar.js +40 -40
- package/build/macros/commands/Wait.d.ts +5 -5
- package/build/macros/commands/Wait.js +17 -17
- package/build/macros/commands/index.d.ts +14 -14
- package/build/macros/commands/index.js +32 -32
- package/build/macros/index.d.ts +7 -7
- package/build/macros/index.js +39 -39
- package/build/operators.d.ts +25 -25
- package/build/operators.js +101 -101
- package/build/types.d.ts +49 -49
- package/build/types.js +27 -27
- package/build/utils.d.ts +3 -3
- package/build/utils.js +12 -12
- package/build/values/BaseValue.d.ts +5 -5
- package/build/values/BaseValue.js +111 -111
- package/build/values/FunctionValue.d.ts +34 -34
- package/build/values/FunctionValue.js +103 -103
- package/build/values/LiteralValue.d.ts +12 -12
- package/build/values/LiteralValue.js +87 -87
- package/build/values/LiteralValue.js.map +1 -1
- package/build/values/ObjectValue.d.ts +17 -17
- package/build/values/ObjectValue.js +49 -49
- package/build/values/StoreValue.d.ts +11 -11
- package/build/values/StoreValue.js +30 -30
- package/build/values/TempValue.d.ts +12 -12
- package/build/values/TempValue.js +66 -66
- package/build/values/TempValue.js.map +1 -1
- package/build/values/VoidValue.d.ts +11 -11
- package/build/values/VoidValue.js +30 -30
- package/build/values/index.d.ts +6 -6
- package/build/values/index.js +22 -22
- package/dist/mlogjs.es.js +6366 -0
- package/dist/mlogjs.umd.js +8 -0
- package/lib/commands.d.ts +326 -326
- package/lib/eslib/index.d.ts +3 -3
- package/lib/eslib/lib.d.ts +9 -9
- package/lib/eslib/lib.es2015.collection.d.ts +89 -89
- package/lib/eslib/lib.es2015.core.d.ts +16 -16
- package/lib/eslib/lib.es2015.d.ts +30 -30
- package/lib/eslib/lib.es2015.generator.d.ts +79 -79
- package/lib/eslib/lib.es2015.iterable.d.ts +70 -70
- package/lib/eslib/lib.es5.d.ts +295 -295
- package/lib/eslib/lib.es6.d.ts +18 -18
- package/lib/globals.d.ts +328 -328
- package/lib/helpers.d.ts +23 -23
- package/lib/index.d.ts +7 -7
- package/lib/kinds.d.ts +36 -36
- package/lib/memory.d.ts +17 -17
- package/lib/traits.d.ts +121 -121
- package/lib/util.d.ts +32 -32
- package/package.json +73 -48
- package/build/macros/Blocks.d.ts +0 -5
- package/build/macros/Blocks.js +0 -143
- package/build/macros/Blocks.js.map +0 -1
- package/build/macros/Draw.d.ts +0 -5
- package/build/macros/Draw.js +0 -39
- package/build/macros/Draw.js.map +0 -1
- package/build/macros/Items.d.ts +0 -5
- package/build/macros/Items.js +0 -20
- package/build/macros/Items.js.map +0 -1
- package/build/macros/Liquids.d.ts +0 -5
- package/build/macros/Liquids.js +0 -18
- package/build/macros/Liquids.js.map +0 -1
- package/build/macros/Symbol.d.ts +0 -0
- package/build/macros/Symbol.js +0 -1
- package/build/macros/Symbol.js.map +0 -1
- package/build/macros/SymbolNamespace.d.ts +0 -0
- package/build/macros/SymbolNamespace.js +0 -1
- package/build/macros/SymbolNamespace.js.map +0 -1
- package/build/macros/TypeFactory.d.ts +0 -8
- package/build/macros/TypeFactory.js +0 -22
- package/build/macros/TypeFactory.js.map +0 -1
- package/build/macros/Units.d.ts +0 -5
- package/build/macros/Units.js +0 -18
- package/build/macros/Units.js.map +0 -1
- package/build/macros/Vars.d.ts +0 -5
- package/build/macros/Vars.js +0 -18
- package/build/macros/Vars.js.map +0 -1
- package/build/macros/commands/Asm.d.ts +0 -5
- package/build/macros/commands/Asm.js +0 -21
- package/build/macros/commands/Asm.js.map +0 -1
- package/build/macros/commands/io.d.ts +0 -8
- package/build/macros/commands/io.js +0 -47
- package/build/macros/commands/io.js.map +0 -1
- package/build/macros/helpers/GetBuilding.d.ts +0 -5
- package/build/macros/helpers/GetBuilding.js +0 -16
- package/build/macros/helpers/GetBuilding.js.map +0 -1
- package/build/macros/helpers/GetVar.d.ts +0 -5
- package/build/macros/helpers/GetVar.js +0 -16
- package/build/macros/helpers/GetVar.js.map +0 -1
- package/build/macros/helpers/index.d.ts +0 -2
- package/build/macros/helpers/index.js +0 -15
- package/build/macros/helpers/index.js.map +0 -1
- package/dist/bundle.js +0 -1
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
/*! *****************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
|
|
7
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
-
|
|
12
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
-
and limitations under the License.
|
|
14
|
-
***************************************************************************** */
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/// <reference no-default-lib="true"/>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
interface Map<K, V> {
|
|
22
|
-
clear(): void;
|
|
23
|
-
delete(key: K): boolean;
|
|
24
|
-
forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
|
|
25
|
-
get(key: K): V | undefined;
|
|
26
|
-
has(key: K): boolean;
|
|
27
|
-
set(key: K, value: V): this;
|
|
28
|
-
readonly size: number;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
interface MapConstructor {
|
|
32
|
-
new(): Map<any, any>;
|
|
33
|
-
new<K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
|
|
34
|
-
readonly prototype: Map<any, any>;
|
|
35
|
-
}
|
|
36
|
-
declare var Map: MapConstructor;
|
|
37
|
-
|
|
38
|
-
interface ReadonlyMap<K, V> {
|
|
39
|
-
forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
|
|
40
|
-
get(key: K): V | undefined;
|
|
41
|
-
has(key: K): boolean;
|
|
42
|
-
readonly size: number;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface WeakMap<K extends object, V> {
|
|
46
|
-
delete(key: K): boolean;
|
|
47
|
-
get(key: K): V | undefined;
|
|
48
|
-
has(key: K): boolean;
|
|
49
|
-
set(key: K, value: V): this;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
interface WeakMapConstructor {
|
|
53
|
-
new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;
|
|
54
|
-
readonly prototype: WeakMap<object, any>;
|
|
55
|
-
}
|
|
56
|
-
declare var WeakMap: WeakMapConstructor;
|
|
57
|
-
|
|
58
|
-
interface Set<T> {
|
|
59
|
-
add(value: T): this;
|
|
60
|
-
clear(): void;
|
|
61
|
-
delete(value: T): boolean;
|
|
62
|
-
forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
|
|
63
|
-
has(value: T): boolean;
|
|
64
|
-
readonly size: number;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
interface SetConstructor {
|
|
68
|
-
new <T = any>(values?: readonly T[] | null): Set<T>;
|
|
69
|
-
readonly prototype: Set<any>;
|
|
70
|
-
}
|
|
71
|
-
declare var Set: SetConstructor;
|
|
72
|
-
|
|
73
|
-
interface ReadonlySet<T> {
|
|
74
|
-
forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
|
|
75
|
-
has(value: T): boolean;
|
|
76
|
-
readonly size: number;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
interface WeakSet<T extends object> {
|
|
80
|
-
add(value: T): this;
|
|
81
|
-
delete(value: T): boolean;
|
|
82
|
-
has(value: T): boolean;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
interface WeakSetConstructor {
|
|
86
|
-
new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;
|
|
87
|
-
readonly prototype: WeakSet<object>;
|
|
88
|
-
}
|
|
89
|
-
declare var WeakSet: WeakSetConstructor;
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
interface Map<K, V> {
|
|
22
|
+
clear(): void;
|
|
23
|
+
delete(key: K): boolean;
|
|
24
|
+
forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
|
|
25
|
+
get(key: K): V | undefined;
|
|
26
|
+
has(key: K): boolean;
|
|
27
|
+
set(key: K, value: V): this;
|
|
28
|
+
readonly size: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface MapConstructor {
|
|
32
|
+
new(): Map<any, any>;
|
|
33
|
+
new<K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
|
|
34
|
+
readonly prototype: Map<any, any>;
|
|
35
|
+
}
|
|
36
|
+
declare var Map: MapConstructor;
|
|
37
|
+
|
|
38
|
+
interface ReadonlyMap<K, V> {
|
|
39
|
+
forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
|
|
40
|
+
get(key: K): V | undefined;
|
|
41
|
+
has(key: K): boolean;
|
|
42
|
+
readonly size: number;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface WeakMap<K extends object, V> {
|
|
46
|
+
delete(key: K): boolean;
|
|
47
|
+
get(key: K): V | undefined;
|
|
48
|
+
has(key: K): boolean;
|
|
49
|
+
set(key: K, value: V): this;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
interface WeakMapConstructor {
|
|
53
|
+
new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;
|
|
54
|
+
readonly prototype: WeakMap<object, any>;
|
|
55
|
+
}
|
|
56
|
+
declare var WeakMap: WeakMapConstructor;
|
|
57
|
+
|
|
58
|
+
interface Set<T> {
|
|
59
|
+
add(value: T): this;
|
|
60
|
+
clear(): void;
|
|
61
|
+
delete(value: T): boolean;
|
|
62
|
+
forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
|
|
63
|
+
has(value: T): boolean;
|
|
64
|
+
readonly size: number;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface SetConstructor {
|
|
68
|
+
new <T = any>(values?: readonly T[] | null): Set<T>;
|
|
69
|
+
readonly prototype: Set<any>;
|
|
70
|
+
}
|
|
71
|
+
declare var Set: SetConstructor;
|
|
72
|
+
|
|
73
|
+
interface ReadonlySet<T> {
|
|
74
|
+
forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
|
|
75
|
+
has(value: T): boolean;
|
|
76
|
+
readonly size: number;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
interface WeakSet<T extends object> {
|
|
80
|
+
add(value: T): this;
|
|
81
|
+
delete(value: T): boolean;
|
|
82
|
+
has(value: T): boolean;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
interface WeakSetConstructor {
|
|
86
|
+
new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;
|
|
87
|
+
readonly prototype: WeakSet<object>;
|
|
88
|
+
}
|
|
89
|
+
declare var WeakSet: WeakSetConstructor;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/*! *****************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
|
|
7
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
-
|
|
12
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
-
and limitations under the License.
|
|
14
|
-
***************************************************************************** */
|
|
15
|
-
|
|
16
|
-
/// <reference no-default-lib="true"/>
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
/// <reference no-default-lib="true"/>
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
/*! *****************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
|
|
7
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
-
|
|
12
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
-
and limitations under the License.
|
|
14
|
-
***************************************************************************** */
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/// <reference no-default-lib="true"/>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/// <reference lib="es5" />
|
|
22
|
-
/// <reference lib="es2015.core" />
|
|
23
|
-
/// <reference lib="es2015.collection" />
|
|
24
|
-
/// <reference lib="es2015.iterable" />
|
|
25
|
-
/// <reference lib="es2015.generator" />
|
|
26
|
-
/// <reference lib="es2015.promise" />
|
|
27
|
-
/// <reference lib="es2015.proxy" />
|
|
28
|
-
/// <reference lib="es2015.reflect" />
|
|
29
|
-
/// <reference lib="es2015.symbol" />
|
|
30
|
-
/// <reference lib="es2015.symbol.wellknown" />
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/// <reference lib="es5" />
|
|
22
|
+
/// <reference lib="es2015.core" />
|
|
23
|
+
/// <reference lib="es2015.collection" />
|
|
24
|
+
/// <reference lib="es2015.iterable" />
|
|
25
|
+
/// <reference lib="es2015.generator" />
|
|
26
|
+
/// <reference lib="es2015.promise" />
|
|
27
|
+
/// <reference lib="es2015.proxy" />
|
|
28
|
+
/// <reference lib="es2015.reflect" />
|
|
29
|
+
/// <reference lib="es2015.symbol" />
|
|
30
|
+
/// <reference lib="es2015.symbol.wellknown" />
|
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
/*! *****************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
|
|
7
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
-
|
|
12
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
-
and limitations under the License.
|
|
14
|
-
***************************************************************************** */
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/// <reference no-default-lib="true"/>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/// <reference lib="es2015.iterable" />
|
|
22
|
-
|
|
23
|
-
interface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> {
|
|
24
|
-
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
|
|
25
|
-
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
|
|
26
|
-
return(value: TReturn): IteratorResult<T, TReturn>;
|
|
27
|
-
throw(e: any): IteratorResult<T, TReturn>;
|
|
28
|
-
[Symbol.iterator](): Generator<T, TReturn, TNext>;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
interface GeneratorFunction {
|
|
32
|
-
/**
|
|
33
|
-
* Creates a new Generator object.
|
|
34
|
-
* @param args A list of arguments the function accepts.
|
|
35
|
-
*/
|
|
36
|
-
new (...args: any[]): Generator;
|
|
37
|
-
/**
|
|
38
|
-
* Creates a new Generator object.
|
|
39
|
-
* @param args A list of arguments the function accepts.
|
|
40
|
-
*/
|
|
41
|
-
(...args: any[]): Generator;
|
|
42
|
-
/**
|
|
43
|
-
* The length of the arguments.
|
|
44
|
-
*/
|
|
45
|
-
readonly length: number;
|
|
46
|
-
/**
|
|
47
|
-
* Returns the name of the function.
|
|
48
|
-
*/
|
|
49
|
-
readonly name: string;
|
|
50
|
-
/**
|
|
51
|
-
* A reference to the prototype.
|
|
52
|
-
*/
|
|
53
|
-
readonly prototype: Generator;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
interface GeneratorFunctionConstructor {
|
|
57
|
-
/**
|
|
58
|
-
* Creates a new Generator function.
|
|
59
|
-
* @param args A list of arguments the function accepts.
|
|
60
|
-
*/
|
|
61
|
-
new (...args: string[]): GeneratorFunction;
|
|
62
|
-
/**
|
|
63
|
-
* Creates a new Generator function.
|
|
64
|
-
* @param args A list of arguments the function accepts.
|
|
65
|
-
*/
|
|
66
|
-
(...args: string[]): GeneratorFunction;
|
|
67
|
-
/**
|
|
68
|
-
* The length of the arguments.
|
|
69
|
-
*/
|
|
70
|
-
readonly length: number;
|
|
71
|
-
/**
|
|
72
|
-
* Returns the name of the function.
|
|
73
|
-
*/
|
|
74
|
-
readonly name: string;
|
|
75
|
-
/**
|
|
76
|
-
* A reference to the prototype.
|
|
77
|
-
*/
|
|
78
|
-
readonly prototype: GeneratorFunction;
|
|
79
|
-
}
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/// <reference lib="es2015.iterable" />
|
|
22
|
+
|
|
23
|
+
interface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> {
|
|
24
|
+
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
|
|
25
|
+
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
|
|
26
|
+
return(value: TReturn): IteratorResult<T, TReturn>;
|
|
27
|
+
throw(e: any): IteratorResult<T, TReturn>;
|
|
28
|
+
[Symbol.iterator](): Generator<T, TReturn, TNext>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface GeneratorFunction {
|
|
32
|
+
/**
|
|
33
|
+
* Creates a new Generator object.
|
|
34
|
+
* @param args A list of arguments the function accepts.
|
|
35
|
+
*/
|
|
36
|
+
new (...args: any[]): Generator;
|
|
37
|
+
/**
|
|
38
|
+
* Creates a new Generator object.
|
|
39
|
+
* @param args A list of arguments the function accepts.
|
|
40
|
+
*/
|
|
41
|
+
(...args: any[]): Generator;
|
|
42
|
+
/**
|
|
43
|
+
* The length of the arguments.
|
|
44
|
+
*/
|
|
45
|
+
readonly length: number;
|
|
46
|
+
/**
|
|
47
|
+
* Returns the name of the function.
|
|
48
|
+
*/
|
|
49
|
+
readonly name: string;
|
|
50
|
+
/**
|
|
51
|
+
* A reference to the prototype.
|
|
52
|
+
*/
|
|
53
|
+
readonly prototype: Generator;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface GeneratorFunctionConstructor {
|
|
57
|
+
/**
|
|
58
|
+
* Creates a new Generator function.
|
|
59
|
+
* @param args A list of arguments the function accepts.
|
|
60
|
+
*/
|
|
61
|
+
new (...args: string[]): GeneratorFunction;
|
|
62
|
+
/**
|
|
63
|
+
* Creates a new Generator function.
|
|
64
|
+
* @param args A list of arguments the function accepts.
|
|
65
|
+
*/
|
|
66
|
+
(...args: string[]): GeneratorFunction;
|
|
67
|
+
/**
|
|
68
|
+
* The length of the arguments.
|
|
69
|
+
*/
|
|
70
|
+
readonly length: number;
|
|
71
|
+
/**
|
|
72
|
+
* Returns the name of the function.
|
|
73
|
+
*/
|
|
74
|
+
readonly name: string;
|
|
75
|
+
/**
|
|
76
|
+
* A reference to the prototype.
|
|
77
|
+
*/
|
|
78
|
+
readonly prototype: GeneratorFunction;
|
|
79
|
+
}
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
/*! *****************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
|
|
7
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
-
|
|
12
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
-
and limitations under the License.
|
|
14
|
-
***************************************************************************** */
|
|
15
|
-
|
|
16
|
-
/// <reference no-default-lib="true"/>
|
|
17
|
-
|
|
18
|
-
/// <reference lib="es2015.symbol" />
|
|
19
|
-
|
|
20
|
-
interface SymbolConstructor {
|
|
21
|
-
/**
|
|
22
|
-
* A method that returns the default iterator for an object. Called by the semantics of the
|
|
23
|
-
* for-of statement.
|
|
24
|
-
*/
|
|
25
|
-
readonly iterator: symbol;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
interface IteratorYieldResult<TYield> {
|
|
29
|
-
done?: false;
|
|
30
|
-
value: TYield;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface IteratorReturnResult<TReturn> {
|
|
34
|
-
done: true;
|
|
35
|
-
value: TReturn;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
type IteratorResult<T, TReturn = any> =
|
|
39
|
-
| IteratorYieldResult<T>
|
|
40
|
-
| IteratorReturnResult<TReturn>;
|
|
41
|
-
|
|
42
|
-
interface Iterator<T, TReturn = any, TNext = undefined> {
|
|
43
|
-
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
|
|
44
|
-
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
|
|
45
|
-
return?(value?: TReturn): IteratorResult<T, TReturn>;
|
|
46
|
-
throw?(e?: any): IteratorResult<T, TReturn>;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
interface Iterable<T> {
|
|
50
|
-
[Symbol.iterator](): Iterator<T>;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface IterableIterator<T> extends Iterator<T> {
|
|
54
|
-
[Symbol.iterator](): IterableIterator<T>;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
interface Array<T> {
|
|
58
|
-
/** Iterator */
|
|
59
|
-
[Symbol.iterator](): IterableIterator<T>;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
interface ReadonlyArray<T> {
|
|
63
|
-
/** Iterator of values in the array. */
|
|
64
|
-
[Symbol.iterator](): IterableIterator<T>;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
interface IArguments {
|
|
68
|
-
/** Iterator */
|
|
69
|
-
[Symbol.iterator](): IterableIterator<any>;
|
|
70
|
-
}
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
/// <reference no-default-lib="true"/>
|
|
17
|
+
|
|
18
|
+
/// <reference lib="es2015.symbol" />
|
|
19
|
+
|
|
20
|
+
interface SymbolConstructor {
|
|
21
|
+
/**
|
|
22
|
+
* A method that returns the default iterator for an object. Called by the semantics of the
|
|
23
|
+
* for-of statement.
|
|
24
|
+
*/
|
|
25
|
+
readonly iterator: symbol;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface IteratorYieldResult<TYield> {
|
|
29
|
+
done?: false;
|
|
30
|
+
value: TYield;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface IteratorReturnResult<TReturn> {
|
|
34
|
+
done: true;
|
|
35
|
+
value: TReturn;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
type IteratorResult<T, TReturn = any> =
|
|
39
|
+
| IteratorYieldResult<T>
|
|
40
|
+
| IteratorReturnResult<TReturn>;
|
|
41
|
+
|
|
42
|
+
interface Iterator<T, TReturn = any, TNext = undefined> {
|
|
43
|
+
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
|
|
44
|
+
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
|
|
45
|
+
return?(value?: TReturn): IteratorResult<T, TReturn>;
|
|
46
|
+
throw?(e?: any): IteratorResult<T, TReturn>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface Iterable<T> {
|
|
50
|
+
[Symbol.iterator](): Iterator<T>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface IterableIterator<T> extends Iterator<T> {
|
|
54
|
+
[Symbol.iterator](): IterableIterator<T>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface Array<T> {
|
|
58
|
+
/** Iterator */
|
|
59
|
+
[Symbol.iterator](): IterableIterator<T>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
interface ReadonlyArray<T> {
|
|
63
|
+
/** Iterator of values in the array. */
|
|
64
|
+
[Symbol.iterator](): IterableIterator<T>;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface IArguments {
|
|
68
|
+
/** Iterator */
|
|
69
|
+
[Symbol.iterator](): IterableIterator<any>;
|
|
70
|
+
}
|