goscript 0.0.51 → 0.0.52
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/compiler/analysis.go +513 -339
- package/compiler/compiler.go +35 -6
- package/compiler/expr-call-async.go +71 -209
- package/compiler/expr.go +0 -44
- package/compiler/stmt-assign.go +0 -6
- package/compiler/stmt-select.go +5 -5
- package/compiler/type-assert.go +6 -6
- package/dist/gs/builtin/builtin.d.ts +0 -1
- package/dist/gs/builtin/builtin.js +0 -9
- package/dist/gs/builtin/builtin.js.map +1 -1
- package/dist/gs/builtin/channel.d.ts +3 -1
- package/dist/gs/builtin/channel.js +2 -10
- package/dist/gs/builtin/channel.js.map +1 -1
- package/dist/gs/context/context.js +2 -2
- package/dist/gs/context/context.js.map +1 -1
- package/dist/gs/runtime/runtime.d.ts +1 -1
- package/dist/gs/runtime/runtime.js +1 -1
- package/dist/gs/time/time.d.ts +2 -2
- package/dist/gs/time/time.js +12 -9
- package/dist/gs/time/time.js.map +1 -1
- package/go.mod +1 -1
- package/gs/builtin/builtin.ts +0 -11
- package/gs/builtin/channel.ts +23 -7
- package/gs/context/context.ts +6 -2
- package/gs/context/meta.json +16 -0
- package/gs/runtime/runtime.ts +1 -1
- package/gs/syscall/constants.ts +1 -1
- package/gs/syscall/env.ts +1 -1
- package/gs/syscall/errors.ts +1 -1
- package/gs/syscall/fs.ts +1 -1
- package/gs/syscall/rawconn.ts +1 -1
- package/gs/syscall/types.ts +1 -1
- package/gs/time/meta.json +6 -0
- package/gs/time/time.ts +16 -13
- package/gs/unicode/meta.json +24 -0
- package/package.json +1 -1
- package/gs/unicode/unicode.go +0 -38
package/package.json
CHANGED
package/gs/unicode/unicode.go
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
package unicode
|
|
2
|
-
|
|
3
|
-
import "github.com/aperturerobotics/goscript/compiler"
|
|
4
|
-
|
|
5
|
-
// Metadata for unicode package functions
|
|
6
|
-
// Most unicode functions are synchronous character operations
|
|
7
|
-
|
|
8
|
-
// Character classification functions
|
|
9
|
-
var (
|
|
10
|
-
IsControlInfo = compiler.FunctionInfo{IsAsync: false}
|
|
11
|
-
IsDigitInfo = compiler.FunctionInfo{IsAsync: false}
|
|
12
|
-
IsGraphicInfo = compiler.FunctionInfo{IsAsync: false}
|
|
13
|
-
IsLetterInfo = compiler.FunctionInfo{IsAsync: false}
|
|
14
|
-
IsLowerInfo = compiler.FunctionInfo{IsAsync: false}
|
|
15
|
-
IsMarkInfo = compiler.FunctionInfo{IsAsync: false}
|
|
16
|
-
IsNumberInfo = compiler.FunctionInfo{IsAsync: false}
|
|
17
|
-
IsPrintInfo = compiler.FunctionInfo{IsAsync: false}
|
|
18
|
-
IsPunctInfo = compiler.FunctionInfo{IsAsync: false}
|
|
19
|
-
IsSpaceInfo = compiler.FunctionInfo{IsAsync: false}
|
|
20
|
-
IsSymbolInfo = compiler.FunctionInfo{IsAsync: false}
|
|
21
|
-
IsTitleInfo = compiler.FunctionInfo{IsAsync: false}
|
|
22
|
-
IsUpperInfo = compiler.FunctionInfo{IsAsync: false}
|
|
23
|
-
)
|
|
24
|
-
|
|
25
|
-
// Case conversion functions
|
|
26
|
-
var (
|
|
27
|
-
ToLowerInfo = compiler.FunctionInfo{IsAsync: false}
|
|
28
|
-
ToTitleInfo = compiler.FunctionInfo{IsAsync: false}
|
|
29
|
-
ToUpperInfo = compiler.FunctionInfo{IsAsync: false}
|
|
30
|
-
SimpleFoldInfo = compiler.FunctionInfo{IsAsync: false}
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
// Category functions
|
|
34
|
-
var (
|
|
35
|
-
InInfo = compiler.FunctionInfo{IsAsync: false}
|
|
36
|
-
IsInfo = compiler.FunctionInfo{IsAsync: false}
|
|
37
|
-
IsOneOfInfo = compiler.FunctionInfo{IsAsync: false}
|
|
38
|
-
)
|