Files
divkit/test_data/expression_test_data/function_signatures_array.json
denlvovich e5063769f7 Added len() function to dict
commit_hash:ec81d67275138150c1bc92e6c2b1009ee71935c4
2025-07-04 15:25:35 +03:00

758 lines
16 KiB
JSON

{
"signatures": [
{
"function_name": "getArrayString",
"doc": "Returns a string value from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
}
],
"result_type": "string",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getArrayNumber",
"doc": "Returns a number value from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
}
],
"result_type": "number",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getArrayInteger",
"doc": "Returns an integer value from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
}
],
"result_type": "integer",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getArrayBoolean",
"doc": "Returns a boolean property from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
}
],
"result_type": "boolean",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getArrayColor",
"doc": "Returns a color property from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
}
],
"result_type": "color",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getArrayOptString",
"doc": "Returns an optional string property from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
},
{
"type": "string",
"doc": "Fallback value if value by index not exists or it's is not a string."
}
],
"result_type": "string",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getArrayOptNumber",
"doc": "Returns an optional number property from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
},
{
"type": "number",
"doc": "Fallback value if value by index not exists or it's is not a number."
}
],
"result_type": "number",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getArrayOptInteger",
"doc": "Returns an optional integer property from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
},
{
"type": "integer",
"doc": "Fallback value if property does not exist or a property value is not an integer."
}
],
"result_type": "integer",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getArrayOptBoolean",
"doc": "Returns an optional boolean value from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
},
{
"type": "boolean",
"doc": "Fallback value if value by index not exists or it's is not a boolean."
}
],
"result_type": "boolean",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getArrayOptColor",
"doc": "Returns an optional color value from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
},
{
"type": "color",
"doc": "Fallback value if value by index not exists or it's is not a color."
}
],
"result_type": "color",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getArrayOptColor",
"doc": "Returns an optional color value from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
},
{
"type": "string",
"doc": "Fallback value if value by index not exists or it's is not a color."
}
],
"result_type": "color",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getArrayUrl",
"doc": "Returns an url value from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
}
],
"result_type": "url",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getArrayOptUrl",
"doc": "Returns an optional url value from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
},
{
"type": "url",
"doc": "Fallback value if value by index not exists or it's is not a url."
}
],
"result_type": "url",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getArrayOptUrl",
"doc": "Returns an optional url value from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
},
{
"type": "string",
"doc": "Fallback value if value by index not exists or it's is not a url."
}
],
"result_type": "url",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getStringFromArray",
"doc": "Returns a string value from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
}
],
"result_type": "string",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getNumberFromArray",
"doc": "Returns a number value from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
}
],
"result_type": "number",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getIntegerFromArray",
"doc": "Returns an integer value from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
}
],
"result_type": "integer",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getBooleanFromArray",
"doc": "Returns a boolean property from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
}
],
"result_type": "boolean",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getColorFromArray",
"doc": "Returns a color property from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
}
],
"result_type": "color",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getOptStringFromArray",
"doc": "Returns an optional string property from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
},
{
"type": "string",
"doc": "Fallback value if value by index not exists or it's is not a string."
}
],
"result_type": "string",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getOptNumberFromArray",
"doc": "Returns an optional number property from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
},
{
"type": "number",
"doc": "Fallback value if value by index not exists or it's is not a number."
}
],
"result_type": "number",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getOptIntegerFromArray",
"doc": "Returns an optional integer property from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
},
{
"type": "integer",
"doc": "Fallback value if property does not exist or a property value is not an integer."
}
],
"result_type": "integer",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getOptBooleanFromArray",
"doc": "Returns an optional boolean value from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
},
{
"type": "boolean",
"doc": "Fallback value if value by index not exists or it's is not a boolean."
}
],
"result_type": "boolean",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getOptColorFromArray",
"doc": "Returns an optional color value from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
},
{
"type": "color",
"doc": "Fallback value if value by index not exists or it's is not a color."
}
],
"result_type": "color",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getOptColorFromArray",
"doc": "Returns an optional color value from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
},
{
"type": "string",
"doc": "Fallback value if value by index not exists or it's is not a color."
}
],
"result_type": "color",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getUrlFromArray",
"doc": "Returns an url value from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
}
],
"result_type": "url",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getOptUrlFromArray",
"doc": "Returns an optional url value from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
},
{
"type": "url",
"doc": "Fallback value if value by index not exists or it's is not a url."
}
],
"result_type": "url",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getOptUrlFromArray",
"doc": "Returns an optional url value from array.",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
},
{
"type": "string",
"doc": "Fallback value if value by index not exists or it's is not a url."
}
],
"result_type": "url",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getArrayFromArray",
"doc": "Returns an array value from array",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
}
],
"result_type": "array",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getOptArrayFromArray",
"doc": "Returns an array value from array if exist or empty array otherwise",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
}
],
"result_type": "array",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getDictFromArray",
"doc": "Returns an dict value from array",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
}
],
"result_type": "dict",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "getOptDictFromArray",
"doc": "Returns an dict value from array if exist or empty dict otherwise",
"arguments": [
{
"type": "array",
"doc": "Array."
},
{
"type": "integer",
"doc": "Index at array."
}
],
"result_type": "dict",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
},
{
"function_name": "len",
"doc": "Gets the length of array. Returns integer value.",
"arguments": [
{
"type": "array",
"doc": "Array value to get length of."
}
],
"result_type": "integer",
"platforms": [
"android",
"ios",
"web",
"flutter"
]
}
]
}