@@ -25,18 +25,20 @@ func prepareStdlib(g *typeGraph) {
2525 "extVar" : g .newSimpleFuncType (anyType , "x" ),
2626
2727 // 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" )}),
4042
4143 // isSomething
4244 "isArray" : g .newSimpleFuncType (boolType , "v" ),
0 commit comments