@@ -25,18 +25,20 @@ func prepareStdlib(g *typeGraph) {
25
25
"extVar" : g .newSimpleFuncType (anyType , "x" ),
26
26
27
27
// Types and reflection
28
- "thisFile" : stringType ,
29
- "type" : g .newSimpleFuncType (stringType , "x" ),
30
- "length" : g .newSimpleFuncType (numberType , "x" ),
31
- "objectHas" : g .newSimpleFuncType (boolType , "o" , "f" ),
32
- "objectFields" : g .newSimpleFuncType (arrayOfString , "o" ),
33
- "objectValues" : g .newSimpleFuncType (anyArrayType , "o" ),
34
- "objectHasAll" : g .newSimpleFuncType (boolType , "o" , "f" ),
35
- "objectFieldsAll" : g .newSimpleFuncType (arrayOfString , "o" ),
36
- "objectValuesAll" : g .newSimpleFuncType (anyArrayType , "o" ),
37
- "prune" : g .newSimpleFuncType (anyObjectType , "a" ),
38
- "mapWithKey" : g .newSimpleFuncType (anyObjectType , "func" , "obj" ),
39
- "get" : g .newFuncType (anyType , []ast.Parameter {required ("o" ), required ("f" ), optional ("default" ), optional ("inc_hidden" )}),
28
+ "thisFile" : stringType ,
29
+ "type" : g .newSimpleFuncType (stringType , "x" ),
30
+ "length" : g .newSimpleFuncType (numberType , "x" ),
31
+ "objectHas" : g .newSimpleFuncType (boolType , "o" , "f" ),
32
+ "objectFields" : g .newSimpleFuncType (arrayOfString , "o" ),
33
+ "objectValues" : g .newSimpleFuncType (anyArrayType , "o" ),
34
+ "objectKeysValues" : g .newSimpleFuncType (anyArrayType , "o" ),
35
+ "objectHasAll" : g .newSimpleFuncType (boolType , "o" , "f" ),
36
+ "objectFieldsAll" : g .newSimpleFuncType (arrayOfString , "o" ),
37
+ "objectValuesAll" : g .newSimpleFuncType (anyArrayType , "o" ),
38
+ "objectKeysValuesAll" : g .newSimpleFuncType (anyArrayType , "o" ),
39
+ "prune" : g .newSimpleFuncType (anyObjectType , "a" ),
40
+ "mapWithKey" : g .newSimpleFuncType (anyObjectType , "func" , "obj" ),
41
+ "get" : g .newFuncType (anyType , []ast.Parameter {required ("o" ), required ("f" ), optional ("default" ), optional ("inc_hidden" )}),
40
42
41
43
// isSomething
42
44
"isArray" : g .newSimpleFuncType (boolType , "v" ),
0 commit comments