From a05eac31fee231983e7b7b537b52ed57166debb2 Mon Sep 17 00:00:00 2001 From: gulevsky Date: Fri, 31 Oct 2025 16:11:20 +0300 Subject: [PATCH] move expression api description to a new location commit_hash:5eb88e0ab7a836dcecb028557c53633d1d006092 --- .mapping.json | 33 +- client/android/build.gradle | 1 + .../SignaturesMultiplatformTest.kt | 36 +- client/android/div/build.gradle | 2 + .../core/MultiplatformTestDataValidator.kt | 40 +- .../test/expression/MultiplatformTestUtils.kt | 10 +- client/ios/DivKit.xcodeproj/project.pbxproj | 4 + .../Expressions/FunctionSignaturesTests.swift | 8 +- .../tests/expressions/signatures.test.ts | 10 +- expression-api/function_signatures_array.json | 986 +++++++ expression-api/function_signatures_color.json | 455 +++ .../function_signatures_datetime.json | 565 ++++ expression-api/function_signatures_dict.json | 1057 +++++++ .../function_signatures_format.json | 121 + .../function_signatures_interval.json | 173 ++ expression-api/function_signatures_math.json | 590 ++++ expression-api/function_signatures_std.json | 666 +++++ .../function_signatures_strings.json | 498 ++++ .../function_signatures_to_string.json | 173 ++ .../function_signatures_trigonometry.json | 227 ++ expression-api/methods_signatures.json | 159 + expression-api/methods_signatures_array.json | 274 ++ expression-api/methods_signatures_dict.json | 327 +++ expression-api/methods_signatures_format.json | 125 + expression-api/schema/signatures.json | 137 + expression-api/schema/translations.json | 24 + expression-api/translations.json | 2603 +++++++++++++++++ .../expression-dsl-generator/build.gradle.kts | 8 + .../dsl/expression/generator/DivkitCodegen.kt | 27 +- .../generator/DivkitCodegenSignatures.kt | 23 +- .../generator/DivkitFunctionsGenerator.kt | 2 +- .../DivkitSignaturesFilesCollector.kt | 4 +- .../generator/DivkitSignaturesPreprocessor.kt | 11 +- .../dsl/expression/generator/model/Models.kt | 62 +- .../function_signatures_array.json | 757 ----- .../function_signatures_color.json | 356 --- .../function_signatures_datetime.json | 446 --- .../function_signatures_dict.json | 820 ------ .../function_signatures_format.json | 92 - .../function_signatures_interval.json | 140 - .../function_signatures_math.json | 473 --- .../function_signatures_std.json | 525 ---- .../function_signatures_strings.json | 389 --- .../function_signatures_to_string.json | 140 - .../function_signatures_trigonometry.json | 181 -- .../methods_signatures.json | 130 - .../methods_signatures_array.json | 215 -- .../methods_signatures_dict.json | 260 -- .../methods_signatures_format.json | 96 - 49 files changed, 9331 insertions(+), 5130 deletions(-) create mode 100644 expression-api/function_signatures_array.json create mode 100644 expression-api/function_signatures_color.json create mode 100644 expression-api/function_signatures_datetime.json create mode 100644 expression-api/function_signatures_dict.json create mode 100644 expression-api/function_signatures_format.json create mode 100644 expression-api/function_signatures_interval.json create mode 100644 expression-api/function_signatures_math.json create mode 100644 expression-api/function_signatures_std.json create mode 100644 expression-api/function_signatures_strings.json create mode 100644 expression-api/function_signatures_to_string.json create mode 100644 expression-api/function_signatures_trigonometry.json create mode 100644 expression-api/methods_signatures.json create mode 100644 expression-api/methods_signatures_array.json create mode 100644 expression-api/methods_signatures_dict.json create mode 100644 expression-api/methods_signatures_format.json create mode 100644 expression-api/schema/signatures.json create mode 100644 expression-api/schema/translations.json create mode 100644 expression-api/translations.json delete mode 100644 test_data/expression_test_data/function_signatures_array.json delete mode 100644 test_data/expression_test_data/function_signatures_color.json delete mode 100644 test_data/expression_test_data/function_signatures_datetime.json delete mode 100644 test_data/expression_test_data/function_signatures_dict.json delete mode 100644 test_data/expression_test_data/function_signatures_format.json delete mode 100644 test_data/expression_test_data/function_signatures_interval.json delete mode 100644 test_data/expression_test_data/function_signatures_math.json delete mode 100644 test_data/expression_test_data/function_signatures_std.json delete mode 100644 test_data/expression_test_data/function_signatures_strings.json delete mode 100644 test_data/expression_test_data/function_signatures_to_string.json delete mode 100644 test_data/expression_test_data/function_signatures_trigonometry.json delete mode 100644 test_data/expression_test_data/methods_signatures.json delete mode 100644 test_data/expression_test_data/methods_signatures_array.json delete mode 100644 test_data/expression_test_data/methods_signatures_dict.json delete mode 100644 test_data/expression_test_data/methods_signatures_format.json diff --git a/.mapping.json b/.mapping.json index 2fcfabe56..fa86c7d25 100644 --- a/.mapping.json +++ b/.mapping.json @@ -20744,6 +20744,24 @@ "compat_data/methods.json":"divkit/public/compat_data/methods.json", "compat_data/other.json":"divkit/public/compat_data/other.json", "compat_data/rtl.json":"divkit/public/compat_data/rtl.json", + "expression-api/function_signatures_array.json":"divkit/public/expression-api/function_signatures_array.json", + "expression-api/function_signatures_color.json":"divkit/public/expression-api/function_signatures_color.json", + "expression-api/function_signatures_datetime.json":"divkit/public/expression-api/function_signatures_datetime.json", + "expression-api/function_signatures_dict.json":"divkit/public/expression-api/function_signatures_dict.json", + "expression-api/function_signatures_format.json":"divkit/public/expression-api/function_signatures_format.json", + "expression-api/function_signatures_interval.json":"divkit/public/expression-api/function_signatures_interval.json", + "expression-api/function_signatures_math.json":"divkit/public/expression-api/function_signatures_math.json", + "expression-api/function_signatures_std.json":"divkit/public/expression-api/function_signatures_std.json", + "expression-api/function_signatures_strings.json":"divkit/public/expression-api/function_signatures_strings.json", + "expression-api/function_signatures_to_string.json":"divkit/public/expression-api/function_signatures_to_string.json", + "expression-api/function_signatures_trigonometry.json":"divkit/public/expression-api/function_signatures_trigonometry.json", + "expression-api/methods_signatures.json":"divkit/public/expression-api/methods_signatures.json", + "expression-api/methods_signatures_array.json":"divkit/public/expression-api/methods_signatures_array.json", + "expression-api/methods_signatures_dict.json":"divkit/public/expression-api/methods_signatures_dict.json", + "expression-api/methods_signatures_format.json":"divkit/public/expression-api/methods_signatures_format.json", + "expression-api/schema/signatures.json":"divkit/public/expression-api/schema/signatures.json", + "expression-api/schema/translations.json":"divkit/public/expression-api/schema/translations.json", + "expression-api/translations.json":"divkit/public/expression-api/translations.json", "json-builder/json-validator/json_validator.py":"divkit/public/json-builder/json-validator/json_validator.py", "json-builder/json-validator/json_validator_tests.py":"divkit/public/json-builder/json-validator/json_validator_tests.py", "json-builder/kotlin/README.md":"divkit/public/json-builder/kotlin/README.md", @@ -21586,17 +21604,6 @@ "site/server/src/runTsWorker.js":"divkit/public/site/server/src/runTsWorker.js", "test_data/expression_test_data/custom_functions.json":"divkit/public/test_data/expression_test_data/custom_functions.json", "test_data/expression_test_data/filter_function_array.json":"divkit/public/test_data/expression_test_data/filter_function_array.json", - "test_data/expression_test_data/function_signatures_array.json":"divkit/public/test_data/expression_test_data/function_signatures_array.json", - "test_data/expression_test_data/function_signatures_color.json":"divkit/public/test_data/expression_test_data/function_signatures_color.json", - "test_data/expression_test_data/function_signatures_datetime.json":"divkit/public/test_data/expression_test_data/function_signatures_datetime.json", - "test_data/expression_test_data/function_signatures_dict.json":"divkit/public/test_data/expression_test_data/function_signatures_dict.json", - "test_data/expression_test_data/function_signatures_format.json":"divkit/public/test_data/expression_test_data/function_signatures_format.json", - "test_data/expression_test_data/function_signatures_interval.json":"divkit/public/test_data/expression_test_data/function_signatures_interval.json", - "test_data/expression_test_data/function_signatures_math.json":"divkit/public/test_data/expression_test_data/function_signatures_math.json", - "test_data/expression_test_data/function_signatures_std.json":"divkit/public/test_data/expression_test_data/function_signatures_std.json", - "test_data/expression_test_data/function_signatures_strings.json":"divkit/public/test_data/expression_test_data/function_signatures_strings.json", - "test_data/expression_test_data/function_signatures_to_string.json":"divkit/public/test_data/expression_test_data/function_signatures_to_string.json", - "test_data/expression_test_data/function_signatures_trigonometry.json":"divkit/public/test_data/expression_test_data/function_signatures_trigonometry.json", "test_data/expression_test_data/functions_arithmetic_integer.json":"divkit/public/test_data/expression_test_data/functions_arithmetic_integer.json", "test_data/expression_test_data/functions_arithmetic_number.json":"divkit/public/test_data/expression_test_data/functions_arithmetic_number.json", "test_data/expression_test_data/functions_array.json":"divkit/public/test_data/expression_test_data/functions_array.json", @@ -21634,10 +21641,6 @@ "test_data/expression_test_data/methods_array.json":"divkit/public/test_data/expression_test_data/methods_array.json", "test_data/expression_test_data/methods_dict.json":"divkit/public/test_data/expression_test_data/methods_dict.json", "test_data/expression_test_data/methods_format.json":"divkit/public/test_data/expression_test_data/methods_format.json", - "test_data/expression_test_data/methods_signatures.json":"divkit/public/test_data/expression_test_data/methods_signatures.json", - "test_data/expression_test_data/methods_signatures_array.json":"divkit/public/test_data/expression_test_data/methods_signatures_array.json", - "test_data/expression_test_data/methods_signatures_dict.json":"divkit/public/test_data/expression_test_data/methods_signatures_dict.json", - "test_data/expression_test_data/methods_signatures_format.json":"divkit/public/test_data/expression_test_data/methods_signatures_format.json", "test_data/expression_test_data/operations_comparison_boolean.json":"divkit/public/test_data/expression_test_data/operations_comparison_boolean.json", "test_data/expression_test_data/operations_comparison_datetime.json":"divkit/public/test_data/expression_test_data/operations_comparison_datetime.json", "test_data/expression_test_data/operations_comparison_integer.json":"divkit/public/test_data/expression_test_data/operations_comparison_integer.json", diff --git a/client/android/build.gradle b/client/android/build.gradle index c4a7ca69e..e726bd6d2 100644 --- a/client/android/build.gradle +++ b/client/android/build.gradle @@ -135,6 +135,7 @@ apiValidation { "divkit-demo-app", "divkit-perftests", "divkit-regression-testing", + "expression-test-common", "lint-rules", "sample", "screenshot-test-runtime", diff --git a/client/android/div-evaluable/src/test/java/com/yandex/div/evaluable/multiplatform/SignaturesMultiplatformTest.kt b/client/android/div-evaluable/src/test/java/com/yandex/div/evaluable/multiplatform/SignaturesMultiplatformTest.kt index 901e04979..7907d7e55 100644 --- a/client/android/div-evaluable/src/test/java/com/yandex/div/evaluable/multiplatform/SignaturesMultiplatformTest.kt +++ b/client/android/div-evaluable/src/test/java/com/yandex/div/evaluable/multiplatform/SignaturesMultiplatformTest.kt @@ -28,7 +28,7 @@ class SignaturesMultiplatformTest(caseOrError: TestCaseOrError, - val resultType: EvaluableType, + val returnType: EvaluableType, val isMethod: Boolean, ) { override fun toString(): String { @@ -49,22 +49,22 @@ class SignaturesMultiplatformTest(caseOrError: TestCaseOrError> { val cases = mutableListOf>() - val errors = MultiplatformTestUtils.walkJSONs(SIGNATURES_FILE_PATH) { file, jsonString -> - val newCases = JSONObject(jsonString).optJSONArray(SIGNATURE_FIELD).toListOfJSONObject() + val errors = MultiplatformTestUtils.walkJSONs(File(SIGNATURES_DIR_PATH)) { file, jsonString -> + val newCases = JSONObject(jsonString).optJSONArray(FIELD_SIGNATURE).toListOfJSONObject() .filter { isForAndroidPlatform(parsePlatform(it)) } .map { parseSignature(file, it) } .filter { it.error == null } @@ -75,25 +75,25 @@ class SignaturesMultiplatformTest(caseOrError: TestCaseOrError { - val functionName = json.getString(SIGNATURE_FUNCTION_NAME) - val arguments = json.optJSONArray(SIGNATURE_ARGUMENTS_FIELD)?.let { array -> + val functionName = json.getString(FIELD_SIGNATURE_NAME) + val arguments = json.optJSONArray(FIELD_SIGNATURE_ARGUMENTS)?.let { array -> val result = mutableListOf() for (i in 0 until array.length()) { val argument = array.getJSONObject(i) val type = EvaluableType.valueOf( - argument.getString(ARGUMENT_TYPE_FIELD).uppercase() + argument.getString(FIELD_ARGUMENT_TYPE).uppercase() ) - val vararg = argument.optBoolean(ARGUMENT_VARARG_FIELD) + val vararg = argument.optBoolean(FIELD_ARGUMENT_IS_VARARG) result.add(FunctionArgument(type, vararg)) } result } val resultType = try { - EvaluableType.valueOf(json.getString(SIGNATURE_RESULT_TYPE_FIELD).uppercase()) + EvaluableType.valueOf(json.getString(FIELD_SIGNATURE_RETURN_TYPE).uppercase()) } catch (e: JSONException) { return TestCaseOrError(TestCaseParsingError(file.name, json, e)) } - val isMethod = json.optBoolean(SIGNATURE_IS_METHOD_FIELD) + val isMethod = json.optBoolean(FIELD_SIGNATURE_IS_METHOD) return TestCaseOrError(SignatureTestCase( "$functionName(${arguments ?: ""}) $resultType", functionName, diff --git a/client/android/div/build.gradle b/client/android/div/build.gradle index b5555e6e9..0377598e4 100644 --- a/client/android/div/build.gradle +++ b/client/android/div/build.gradle @@ -12,6 +12,7 @@ apply from: "${project.projectDir}/../publish-android.gradle" apply plugin: 'de.mobilej.unmock' apply plugin: 'kotlinx-serialization' +def expressionApiDir = "${project.projectDir}/../../../expression-api/" def crossplatformProjectDir = "${project.projectDir}/../../../test_data/" android { @@ -20,6 +21,7 @@ android { buildFeatures { buildConfig = true } defaultConfig { + buildConfigField "String", "EXPRESSION_API_PATH", JsonOutput.toJson(expressionApiDir) buildConfigField "String", "DIV2_JSON_PATH", JsonOutput.toJson(crossplatformProjectDir) } } diff --git a/client/android/div/src/test/java/com/yandex/div/core/MultiplatformTestDataValidator.kt b/client/android/div/src/test/java/com/yandex/div/core/MultiplatformTestDataValidator.kt index 3886a5f54..6b5db3ae5 100644 --- a/client/android/div/src/test/java/com/yandex/div/core/MultiplatformTestDataValidator.kt +++ b/client/android/div/src/test/java/com/yandex/div/core/MultiplatformTestDataValidator.kt @@ -1,6 +1,7 @@ package com.yandex.div.core import com.yandex.div.BuildConfig.DIV2_JSON_PATH +import com.yandex.div.BuildConfig.EXPRESSION_API_PATH import org.json.JSONArray import org.json.JSONException import org.json.JSONObject @@ -17,29 +18,31 @@ class MultiplatformTestDataValidator(caseOrError: TestCaseOrError) { @Test fun `validate unsupported_platforms scheme`() { - val underTest = testCase.json.opt(UNSUPPORTED_PLATFORMS) ?: return + val underTest = testCase.json.opt(FIELD_UNSUPPORTED_PLATFORMS) ?: return val platformsDict = underTest as? JSONObject - ?: throw AssertionError("Expecting a dict at '$UNSUPPORTED_PLATFORMS' field!") + ?: throw AssertionError("Expecting a dict at '$FIELD_UNSUPPORTED_PLATFORMS' field!") platformsDict.keys().forEach { key -> - Assert.assertTrue("Expecting a dict with strings at '$UNSUPPORTED_PLATFORMS'!", + Assert.assertTrue("Expecting a dict with strings at '$FIELD_UNSUPPORTED_PLATFORMS'!", platformsDict.get(key) is String) } } companion object { - private const val UNSUPPORTED_PLATFORMS = "unsupported_platforms" - private const val CASES_FIELD = "cases" - private const val SIGNATURES_FIELD = "signatures" - private const val CASE_NAME_FIELD = "name" - private const val TEST_CASES_FILE_PATH = DIV2_JSON_PATH + private const val FIELD_UNSUPPORTED_PLATFORMS = "unsupported_platforms" + private const val FIELD_CASES = "cases" + private const val FIELD_SIGNATURES = "signatures" + private const val FIELD_CASE_NAME = "name" + private const val FIELD_ARGUMENTS = "arguments" + private const val FIELD_TYPE = "type" - private val TEST_CASES_ROOT = File(TEST_CASES_FILE_PATH) + private val TEST_CASES_ROOT = File(DIV2_JSON_PATH) @JvmStatic @Parameterized.Parameters(name = "{0}") fun cases(): List { val cases = mutableListOf() + cases.addAll(walkIn(File(EXPRESSION_API_PATH)).flatMap { f -> extractExpressionCases(f) }) cases.addAll(walkIn("expression_test_data").flatMap { f -> extractExpressionCases(f) }) cases.addAll(walkIn("interactive_snapshot_test_data").map { f -> toCommonUiTestCase(f) }) cases.addAll(walkIn("regression_test_data").map { f -> toCommonUiTestCase(f) }) @@ -48,9 +51,11 @@ class MultiplatformTestDataValidator(caseOrError: TestCaseOrError) { return cases } - private fun walkIn(dir: String) = File(TEST_CASES_FILE_PATH, dir) - .walkTopDown() - .filter { it.extension == "json" } + private fun walkIn(dir: String): Sequence = walkIn(File(DIV2_JSON_PATH, dir)) + + private fun walkIn(directory: File): Sequence = directory + .walkTopDown() + .filter { it.extension == "json" } private fun extractExpressionCases(f: File): List { fun JSONArray?.toListOfJSONObject(): List { @@ -70,18 +75,21 @@ class MultiplatformTestDataValidator(caseOrError: TestCaseOrError) { } catch (e: JSONException) { return listOf(TestCaseOrError.Error(f.toTestPath(), e)) } - val cases = root.optJSONArray(CASES_FIELD) + val cases = root.optJSONArray(FIELD_CASES) .toListOfJSONObject() .map { TestCaseOrError.TestCase( - path = f.toTestPath() + ":" + it.optString(CASE_NAME_FIELD), + path = f.toTestPath() + ":" + it.optString(FIELD_CASE_NAME), json = it) } - val signatures = root.optJSONArray(SIGNATURES_FIELD) + val signatures = root.optJSONArray(FIELD_SIGNATURES) .toListOfJSONObject() .map { + val args = it.optJSONArray(FIELD_ARGUMENTS) + .toListOfJSONObject() + .mapNotNull { arg -> arg.optString(FIELD_TYPE) } TestCaseOrError.TestCase( - path = f.toTestPath() + ":" + it.optString(CASE_NAME_FIELD), + path = "${f.toTestPath()}:${it.optString(FIELD_CASE_NAME)}(${args.joinToString()})", json = it) } results.addAll(cases) diff --git a/client/android/expression-test-common/src/main/java/com/yandex/div/test/expression/MultiplatformTestUtils.kt b/client/android/expression-test-common/src/main/java/com/yandex/div/test/expression/MultiplatformTestUtils.kt index e5137ad0b..55f12315e 100644 --- a/client/android/expression-test-common/src/main/java/com/yandex/div/test/expression/MultiplatformTestUtils.kt +++ b/client/android/expression-test-common/src/main/java/com/yandex/div/test/expression/MultiplatformTestUtils.kt @@ -11,12 +11,20 @@ private const val JSON_EXTENSION = "json" private const val DIV2_JSON_PATH = "../../../test_data/" object MultiplatformTestUtils { + fun walkJSONs( relativePath: String, parseAction: (file: File, json: String) -> Unit + ): List { + return walkJSONs(directory = File(DIV2_JSON_PATH, relativePath), parseAction) + } + + fun walkJSONs( + directory: File, + parseAction: (file: File, json: String) -> Unit ): List { val errors = mutableListOf() - getFiles(File(DIV2_JSON_PATH, relativePath)) + getFiles(directory) .forEach { file -> val json = try { file.readText(Charsets.UTF_8) diff --git a/client/ios/DivKit.xcodeproj/project.pbxproj b/client/ios/DivKit.xcodeproj/project.pbxproj index 4dd278ba4..30e0485f4 100644 --- a/client/ios/DivKit.xcodeproj/project.pbxproj +++ b/client/ios/DivKit.xcodeproj/project.pbxproj @@ -296,6 +296,7 @@ 9D09984F2CA30D010098098C /* AccessoryViewProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D09984E2CA30D010098098C /* AccessoryViewProvider.swift */; }; 9D5AE8362DFC680500D58B81 /* FilesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D5AE8352DFC680300D58B81 /* FilesProvider.swift */; }; 9D5BFB092CA1DA20005F8EB1 /* CustomFunctionTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D5BFB082CA1DA20005F8EB1 /* CustomFunctionTests.swift */; }; + 9D772A612EAA28DE0085DB27 /* expression-api in Resources */ = {isa = PBXBuildFile; fileRef = 9D772A602EAA28DE0085DB27 /* expression-api */; }; 9DD0C78A2D74ABB4009EA1AF /* SubmitActionHandlerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9DD0C7892D74AB7E009EA1AF /* SubmitActionHandlerTests.swift */; }; 9DEA2C752DDCC63400A074B5 /* RobotoFlex-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 9DEA2C742DDCC63400A074B5 /* RobotoFlex-Regular.ttf */; }; 9DEA2C772DDCC63D00A074B5 /* RobotoFlex-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 9DEA2C762DDCC63D00A074B5 /* RobotoFlex-Regular.ttf */; }; @@ -684,6 +685,7 @@ 9D09984E2CA30D010098098C /* AccessoryViewProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccessoryViewProvider.swift; sourceTree = ""; }; 9D5AE8352DFC680300D58B81 /* FilesProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FilesProvider.swift; sourceTree = ""; }; 9D5BFB082CA1DA20005F8EB1 /* CustomFunctionTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomFunctionTests.swift; sourceTree = ""; }; + 9D772A602EAA28DE0085DB27 /* expression-api */ = {isa = PBXFileReference; lastKnownFileType = folder; name = "expression-api"; path = "../../../expression-api"; sourceTree = ""; }; 9DD0C7892D74AB7E009EA1AF /* SubmitActionHandlerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SubmitActionHandlerTests.swift; sourceTree = ""; }; 9DEA2C742DDCC63400A074B5 /* RobotoFlex-Regular.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "RobotoFlex-Regular.ttf"; sourceTree = ""; }; 9DEA2C762DDCC63D00A074B5 /* RobotoFlex-Regular.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "RobotoFlex-Regular.ttf"; sourceTree = ""; }; @@ -1137,6 +1139,7 @@ isa = PBXGroup; children = ( 0C9BB87D2DF02E1D001C4E72 /* ResourcesPreloader */, + 9D772A602EAA28DE0085DB27 /* expression-api */, 9D0868BA2DD10F7E00C5B2CC /* integration_test_data */, 8C01499D287329D700BA5402 /* expression_test_data */, 8CE488632B76F64D00BDDAB9 /* parsing_test_data */, @@ -1854,6 +1857,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 9D772A612EAA28DE0085DB27 /* expression-api in Resources */, 9D0868BB2DD10F7E00C5B2CC /* integration_test_data in Resources */, 8C01499E287329D700BA5402 /* expression_test_data in Resources */, 8C23F3D329DDB2440069F3F7 /* template_test_data in Resources */, diff --git a/client/ios/DivKitTests/Expressions/FunctionSignaturesTests.swift b/client/ios/DivKitTests/Expressions/FunctionSignaturesTests.swift index 44e70e8fb..1eea555ae 100644 --- a/client/ios/DivKitTests/Expressions/FunctionSignaturesTests.swift +++ b/client/ios/DivKitTests/Expressions/FunctionSignaturesTests.swift @@ -10,7 +10,7 @@ final class FunctionSignaturesTests: XCTestCase { private func makeTestCases() -> [(String, SignatureTestCase)] { Bundle(for: DivKitTests.self) - .urls(forResourcesWithExtension: "json", subdirectory: "expression_test_data")! + .urls(forResourcesWithExtension: "json", subdirectory: "expression-api")! .flatMap { url in let fileName = url.lastPathComponent let testCases = try! JSONDecoder() @@ -49,10 +49,10 @@ private struct TestCases: Decodable { private struct SignatureTestCase: Decodable { private enum CodingKeys: String, CodingKey { - case functionName = "function_name" + case functionName = "name" case isMethod = "is_method" case arguments - case resultType = "result_type" + case resultType = "return_type" case platforms } @@ -115,7 +115,7 @@ extension ArgumentSignature: Swift.Decodable { private enum CodingKeys: String, CodingKey { case type - case vararg + case vararg = "is_vararg" } } diff --git a/client/web/divkit/tests/expressions/signatures.test.ts b/client/web/divkit/tests/expressions/signatures.test.ts index 0edb9fabe..990d2fdc9 100644 --- a/client/web/divkit/tests/expressions/signatures.test.ts +++ b/client/web/divkit/tests/expressions/signatures.test.ts @@ -10,7 +10,7 @@ import { register } from '../../src/expressions/funcs'; const path = require('path'); const fs = require('fs'); -const dir = path.resolve(__filename, '../../../../../../test_data/expression_test_data'); +const dir = path.resolve(__filename, '../../../../../../expression-api'); const tests = fs.readdirSync(dir); @@ -20,7 +20,7 @@ function runCase(item: any) { const expectedArgs: any[] = item.arguments || []; let func: Func | null = null; - const list = (item.is_method ? methods : funcs).get(item.function_name); + const list = (item.is_method ? methods : funcs).get(item.name); if (list) { for (let i = 0; i < list.length; ++i) { const candidate = list[i]; @@ -32,7 +32,7 @@ function runCase(item: any) { const candidateType = typeof candidateArg === 'object' ? candidateArg.type : candidateArg; const candidateVararg = typeof candidateArg === 'object' ? Boolean(candidateArg.isVararg) : false; - return candidateType === expectedArg.type && candidateVararg === Boolean(expectedArg.vararg); + return candidateType === expectedArg.type && candidateVararg === Boolean(expectedArg.is_vararg); })) { func = candidate; break; @@ -53,9 +53,9 @@ describe('signatures', () => { describe(name, () => { for (const item of contents.signatures) { if (item.platforms.includes('web')) { - test(item.name || (`${item.function_name}(${(item.arguments || []).map((it: { + test(`${item.name}(${(item.arguments || []).map((it: { type: string; - }) => it.type).join(', ')})`), () => { + }) => it.type).join(', ')})`, () => { runCase(item); }); } else { diff --git a/expression-api/function_signatures_array.json b/expression-api/function_signatures_array.json new file mode 100644 index 000000000..ec7cc2849 --- /dev/null +++ b/expression-api/function_signatures_array.json @@ -0,0 +1,986 @@ +{ + "$schema": "schema/signatures.json", + "signatures": [ + { + "name": "getArrayString", + "description": { + "$ref": "translations.json#/getarraystring_array_integer" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getarraystring_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getarraystring_array_integer_arg1" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getArrayNumber", + "description": { + "$ref": "translations.json#/getarraynumber_array_integer" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getarraynumber_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getarraynumber_array_integer_arg1" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getArrayInteger", + "description": { + "$ref": "translations.json#/getarrayinteger_array_integer" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getarrayinteger_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getarrayinteger_array_integer_arg1" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getArrayBoolean", + "description": { + "$ref": "translations.json#/getarrayboolean_array_integer" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getarrayboolean_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getarrayboolean_array_integer_arg1" + } + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getArrayColor", + "description": { + "$ref": "translations.json#/getarraycolor_array_integer" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getarraycolor_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getarraycolor_array_integer_arg1" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getArrayOptString", + "description": { + "$ref": "translations.json#/getarrayoptstring_array_integer_string" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getarrayoptstring_array_integer_string_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getarrayoptstring_array_integer_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getarrayoptstring_array_integer_string_arg2" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getArrayOptNumber", + "description": { + "$ref": "translations.json#/getarrayoptnumber_array_integer_number" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getarrayoptnumber_array_integer_number_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getarrayoptnumber_array_integer_number_arg1" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/getarrayoptnumber_array_integer_number_arg2" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getArrayOptInteger", + "description": { + "$ref": "translations.json#/getarrayoptinteger_array_integer_integer" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getarrayoptinteger_array_integer_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getarrayoptinteger_array_integer_integer_arg1" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getarrayoptinteger_array_integer_integer_arg2" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getArrayOptBoolean", + "description": { + "$ref": "translations.json#/getarrayoptboolean_array_integer_boolean" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getarrayoptboolean_array_integer_boolean_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getarrayoptboolean_array_integer_boolean_arg1" + } + }, + { + "type": "boolean", + "description": { + "$ref": "translations.json#/getarrayoptboolean_array_integer_boolean_arg2" + } + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getArrayOptColor", + "description": { + "$ref": "translations.json#/getarrayoptcolor_array_integer_color" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getarrayoptcolor_array_integer_color_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getarrayoptcolor_array_integer_color_arg1" + } + }, + { + "type": "color", + "description": { + "$ref": "translations.json#/getarrayoptcolor_array_integer_color_arg2" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getArrayOptColor", + "description": { + "$ref": "translations.json#/getarrayoptcolor_array_integer_string" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getarrayoptcolor_array_integer_string_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getarrayoptcolor_array_integer_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getarrayoptcolor_array_integer_string_arg2" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getArrayUrl", + "description": { + "$ref": "translations.json#/getarrayurl_array_integer" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getarrayurl_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getarrayurl_array_integer_arg1" + } + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getArrayOptUrl", + "description": { + "$ref": "translations.json#/getarrayopturl_array_integer_url" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getarrayopturl_array_integer_url_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getarrayopturl_array_integer_url_arg1" + } + }, + { + "type": "url", + "description": { + "$ref": "translations.json#/getarrayopturl_array_integer_url_arg2" + } + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getArrayOptUrl", + "description": { + "$ref": "translations.json#/getarrayopturl_array_integer_string" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getarrayopturl_array_integer_string_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getarrayopturl_array_integer_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getarrayopturl_array_integer_string_arg2" + } + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getStringFromArray", + "description": { + "$ref": "translations.json#/getstringfromarray_array_integer" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getstringfromarray_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getstringfromarray_array_integer_arg1" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getNumberFromArray", + "description": { + "$ref": "translations.json#/getnumberfromarray_array_integer" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getnumberfromarray_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getnumberfromarray_array_integer_arg1" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getIntegerFromArray", + "description": { + "$ref": "translations.json#/getintegerfromarray_array_integer" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getintegerfromarray_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getintegerfromarray_array_integer_arg1" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getBooleanFromArray", + "description": { + "$ref": "translations.json#/getbooleanfromarray_array_integer" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getbooleanfromarray_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getbooleanfromarray_array_integer_arg1" + } + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getColorFromArray", + "description": { + "$ref": "translations.json#/getcolorfromarray_array_integer" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getcolorfromarray_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getcolorfromarray_array_integer_arg1" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptStringFromArray", + "description": { + "$ref": "translations.json#/getoptstringfromarray_array_integer_string" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getoptstringfromarray_array_integer_string_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getoptstringfromarray_array_integer_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getoptstringfromarray_array_integer_string_arg2" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptNumberFromArray", + "description": { + "$ref": "translations.json#/getoptnumberfromarray_array_integer_number" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getoptnumberfromarray_array_integer_number_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getoptnumberfromarray_array_integer_number_arg1" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/getoptnumberfromarray_array_integer_number_arg2" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptIntegerFromArray", + "description": { + "$ref": "translations.json#/getoptintegerfromarray_array_integer_integer" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getoptintegerfromarray_array_integer_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getoptintegerfromarray_array_integer_integer_arg1" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getoptintegerfromarray_array_integer_integer_arg2" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptBooleanFromArray", + "description": { + "$ref": "translations.json#/getoptbooleanfromarray_array_integer_boolean" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getoptbooleanfromarray_array_integer_boolean_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getoptbooleanfromarray_array_integer_boolean_arg1" + } + }, + { + "type": "boolean", + "description": { + "$ref": "translations.json#/getoptbooleanfromarray_array_integer_boolean_arg2" + } + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptColorFromArray", + "description": { + "$ref": "translations.json#/getoptcolorfromarray_array_integer_color" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getoptcolorfromarray_array_integer_color_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getoptcolorfromarray_array_integer_color_arg1" + } + }, + { + "type": "color", + "description": { + "$ref": "translations.json#/getoptcolorfromarray_array_integer_color_arg2" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptColorFromArray", + "description": { + "$ref": "translations.json#/getoptcolorfromarray_array_integer_string" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getoptcolorfromarray_array_integer_string_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getoptcolorfromarray_array_integer_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getoptcolorfromarray_array_integer_string_arg2" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getUrlFromArray", + "description": { + "$ref": "translations.json#/geturlfromarray_array_integer" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/geturlfromarray_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/geturlfromarray_array_integer_arg1" + } + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptUrlFromArray", + "description": { + "$ref": "translations.json#/getopturlfromarray_array_integer_url" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getopturlfromarray_array_integer_url_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getopturlfromarray_array_integer_url_arg1" + } + }, + { + "type": "url", + "description": { + "$ref": "translations.json#/getopturlfromarray_array_integer_url_arg2" + } + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptUrlFromArray", + "description": { + "$ref": "translations.json#/getopturlfromarray_array_integer_string" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getopturlfromarray_array_integer_string_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getopturlfromarray_array_integer_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getopturlfromarray_array_integer_string_arg2" + } + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getArrayFromArray", + "description": { + "$ref": "translations.json#/getarrayfromarray_array_integer" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getarrayfromarray_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getarrayfromarray_array_integer_arg1" + } + } + ], + "return_type": "array", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptArrayFromArray", + "description": { + "$ref": "translations.json#/getoptarrayfromarray_array_integer" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getoptarrayfromarray_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getoptarrayfromarray_array_integer_arg1" + } + } + ], + "return_type": "array", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDictFromArray", + "description": { + "$ref": "translations.json#/getdictfromarray_array_integer" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getdictfromarray_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getdictfromarray_array_integer_arg1" + } + } + ], + "return_type": "dict", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptDictFromArray", + "description": { + "$ref": "translations.json#/getoptdictfromarray_array_integer" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getoptdictfromarray_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getoptdictfromarray_array_integer_arg1" + } + } + ], + "return_type": "dict", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "len", + "description": { + "$ref": "translations.json#/len_array" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/len_array_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + } + ] +} diff --git a/expression-api/function_signatures_color.json b/expression-api/function_signatures_color.json new file mode 100644 index 000000000..68379ae77 --- /dev/null +++ b/expression-api/function_signatures_color.json @@ -0,0 +1,455 @@ +{ + "$schema": "schema/signatures.json", + "signatures": [ + { + "name": "getColorAlpha", + "description": { + "$ref": "translations.json#/getcoloralpha_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getcoloralpha_string_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getColorAlpha", + "description": { + "$ref": "translations.json#/getcoloralpha_color" + }, + "arguments": [ + { + "type": "color", + "description": { + "$ref": "translations.json#/getcoloralpha_color_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getColorRed", + "description": { + "$ref": "translations.json#/getcolorred_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getcolorred_string_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getColorRed", + "description": { + "$ref": "translations.json#/getcolorred_color" + }, + "arguments": [ + { + "type": "color", + "description": { + "$ref": "translations.json#/getcolorred_color_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getColorGreen", + "description": { + "$ref": "translations.json#/getcolorgreen_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getcolorgreen_string_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getColorGreen", + "description": { + "$ref": "translations.json#/getcolorgreen_color" + }, + "arguments": [ + { + "type": "color", + "description": { + "$ref": "translations.json#/getcolorgreen_color_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getColorBlue", + "description": { + "$ref": "translations.json#/getcolorblue_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getcolorblue_string_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getColorBlue", + "description": { + "$ref": "translations.json#/getcolorblue_color" + }, + "arguments": [ + { + "type": "color", + "description": { + "$ref": "translations.json#/getcolorblue_color_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "setColorAlpha", + "description": { + "$ref": "translations.json#/setcoloralpha_string_number" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/setcoloralpha_string_number_arg0" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/setcoloralpha_string_number_arg1" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web" + ] + }, + { + "name": "setColorAlpha", + "description": { + "$ref": "translations.json#/setcoloralpha_color_number" + }, + "arguments": [ + { + "type": "color", + "description": { + "$ref": "translations.json#/setcoloralpha_color_number_arg0" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/setcoloralpha_color_number_arg1" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "setColorRed", + "description": { + "$ref": "translations.json#/setcolorred_string_number" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/setcolorred_string_number_arg0" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/setcolorred_string_number_arg1" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web" + ] + }, + { + "name": "setColorRed", + "description": { + "$ref": "translations.json#/setcolorred_color_number" + }, + "arguments": [ + { + "type": "color", + "description": { + "$ref": "translations.json#/setcolorred_color_number_arg0" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/setcolorred_color_number_arg1" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "setColorGreen", + "description": { + "$ref": "translations.json#/setcolorgreen_string_number" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/setcolorgreen_string_number_arg0" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/setcolorgreen_string_number_arg1" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web" + ] + }, + { + "name": "setColorGreen", + "description": { + "$ref": "translations.json#/setcolorgreen_color_number" + }, + "arguments": [ + { + "type": "color", + "description": { + "$ref": "translations.json#/setcolorgreen_color_number_arg0" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/setcolorgreen_color_number_arg1" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "setColorBlue", + "description": { + "$ref": "translations.json#/setcolorblue_string_number" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/setcolorblue_string_number_arg0" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/setcolorblue_string_number_arg1" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web" + ] + }, + { + "name": "setColorBlue", + "description": { + "$ref": "translations.json#/setcolorblue_color_number" + }, + "arguments": [ + { + "type": "color", + "description": { + "$ref": "translations.json#/setcolorblue_color_number_arg0" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/setcolorblue_color_number_arg1" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "argb", + "description": { + "$ref": "translations.json#/argb_number_number_number_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/argb_number_number_number_number_arg0" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/argb_number_number_number_number_arg1" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/argb_number_number_number_number_arg2" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/argb_number_number_number_number_arg3" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web" + ] + }, + { + "name": "rgb", + "description": { + "$ref": "translations.json#/rgb_number_number_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/rgb_number_number_number_arg0" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/rgb_number_number_number_arg1" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/rgb_number_number_number_arg2" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web" + ] + } + ] +} diff --git a/expression-api/function_signatures_datetime.json b/expression-api/function_signatures_datetime.json new file mode 100644 index 000000000..c316e20e1 --- /dev/null +++ b/expression-api/function_signatures_datetime.json @@ -0,0 +1,565 @@ +{ + "$schema": "schema/signatures.json", + "signatures": [ + { + "name": "parseUnixTime", + "description": { + "$ref": "translations.json#/parseunixtime_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/parseunixtime_integer_arg0" + } + } + ], + "return_type": "datetime", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "parseUnixTimeAsLocal", + "description": { + "$ref": "translations.json#/parseunixtimeaslocal_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/parseunixtimeaslocal_integer_arg0" + } + } + ], + "return_type": "datetime", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "nowLocal", + "description": { + "$ref": "translations.json#/nowlocal" + }, + "arguments": [], + "return_type": "datetime", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "addMillis", + "description": { + "$ref": "translations.json#/addmillis_datetime_integer" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/addmillis_datetime_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/addmillis_datetime_integer_arg1" + } + } + ], + "return_type": "datetime", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "setYear", + "description": { + "$ref": "translations.json#/setyear_datetime_integer" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/setyear_datetime_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/setyear_datetime_integer_arg1" + } + } + ], + "return_type": "datetime", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "setMonth", + "description": { + "$ref": "translations.json#/setmonth_datetime_integer" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/setmonth_datetime_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/setmonth_datetime_integer_arg1" + } + } + ], + "return_type": "datetime", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "setDay", + "description": { + "$ref": "translations.json#/setday_datetime_integer" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/setday_datetime_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/setday_datetime_integer_arg1" + } + } + ], + "return_type": "datetime", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "setHours", + "description": { + "$ref": "translations.json#/sethours_datetime_integer" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/sethours_datetime_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/sethours_datetime_integer_arg1" + } + } + ], + "return_type": "datetime", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "setMinutes", + "description": { + "$ref": "translations.json#/setminutes_datetime_integer" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/setminutes_datetime_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/setminutes_datetime_integer_arg1" + } + } + ], + "return_type": "datetime", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "setSeconds", + "description": { + "$ref": "translations.json#/setseconds_datetime_integer" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/setseconds_datetime_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/setseconds_datetime_integer_arg1" + } + } + ], + "return_type": "datetime", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "setMillis", + "description": { + "$ref": "translations.json#/setmillis_datetime_integer" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/setmillis_datetime_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/setmillis_datetime_integer_arg1" + } + } + ], + "return_type": "datetime", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getYear", + "description": { + "$ref": "translations.json#/getyear_datetime" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/getyear_datetime_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getMonth", + "description": { + "$ref": "translations.json#/getmonth_datetime" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/getmonth_datetime_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDay", + "description": { + "$ref": "translations.json#/getday_datetime" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/getday_datetime_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDayOfWeek", + "description": { + "$ref": "translations.json#/getdayofweek_datetime" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/getdayofweek_datetime_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getHours", + "description": { + "$ref": "translations.json#/gethours_datetime" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/gethours_datetime_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getMinutes", + "description": { + "$ref": "translations.json#/getminutes_datetime" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/getminutes_datetime_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getSeconds", + "description": { + "$ref": "translations.json#/getseconds_datetime" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/getseconds_datetime_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getMillis", + "description": { + "$ref": "translations.json#/getmillis_datetime" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/getmillis_datetime_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "formatDateAsLocal", + "description": { + "$ref": "translations.json#/formatdateaslocal_datetime_string" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/formatdateaslocal_datetime_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/formatdateaslocal_datetime_string_arg1" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "formatDateAsUTC", + "description": { + "$ref": "translations.json#/formatdateasutc_datetime_string" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/formatdateasutc_datetime_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/formatdateasutc_datetime_string_arg1" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "formatDateAsLocalWithLocale", + "description": { + "$ref": "translations.json#/formatdateaslocalwithlocale_datetime_string_string" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/formatdateaslocalwithlocale_datetime_string_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/formatdateaslocalwithlocale_datetime_string_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/formatdateaslocalwithlocale_datetime_string_string_arg2" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "formatDateAsUTCWithLocale", + "description": { + "$ref": "translations.json#/formatdateasutcwithlocale_datetime_string_string" + }, + "arguments": [ + { + "type": "datetime", + "description": { + "$ref": "translations.json#/formatdateasutcwithlocale_datetime_string_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/formatdateasutcwithlocale_datetime_string_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/formatdateasutcwithlocale_datetime_string_string_arg2" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + } + ] +} diff --git a/expression-api/function_signatures_dict.json b/expression-api/function_signatures_dict.json new file mode 100644 index 000000000..71fe53b0e --- /dev/null +++ b/expression-api/function_signatures_dict.json @@ -0,0 +1,1057 @@ +{ + "$schema": "schema/signatures.json", + "signatures": [ + { + "name": "getDictString", + "description": { + "$ref": "translations.json#/getdictstring_dict_string" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getdictstring_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getdictstring_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDictNumber", + "description": { + "$ref": "translations.json#/getdictnumber_dict_string" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getdictnumber_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getdictnumber_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDictInteger", + "description": { + "$ref": "translations.json#/getdictinteger_dict_string" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getdictinteger_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getdictinteger_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDictBoolean", + "description": { + "$ref": "translations.json#/getdictboolean_dict_string" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getdictboolean_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getdictboolean_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDictColor", + "description": { + "$ref": "translations.json#/getdictcolor_dict_string" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getdictcolor_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getdictcolor_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDictUrl", + "description": { + "$ref": "translations.json#/getdicturl_dict_string" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getdicturl_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getdicturl_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDictOptString", + "description": { + "$ref": "translations.json#/getdictoptstring_string_dict_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getdictoptstring_string_dict_string_arg0" + } + }, + { + "type": "dict", + "description": { + "$ref": "translations.json#/getdictoptstring_string_dict_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getdictoptstring_string_dict_string_arg2" + }, + "is_vararg": true + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDictOptNumber", + "description": { + "$ref": "translations.json#/getdictoptnumber_number_dict_string" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/getdictoptnumber_number_dict_string_arg0" + } + }, + { + "type": "dict", + "description": { + "$ref": "translations.json#/getdictoptnumber_number_dict_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getdictoptnumber_number_dict_string_arg2" + }, + "is_vararg": true + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDictOptInteger", + "description": { + "$ref": "translations.json#/getdictoptinteger_integer_dict_string" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/getdictoptinteger_integer_dict_string_arg0" + } + }, + { + "type": "dict", + "description": { + "$ref": "translations.json#/getdictoptinteger_integer_dict_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getdictoptinteger_integer_dict_string_arg2" + }, + "is_vararg": true + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDictOptBoolean", + "description": { + "$ref": "translations.json#/getdictoptboolean_boolean_dict_string" + }, + "arguments": [ + { + "type": "boolean", + "description": { + "$ref": "translations.json#/getdictoptboolean_boolean_dict_string_arg0" + } + }, + { + "type": "dict", + "description": { + "$ref": "translations.json#/getdictoptboolean_boolean_dict_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getdictoptboolean_boolean_dict_string_arg2" + }, + "is_vararg": true + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDictOptColor", + "description": { + "$ref": "translations.json#/getdictoptcolor_color_dict_string" + }, + "arguments": [ + { + "type": "color", + "description": { + "$ref": "translations.json#/getdictoptcolor_color_dict_string_arg0" + } + }, + { + "type": "dict", + "description": { + "$ref": "translations.json#/getdictoptcolor_color_dict_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getdictoptcolor_color_dict_string_arg2" + }, + "is_vararg": true + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDictOptColor", + "description": { + "$ref": "translations.json#/getdictoptcolor_string_dict_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getdictoptcolor_string_dict_string_arg0" + } + }, + { + "type": "dict", + "description": { + "$ref": "translations.json#/getdictoptcolor_string_dict_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getdictoptcolor_string_dict_string_arg2" + }, + "is_vararg": true + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDictOptUrl", + "description": { + "$ref": "translations.json#/getdictopturl_url_dict_string" + }, + "arguments": [ + { + "type": "url", + "description": { + "$ref": "translations.json#/getdictopturl_url_dict_string_arg0" + } + }, + { + "type": "dict", + "description": { + "$ref": "translations.json#/getdictopturl_url_dict_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getdictopturl_url_dict_string_arg2" + }, + "is_vararg": true + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDictOptUrl", + "description": { + "$ref": "translations.json#/getdictopturl_string_dict_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getdictopturl_string_dict_string_arg0" + } + }, + { + "type": "dict", + "description": { + "$ref": "translations.json#/getdictopturl_string_dict_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getdictopturl_string_dict_string_arg2" + }, + "is_vararg": true + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getStringFromDict", + "description": { + "$ref": "translations.json#/getstringfromdict_dict_string" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getstringfromdict_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getstringfromdict_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getNumberFromDict", + "description": { + "$ref": "translations.json#/getnumberfromdict_dict_string" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getnumberfromdict_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getnumberfromdict_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getIntegerFromDict", + "description": { + "$ref": "translations.json#/getintegerfromdict_dict_string" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getintegerfromdict_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getintegerfromdict_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getBooleanFromDict", + "description": { + "$ref": "translations.json#/getbooleanfromdict_dict_string" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getbooleanfromdict_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getbooleanfromdict_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getColorFromDict", + "description": { + "$ref": "translations.json#/getcolorfromdict_dict_string" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getcolorfromdict_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getcolorfromdict_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getUrlFromDict", + "description": { + "$ref": "translations.json#/geturlfromdict_dict_string" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/geturlfromdict_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/geturlfromdict_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDictFromDict", + "description": { + "$ref": "translations.json#/getdictfromdict_dict_string" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getdictfromdict_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getdictfromdict_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "dict", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getArrayFromDict", + "description": { + "$ref": "translations.json#/getarrayfromdict_dict_string" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getarrayfromdict_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getarrayfromdict_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "array", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptStringFromDict", + "description": { + "$ref": "translations.json#/getoptstringfromdict_string_dict_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getoptstringfromdict_string_dict_string_arg0" + } + }, + { + "type": "dict", + "description": { + "$ref": "translations.json#/getoptstringfromdict_string_dict_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getoptstringfromdict_string_dict_string_arg2" + }, + "is_vararg": true + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptNumberFromDict", + "description": { + "$ref": "translations.json#/getoptnumberfromdict_number_dict_string" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/getoptnumberfromdict_number_dict_string_arg0" + } + }, + { + "type": "dict", + "description": { + "$ref": "translations.json#/getoptnumberfromdict_number_dict_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getoptnumberfromdict_number_dict_string_arg2" + }, + "is_vararg": true + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptIntegerFromDict", + "description": { + "$ref": "translations.json#/getoptintegerfromdict_integer_dict_string" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/getoptintegerfromdict_integer_dict_string_arg0" + } + }, + { + "type": "dict", + "description": { + "$ref": "translations.json#/getoptintegerfromdict_integer_dict_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getoptintegerfromdict_integer_dict_string_arg2" + }, + "is_vararg": true + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptBooleanFromDict", + "description": { + "$ref": "translations.json#/getoptbooleanfromdict_boolean_dict_string" + }, + "arguments": [ + { + "type": "boolean", + "description": { + "$ref": "translations.json#/getoptbooleanfromdict_boolean_dict_string_arg0" + } + }, + { + "type": "dict", + "description": { + "$ref": "translations.json#/getoptbooleanfromdict_boolean_dict_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getoptbooleanfromdict_boolean_dict_string_arg2" + }, + "is_vararg": true + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptColorFromDict", + "description": { + "$ref": "translations.json#/getoptcolorfromdict_color_dict_string" + }, + "arguments": [ + { + "type": "color", + "description": { + "$ref": "translations.json#/getoptcolorfromdict_color_dict_string_arg0" + } + }, + { + "type": "dict", + "description": { + "$ref": "translations.json#/getoptcolorfromdict_color_dict_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getoptcolorfromdict_color_dict_string_arg2" + }, + "is_vararg": true + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptColorFromDict", + "description": { + "$ref": "translations.json#/getoptcolorfromdict_string_dict_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getoptcolorfromdict_string_dict_string_arg0" + } + }, + { + "type": "dict", + "description": { + "$ref": "translations.json#/getoptcolorfromdict_string_dict_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getoptcolorfromdict_string_dict_string_arg2" + }, + "is_vararg": true + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptUrlFromDict", + "description": { + "$ref": "translations.json#/getopturlfromdict_url_dict_string" + }, + "arguments": [ + { + "type": "url", + "description": { + "$ref": "translations.json#/getopturlfromdict_url_dict_string_arg0" + } + }, + { + "type": "dict", + "description": { + "$ref": "translations.json#/getopturlfromdict_url_dict_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getopturlfromdict_url_dict_string_arg2" + }, + "is_vararg": true + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptUrlFromDict", + "description": { + "$ref": "translations.json#/getopturlfromdict_string_dict_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getopturlfromdict_string_dict_string_arg0" + } + }, + { + "type": "dict", + "description": { + "$ref": "translations.json#/getopturlfromdict_string_dict_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getopturlfromdict_string_dict_string_arg2" + }, + "is_vararg": true + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptArrayFromDict", + "description": { + "$ref": "translations.json#/getoptarrayfromdict_dict_string" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getoptarrayfromdict_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getoptarrayfromdict_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "array", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getOptDictFromDict", + "description": { + "$ref": "translations.json#/getoptdictfromdict_dict_string" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getoptdictfromdict_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getoptdictfromdict_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "dict", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "len", + "description": { + "$ref": "translations.json#/len_dict" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/len_dict_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web" + ] + }, + { + "name": "getDictKeys", + "description": { + "$ref": "translations.json#/getdictkeys_dict" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getdictkeys_dict_arg0" + } + } + ], + "return_type": "array", + "platforms": [ + "android", + "ios", + "web" + ] + }, + { + "name": "getDictValues", + "description": { + "$ref": "translations.json#/getdictvalues_dict" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getdictvalues_dict_arg0" + } + } + ], + "return_type": "array", + "platforms": [ + "android", + "ios", + "web" + ] + } + ] +} diff --git a/expression-api/function_signatures_format.json b/expression-api/function_signatures_format.json new file mode 100644 index 000000000..8b958965c --- /dev/null +++ b/expression-api/function_signatures_format.json @@ -0,0 +1,121 @@ +{ + "$schema": "schema/signatures.json", + "signatures": [ + { + "name": "decimalFormat", + "description": { + "$ref": "translations.json#/decimalformat_integer_string" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/decimalformat_integer_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/decimalformat_integer_string_arg1" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "web", + "ios" + ] + }, + { + "name": "decimalFormat", + "description": { + "$ref": "translations.json#/decimalformat_number_string" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/decimalformat_number_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/decimalformat_number_string_arg1" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "web", + "ios" + ] + }, + { + "name": "decimalFormat", + "description": { + "$ref": "translations.json#/decimalformat_integer_string_string" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/decimalformat_integer_string_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/decimalformat_integer_string_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/decimalformat_integer_string_string_arg2" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "web", + "ios" + ] + }, + { + "name": "decimalFormat", + "description": { + "$ref": "translations.json#/decimalformat_number_string_string" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/decimalformat_number_string_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/decimalformat_number_string_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/decimalformat_number_string_string_arg2" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "web", + "ios" + ] + } + ] +} diff --git a/expression-api/function_signatures_interval.json b/expression-api/function_signatures_interval.json new file mode 100644 index 000000000..74305fc46 --- /dev/null +++ b/expression-api/function_signatures_interval.json @@ -0,0 +1,173 @@ +{ + "$schema": "schema/signatures.json", + "signatures": [ + { + "name": "getIntervalSeconds", + "description": { + "$ref": "translations.json#/getintervalseconds_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/getintervalseconds_integer_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getIntervalTotalSeconds", + "description": { + "$ref": "translations.json#/getintervaltotalseconds_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/getintervaltotalseconds_integer_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getIntervalMinutes", + "description": { + "$ref": "translations.json#/getintervalminutes_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/getintervalminutes_integer_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getIntervalTotalMinutes", + "description": { + "$ref": "translations.json#/getintervaltotalminutes_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/getintervaltotalminutes_integer_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getIntervalHours", + "description": { + "$ref": "translations.json#/getintervalhours_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/getintervalhours_integer_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getIntervalTotalHours", + "description": { + "$ref": "translations.json#/getintervaltotalhours_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/getintervaltotalhours_integer_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getIntervalTotalDays", + "description": { + "$ref": "translations.json#/getintervaltotaldays_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/getintervaltotaldays_integer_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getIntervalTotalWeeks", + "description": { + "$ref": "translations.json#/getintervaltotalweeks_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/getintervaltotalweeks_integer_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + } + ] +} diff --git a/expression-api/function_signatures_math.json b/expression-api/function_signatures_math.json new file mode 100644 index 000000000..cd7c40500 --- /dev/null +++ b/expression-api/function_signatures_math.json @@ -0,0 +1,590 @@ +{ + "$schema": "schema/signatures.json", + "signatures": [ + { + "name": "div", + "description": { + "$ref": "translations.json#/div_integer_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/div_integer_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/div_integer_integer_arg1" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "div", + "description": { + "$ref": "translations.json#/div_number_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/div_number_number_arg0" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/div_number_number_arg1" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "mod", + "description": { + "$ref": "translations.json#/mod_integer_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/mod_integer_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/mod_integer_integer_arg1" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "mod", + "description": { + "$ref": "translations.json#/mod_number_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/mod_number_number_arg0" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/mod_number_number_arg1" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "mul", + "description": { + "$ref": "translations.json#/mul_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/mul_integer_arg0" + }, + "is_vararg": true + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "mul", + "description": { + "$ref": "translations.json#/mul_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/mul_number_arg0" + }, + "is_vararg": true + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "sub", + "description": { + "$ref": "translations.json#/sub_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/sub_integer_arg0" + }, + "is_vararg": true + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "sub", + "description": { + "$ref": "translations.json#/sub_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/sub_number_arg0" + }, + "is_vararg": true + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "sum", + "description": { + "$ref": "translations.json#/sum_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/sum_integer_arg0" + }, + "is_vararg": true + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "sum", + "description": { + "$ref": "translations.json#/sum_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/sum_number_arg0" + }, + "is_vararg": true + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "maxInteger", + "description": { + "$ref": "translations.json#/maxinteger" + }, + "arguments": [], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "maxNumber", + "description": { + "$ref": "translations.json#/maxnumber" + }, + "arguments": [], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "minInteger", + "description": { + "$ref": "translations.json#/mininteger" + }, + "arguments": [], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "minNumber", + "description": { + "$ref": "translations.json#/minnumber" + }, + "arguments": [], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "max", + "description": { + "$ref": "translations.json#/max_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/max_integer_arg0" + }, + "is_vararg": true + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "max", + "description": { + "$ref": "translations.json#/max_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/max_number_arg0" + }, + "is_vararg": true + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "min", + "description": { + "$ref": "translations.json#/min_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/min_integer_arg0" + }, + "is_vararg": true + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "min", + "description": { + "$ref": "translations.json#/min_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/min_number_arg0" + }, + "is_vararg": true + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "abs", + "description": { + "$ref": "translations.json#/abs_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/abs_integer_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "abs", + "description": { + "$ref": "translations.json#/abs_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/abs_number_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "signum", + "description": { + "$ref": "translations.json#/signum_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/signum_integer_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "signum", + "description": { + "$ref": "translations.json#/signum_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/signum_number_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "round", + "description": { + "$ref": "translations.json#/round_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/round_number_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "floor", + "description": { + "$ref": "translations.json#/floor_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/floor_number_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "ceil", + "description": { + "$ref": "translations.json#/ceil_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/ceil_number_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "copySign", + "description": { + "$ref": "translations.json#/copysign_integer_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/copysign_integer_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/copysign_integer_integer_arg1" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "copySign", + "description": { + "$ref": "translations.json#/copysign_number_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/copysign_number_number_arg0" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/copysign_number_number_arg1" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + } + ] +} diff --git a/expression-api/function_signatures_std.json b/expression-api/function_signatures_std.json new file mode 100644 index 000000000..8d4a7f5a2 --- /dev/null +++ b/expression-api/function_signatures_std.json @@ -0,0 +1,666 @@ +{ + "$schema": "schema/signatures.json", + "signatures": [ + { + "name": "toBoolean", + "description": { + "$ref": "translations.json#/toboolean_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/toboolean_integer_arg0" + } + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toBoolean", + "description": { + "$ref": "translations.json#/toboolean_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/toboolean_string_arg0" + } + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toInteger", + "description": { + "$ref": "translations.json#/tointeger_boolean" + }, + "arguments": [ + { + "type": "boolean", + "description": { + "$ref": "translations.json#/tointeger_boolean_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toInteger", + "description": { + "$ref": "translations.json#/tointeger_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/tointeger_number_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toInteger", + "description": { + "$ref": "translations.json#/tointeger_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/tointeger_string_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toNumber", + "description": { + "$ref": "translations.json#/tonumber_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/tonumber_integer_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toNumber", + "description": { + "$ref": "translations.json#/tonumber_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/tonumber_string_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toColor", + "description": { + "$ref": "translations.json#/tocolor_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/tocolor_string_arg0" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toUrl", + "description": { + "$ref": "translations.json#/tourl_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/tourl_string_arg0" + } + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getIntegerValue", + "description": { + "$ref": "translations.json#/getintegervalue_string_integer" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getintegervalue_string_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getintegervalue_string_integer_arg1" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getNumberValue", + "description": { + "$ref": "translations.json#/getnumbervalue_string_number" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getnumbervalue_string_number_arg0" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/getnumbervalue_string_number_arg1" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getStringValue", + "description": { + "$ref": "translations.json#/getstringvalue_string_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getstringvalue_string_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getstringvalue_string_string_arg1" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getUrlValue", + "description": { + "$ref": "translations.json#/geturlvalue_string_url" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/geturlvalue_string_url_arg0" + } + }, + { + "type": "url", + "description": { + "$ref": "translations.json#/geturlvalue_string_url_arg1" + } + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getUrlValue", + "description": { + "$ref": "translations.json#/geturlvalue_string_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/geturlvalue_string_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/geturlvalue_string_string_arg1" + } + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getColorValue", + "description": { + "$ref": "translations.json#/getcolorvalue_string_color" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getcolorvalue_string_color_arg0" + } + }, + { + "type": "color", + "description": { + "$ref": "translations.json#/getcolorvalue_string_color_arg1" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getColorValue", + "description": { + "$ref": "translations.json#/getcolorvalue_string_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getcolorvalue_string_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getcolorvalue_string_string_arg1" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getBooleanValue", + "description": { + "$ref": "translations.json#/getbooleanvalue_string_boolean" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getbooleanvalue_string_boolean_arg0" + } + }, + { + "type": "boolean", + "description": { + "$ref": "translations.json#/getbooleanvalue_string_boolean_arg1" + } + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getStoredIntegerValue", + "description": { + "$ref": "translations.json#/getstoredintegervalue_string_integer" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getstoredintegervalue_string_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getstoredintegervalue_string_integer_arg1" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getStoredNumberValue", + "description": { + "$ref": "translations.json#/getstorednumbervalue_string_number" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getstorednumbervalue_string_number_arg0" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/getstorednumbervalue_string_number_arg1" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getStoredStringValue", + "description": { + "$ref": "translations.json#/getstoredstringvalue_string_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getstoredstringvalue_string_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getstoredstringvalue_string_string_arg1" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getStoredUrlValue", + "description": { + "$ref": "translations.json#/getstoredurlvalue_string_url" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getstoredurlvalue_string_url_arg0" + } + }, + { + "type": "url", + "description": { + "$ref": "translations.json#/getstoredurlvalue_string_url_arg1" + } + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getStoredUrlValue", + "description": { + "$ref": "translations.json#/getstoredurlvalue_string_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getstoredurlvalue_string_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getstoredurlvalue_string_string_arg1" + } + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getStoredColorValue", + "description": { + "$ref": "translations.json#/getstoredcolorvalue_string_color" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getstoredcolorvalue_string_color_arg0" + } + }, + { + "type": "color", + "description": { + "$ref": "translations.json#/getstoredcolorvalue_string_color_arg1" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getStoredColorValue", + "description": { + "$ref": "translations.json#/getstoredcolorvalue_string_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getstoredcolorvalue_string_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getstoredcolorvalue_string_string_arg1" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getStoredBooleanValue", + "description": { + "$ref": "translations.json#/getstoredbooleanvalue_string_boolean" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getstoredbooleanvalue_string_boolean_arg0" + } + }, + { + "type": "boolean", + "description": { + "$ref": "translations.json#/getstoredbooleanvalue_string_boolean_arg1" + } + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getStoredArrayValue", + "description": { + "$ref": "translations.json#/getstoredarrayvalue_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getstoredarrayvalue_string_arg0" + } + } + ], + "return_type": "array", + "platforms": [ + "android", + "ios", + "web" + ] + }, + { + "name": "getStoredDictValue", + "description": { + "$ref": "translations.json#/getstoreddictvalue_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/getstoreddictvalue_string_arg0" + } + } + ], + "return_type": "dict", + "platforms": [ + "android", + "ios", + "web" + ] + } + ] +} diff --git a/expression-api/function_signatures_strings.json b/expression-api/function_signatures_strings.json new file mode 100644 index 000000000..9cea54a22 --- /dev/null +++ b/expression-api/function_signatures_strings.json @@ -0,0 +1,498 @@ +{ + "$schema": "schema/signatures.json", + "signatures": [ + { + "name": "len", + "description": { + "$ref": "translations.json#/len_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/len_string_arg0" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "contains", + "description": { + "$ref": "translations.json#/contains_string_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/contains_string_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/contains_string_string_arg1" + } + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "substring", + "description": { + "$ref": "translations.json#/substring_string_integer_integer" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/substring_string_integer_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/substring_string_integer_integer_arg1" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/substring_string_integer_integer_arg2" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "replaceAll", + "description": { + "$ref": "translations.json#/replaceall_string_string_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/replaceall_string_string_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/replaceall_string_string_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/replaceall_string_string_string_arg2" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "index", + "description": { + "$ref": "translations.json#/index_string_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/index_string_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/index_string_string_arg1" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "lastIndex", + "description": { + "$ref": "translations.json#/lastindex_string_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/lastindex_string_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/lastindex_string_string_arg1" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "encodeUri", + "description": { + "$ref": "translations.json#/encodeuri_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/encodeuri_string_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "decodeUri", + "description": { + "$ref": "translations.json#/decodeuri_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/decodeuri_string_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "trim", + "description": { + "$ref": "translations.json#/trim_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/trim_string_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "trimLeft", + "description": { + "$ref": "translations.json#/trimleft_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/trimleft_string_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "trimRight", + "description": { + "$ref": "translations.json#/trimright_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/trimright_string_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toUpperCase", + "description": { + "$ref": "translations.json#/touppercase_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/touppercase_string_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toLowerCase", + "description": { + "$ref": "translations.json#/tolowercase_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/tolowercase_string_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "padStart", + "description": { + "$ref": "translations.json#/padstart_string_integer_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/padstart_string_integer_string_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/padstart_string_integer_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/padstart_string_integer_string_arg2" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "padStart", + "description": { + "$ref": "translations.json#/padstart_integer_integer_string" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/padstart_integer_integer_string_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/padstart_integer_integer_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/padstart_integer_integer_string_arg2" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "padEnd", + "description": { + "$ref": "translations.json#/padend_string_integer_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/padend_string_integer_string_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/padend_string_integer_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/padend_string_integer_string_arg2" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "padEnd", + "description": { + "$ref": "translations.json#/padend_integer_integer_string" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/padend_integer_integer_string_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/padend_integer_integer_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/padend_integer_integer_string_arg2" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "testRegex", + "description": { + "$ref": "translations.json#/testregex_string_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/testregex_string_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/testregex_string_string_arg1" + } + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "encodeRegex", + "description": { + "$ref": "translations.json#/encoderegex_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/encoderegex_string_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "web", + "android" + ] + } + ] +} diff --git a/expression-api/function_signatures_to_string.json b/expression-api/function_signatures_to_string.json new file mode 100644 index 000000000..9bed3d114 --- /dev/null +++ b/expression-api/function_signatures_to_string.json @@ -0,0 +1,173 @@ +{ + "$schema": "schema/signatures.json", + "signatures": [ + { + "name": "toString", + "description": { + "$ref": "translations.json#/tostring_array" + }, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/tostring_array_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toString", + "description": { + "$ref": "translations.json#/tostring_boolean" + }, + "arguments": [ + { + "type": "boolean", + "description": { + "$ref": "translations.json#/tostring_boolean_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toString", + "description": { + "$ref": "translations.json#/tostring_color" + }, + "arguments": [ + { + "type": "color", + "description": { + "$ref": "translations.json#/tostring_color_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toString", + "description": { + "$ref": "translations.json#/tostring_dict" + }, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/tostring_dict_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toString", + "description": { + "$ref": "translations.json#/tostring_integer" + }, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/tostring_integer_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toString", + "description": { + "$ref": "translations.json#/tostring_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/tostring_number_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toString", + "description": { + "$ref": "translations.json#/tostring_string" + }, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/tostring_string_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toString", + "description": { + "$ref": "translations.json#/tostring_url" + }, + "arguments": [ + { + "type": "url", + "description": { + "$ref": "translations.json#/tostring_url_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + } + ] +} diff --git a/expression-api/function_signatures_trigonometry.json b/expression-api/function_signatures_trigonometry.json new file mode 100644 index 000000000..fbf0cd475 --- /dev/null +++ b/expression-api/function_signatures_trigonometry.json @@ -0,0 +1,227 @@ +{ + "$schema": "schema/signatures.json", + "signatures": [ + { + "name": "pi", + "description": { + "$ref": "translations.json#/pi" + }, + "arguments": [], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toRadians", + "description": { + "$ref": "translations.json#/toradians_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/toradians_number_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toDegrees", + "description": { + "$ref": "translations.json#/todegrees_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/todegrees_number_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "sin", + "description": { + "$ref": "translations.json#/sin_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/sin_number_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "cos", + "description": { + "$ref": "translations.json#/cos_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/cos_number_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web" + ] + }, + { + "name": "tan", + "description": { + "$ref": "translations.json#/tan_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/tan_number_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web" + ] + }, + { + "name": "asin", + "description": { + "$ref": "translations.json#/asin_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/asin_number_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web" + ] + }, + { + "name": "acos", + "description": { + "$ref": "translations.json#/acos_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/acos_number_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web" + ] + }, + { + "name": "atan", + "description": { + "$ref": "translations.json#/atan_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/atan_number_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web" + ] + }, + { + "name": "atan2", + "description": { + "$ref": "translations.json#/atan2_number_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/atan2_number_number_arg0" + } + }, + { + "type": "number", + "description": { + "$ref": "translations.json#/atan2_number_number_arg1" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "web" + ] + }, + { + "name": "cot", + "description": { + "$ref": "translations.json#/cot_number" + }, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/cot_number_arg0" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web" + ] + } + ] +} diff --git a/expression-api/methods_signatures.json b/expression-api/methods_signatures.json new file mode 100644 index 000000000..467e76e7b --- /dev/null +++ b/expression-api/methods_signatures.json @@ -0,0 +1,159 @@ +{ + "$schema": "schema/signatures.json", + "signatures": [ + { + "name": "toString", + "description": { + "$ref": "translations.json#/tostring_string" + }, + "is_method": true, + "arguments": [ + { + "type": "string", + "description": { + "$ref": "translations.json#/tostring_string_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toString", + "description": { + "$ref": "translations.json#/tostring_number" + }, + "is_method": true, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/tostring_number_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toString", + "description": { + "$ref": "translations.json#/tostring_boolean" + }, + "is_method": true, + "arguments": [ + { + "type": "boolean", + "description": { + "$ref": "translations.json#/tostring_boolean_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toString", + "description": { + "$ref": "translations.json#/tostring_color" + }, + "is_method": true, + "arguments": [ + { + "type": "color", + "description": { + "$ref": "translations.json#/tostring_color_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toString", + "description": { + "$ref": "translations.json#/tostring_url" + }, + "is_method": true, + "arguments": [ + { + "type": "url", + "description": { + "$ref": "translations.json#/tostring_url_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toString", + "description": { + "$ref": "translations.json#/tostring_array" + }, + "is_method": true, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/tostring_array_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "toString", + "description": { + "$ref": "translations.json#/tostring_dict" + }, + "is_method": true, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/tostring_dict_arg0" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + } + ] +} diff --git a/expression-api/methods_signatures_array.json b/expression-api/methods_signatures_array.json new file mode 100644 index 000000000..cbde149b1 --- /dev/null +++ b/expression-api/methods_signatures_array.json @@ -0,0 +1,274 @@ +{ + "$schema": "schema/signatures.json", + "signatures": [ + { + "name": "getArray", + "description": { + "$ref": "translations.json#/getarray_array_integer" + }, + "is_method": true, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getarray_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getarray_array_integer_arg1" + } + } + ], + "return_type": "array", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getBoolean", + "description": { + "$ref": "translations.json#/getboolean_array_integer" + }, + "is_method": true, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getboolean_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getboolean_array_integer_arg1" + } + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getColor", + "description": { + "$ref": "translations.json#/getcolor_array_integer" + }, + "is_method": true, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getcolor_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getcolor_array_integer_arg1" + } + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDict", + "description": { + "$ref": "translations.json#/getdict_array_integer" + }, + "is_method": true, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getdict_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getdict_array_integer_arg1" + } + } + ], + "return_type": "dict", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getInteger", + "description": { + "$ref": "translations.json#/getinteger_array_integer" + }, + "is_method": true, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getinteger_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getinteger_array_integer_arg1" + } + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getNumber", + "description": { + "$ref": "translations.json#/getnumber_array_integer" + }, + "is_method": true, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getnumber_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getnumber_array_integer_arg1" + } + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getString", + "description": { + "$ref": "translations.json#/getstring_array_integer" + }, + "is_method": true, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/getstring_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/getstring_array_integer_arg1" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getUrl", + "description": { + "$ref": "translations.json#/geturl_array_integer" + }, + "is_method": true, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/geturl_array_integer_arg0" + } + }, + { + "type": "integer", + "description": { + "$ref": "translations.json#/geturl_array_integer_arg1" + } + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "isEmpty", + "description": { + "$ref": "translations.json#/isempty_array" + }, + "is_method": true, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/isempty_array_arg0" + } + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "filter", + "description": { + "$ref": "translations.json#/filter_array_function" + }, + "is_method": true, + "arguments": [ + { + "type": "array", + "description": { + "$ref": "translations.json#/filter_array_function_arg0" + } + }, + { + "type": "function", + "description": { + "$ref": "translations.json#/filter_array_function_arg1" + } + } + ], + "return_type": "array", + "platforms": [] + } + ] +} diff --git a/expression-api/methods_signatures_dict.json b/expression-api/methods_signatures_dict.json new file mode 100644 index 000000000..03962e8c8 --- /dev/null +++ b/expression-api/methods_signatures_dict.json @@ -0,0 +1,327 @@ +{ + "$schema": "schema/signatures.json", + "signatures": [ + { + "name": "getArray", + "description": { + "$ref": "translations.json#/getarray_dict_string" + }, + "is_method": true, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getarray_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getarray_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "array", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getBoolean", + "description": { + "$ref": "translations.json#/getboolean_dict_string" + }, + "is_method": true, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getboolean_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getboolean_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getColor", + "description": { + "$ref": "translations.json#/getcolor_dict_string" + }, + "is_method": true, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getcolor_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getcolor_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "color", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getDict", + "description": { + "$ref": "translations.json#/getdict_dict_string" + }, + "is_method": true, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getdict_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getdict_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "dict", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getInteger", + "description": { + "$ref": "translations.json#/getinteger_dict_string" + }, + "is_method": true, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getinteger_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getinteger_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "integer", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getNumber", + "description": { + "$ref": "translations.json#/getnumber_dict_string" + }, + "is_method": true, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getnumber_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getnumber_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "number", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getString", + "description": { + "$ref": "translations.json#/getstring_dict_string" + }, + "is_method": true, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getstring_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/getstring_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "string", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getUrl", + "description": { + "$ref": "translations.json#/geturl_dict_string" + }, + "is_method": true, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/geturl_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/geturl_dict_string_arg1" + }, + "is_vararg": true + } + ], + "return_type": "url", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "containsKey", + "description": { + "$ref": "translations.json#/containskey_dict_string" + }, + "is_method": true, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/containskey_dict_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/containskey_dict_string_arg1" + } + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "isEmpty", + "description": { + "$ref": "translations.json#/isempty_dict" + }, + "is_method": true, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/isempty_dict_arg0" + } + } + ], + "return_type": "boolean", + "platforms": [ + "android", + "ios", + "web", + "flutter" + ] + }, + { + "name": "getKeys", + "description": { + "$ref": "translations.json#/getkeys_dict" + }, + "is_method": true, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getkeys_dict_arg0" + } + } + ], + "return_type": "array", + "platforms": [ + "android", + "ios" + ] + }, + { + "name": "getValues", + "description": { + "$ref": "translations.json#/getvalues_dict" + }, + "is_method": true, + "arguments": [ + { + "type": "dict", + "description": { + "$ref": "translations.json#/getvalues_dict_arg0" + } + } + ], + "return_type": "array", + "platforms": [ + "android", + "ios" + ] + } + ] +} diff --git a/expression-api/methods_signatures_format.json b/expression-api/methods_signatures_format.json new file mode 100644 index 000000000..443eb9d2f --- /dev/null +++ b/expression-api/methods_signatures_format.json @@ -0,0 +1,125 @@ +{ + "$schema": "schema/signatures.json", + "signatures": [ + { + "name": "decimalFormat", + "description": { + "$ref": "translations.json#/decimalformat_integer_string" + }, + "is_method": true, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/decimalformat_integer_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/decimalformat_integer_string_arg1" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "web", + "ios" + ] + }, + { + "name": "decimalFormat", + "description": { + "$ref": "translations.json#/decimalformat_number_string" + }, + "is_method": true, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/decimalformat_number_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/decimalformat_number_string_arg1" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "web", + "ios" + ] + }, + { + "name": "decimalFormat", + "description": { + "$ref": "translations.json#/decimalformat_integer_string_string" + }, + "is_method": true, + "arguments": [ + { + "type": "integer", + "description": { + "$ref": "translations.json#/decimalformat_integer_string_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/decimalformat_integer_string_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/decimalformat_integer_string_string_arg2" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "web", + "ios" + ] + }, + { + "name": "decimalFormat", + "description": { + "$ref": "translations.json#/decimalformat_number_string_string" + }, + "is_method": true, + "arguments": [ + { + "type": "number", + "description": { + "$ref": "translations.json#/decimalformat_number_string_string_arg0" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/decimalformat_number_string_string_arg1" + } + }, + { + "type": "string", + "description": { + "$ref": "translations.json#/decimalformat_number_string_string_arg2" + } + } + ], + "return_type": "string", + "platforms": [ + "android", + "web", + "ios" + ] + } + ] +} diff --git a/expression-api/schema/signatures.json b/expression-api/schema/signatures.json new file mode 100644 index 000000000..e18d40cb3 --- /dev/null +++ b/expression-api/schema/signatures.json @@ -0,0 +1,137 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "definitions": { + "reference": { + "type": "object", + "properties": { + "$ref": { + "type": "string", + "format": "uri-reference" + } + }, + "required": [ + "$ref" + ] + }, + "localized_string": { + "type": "object", + "properties": { + "en": { + "type": "string" + }, + "ru": { + "type": "string" + } + }, + "required": [ + "en", + "ru" + ] + }, + "signature": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "oneOf": [ + { + "$ref": "#/definitions/localized_string" + }, + { + "$ref": "#/definitions/reference" + } + ] + }, + "is_method": { + "type": "boolean", + "default": false + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/definitions/argument" + } + }, + "return_type": { + "$ref": "#/definitions/type" + }, + "platforms": { + "type": "array", + "items": { + "$ref": "#/definitions/platform" + } + } + }, + "required": [ + "name", + "description", + "arguments", + "return_type", + "platforms" + ] + }, + "argument": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/type" + }, + "description": { + "oneOf": [ + { + "$ref": "#/definitions/localized_string" + }, + { + "$ref": "#/definitions/reference" + } + ] + }, + "is_vararg": { + "type": "boolean", + "default": false + } + }, + "required": [ + "type", + "description" + ] + }, + "type": { + "type": "string", + "enum": [ + "array", + "boolean", + "color", + "datetime", + "dict", + "integer", + "number", + "string", + "url" + ] + }, + "platform": { + "type": "string", + "enum": [ + "android", + "ios", + "web", + "flutter" + ] + } + }, + "properties": { + "signatures": { + "type": "array", + "items": { + "$ref": "#/definitions/signature" + } + } + }, + "required": [ + "signatures" + ] +} diff --git a/expression-api/schema/translations.json b/expression-api/schema/translations.json new file mode 100644 index 000000000..1850c9299 --- /dev/null +++ b/expression-api/schema/translations.json @@ -0,0 +1,24 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "definitions": { + "localized_string": { + "type": "object", + "properties": { + "en": { + "type": "string" + }, + "ru": { + "type": "string" + } + }, + "required": [ + "en", + "ru" + ] + } + }, + "additionalProperties": { + "$ref": "#/definitions/localized_string" + } +} diff --git a/expression-api/translations.json b/expression-api/translations.json new file mode 100644 index 000000000..f328efb61 --- /dev/null +++ b/expression-api/translations.json @@ -0,0 +1,2603 @@ +{ + "$schema": "schema/translations.json", + "getarrayboolean_array_integer": { + "en": "Returns a boolean property from array.", + "ru": "Возвращает логическое значение из массива." + }, + "getarrayboolean_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getarrayboolean_array_integer_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getarraycolor_array_integer": { + "en": "Returns a color property from array.", + "ru": "Возвращает свойство цвета из массива." + }, + "getarraycolor_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getarraycolor_array_integer_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getarrayfromarray_array_integer": { + "en": "Returns an array value from array", + "ru": "Возвращает значение массива из массива" + }, + "getarrayfromarray_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getarrayfromarray_array_integer_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getarrayinteger_array_integer": { + "en": "Returns an integer value from array.", + "ru": "Возвращает целочисленное значение из массива." + }, + "getarrayinteger_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getarrayinteger_array_integer_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getarraynumber_array_integer": { + "en": "Returns a number value from array.", + "ru": "Возвращает числовое значение из массива." + }, + "getarraynumber_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getarraynumber_array_integer_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getarrayoptboolean_array_integer_boolean": { + "en": "Returns an optional boolean value from array.", + "ru": "Возвращает опциональное логическое значение из массива." + }, + "getarrayoptboolean_array_integer_boolean_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getarrayoptboolean_array_integer_boolean_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getarrayoptboolean_array_integer_boolean_arg2": { + "en": "Fallback value if value by index not exists or it's is not a boolean.", + "ru": "Резервное значение, если значение по индексу не существует или не является логическим." + }, + "getarrayoptcolor_array_integer_color": { + "en": "Returns an optional color value from array.", + "ru": "Возвращает опциональное значение цвета из массива." + }, + "getarrayoptcolor_array_integer_color_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getarrayoptcolor_array_integer_color_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getarrayoptcolor_array_integer_color_arg2": { + "en": "Fallback value if value by index not exists or it's is not a color.", + "ru": "Резервное значение, если значение по индексу не существует или не является цветом." + }, + "getarrayoptcolor_array_integer_string": { + "en": "Returns an optional color value from array.", + "ru": "Возвращает опциональное значение цвета из массива." + }, + "getarrayoptcolor_array_integer_string_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getarrayoptcolor_array_integer_string_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getarrayoptcolor_array_integer_string_arg2": { + "en": "Fallback value if value by index not exists or it's is not a color.", + "ru": "Резервное значение, если значение по индексу не существует или не является цветом." + }, + "getarrayoptinteger_array_integer_integer": { + "en": "Returns an optional integer property from array.", + "ru": "Возвращает опциональное целочисленное свойство из массива." + }, + "getarrayoptinteger_array_integer_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getarrayoptinteger_array_integer_integer_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getarrayoptinteger_array_integer_integer_arg2": { + "en": "Fallback value if property does not exist or a property value is not an integer.", + "ru": "Резервное значение, если свойство не существует или значение свойства не является целым числом." + }, + "getarrayoptnumber_array_integer_number": { + "en": "Returns an optional number property from array.", + "ru": "Возвращает опциональное числовое свойство из массива." + }, + "getarrayoptnumber_array_integer_number_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getarrayoptnumber_array_integer_number_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getarrayoptnumber_array_integer_number_arg2": { + "en": "Fallback value if value by index not exists or it's is not a number.", + "ru": "Резервное значение, если значение по индексу не существует или не является числом." + }, + "getarrayoptstring_array_integer_string": { + "en": "Returns an optional string property from array.", + "ru": "Возвращает опциональное строковое свойство из массива." + }, + "getarrayoptstring_array_integer_string_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getarrayoptstring_array_integer_string_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getarrayoptstring_array_integer_string_arg2": { + "en": "Fallback value if value by index not exists or it's is not a string.", + "ru": "Резервное значение, если значение по индексу не существует или не является строкой." + }, + "getarrayopturl_array_integer_string": { + "en": "Returns an optional url value from array.", + "ru": "Возвращает опциональное значение URL из массива." + }, + "getarrayopturl_array_integer_string_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getarrayopturl_array_integer_string_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getarrayopturl_array_integer_string_arg2": { + "en": "Fallback value if value by index not exists or it's is not a url.", + "ru": "Резервное значение, если значение по индексу не существует или не является URL." + }, + "getarrayopturl_array_integer_url": { + "en": "Returns an optional url value from array.", + "ru": "Возвращает опциональное значение URL из массива." + }, + "getarrayopturl_array_integer_url_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getarrayopturl_array_integer_url_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getarrayopturl_array_integer_url_arg2": { + "en": "Fallback value if value by index not exists or it's is not a url.", + "ru": "Резервное значение, если значение по индексу не существует или не является URL." + }, + "getarraystring_array_integer": { + "en": "Returns a string value from array.", + "ru": "Возвращает строковое значение из массива." + }, + "getarraystring_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getarraystring_array_integer_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getarrayurl_array_integer": { + "en": "Returns an url value from array.", + "ru": "Возвращает значение URL из массива." + }, + "getarrayurl_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getarrayurl_array_integer_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getbooleanfromarray_array_integer": { + "en": "Returns a boolean property from array.", + "ru": "Возвращает логическое свойство из массива." + }, + "getbooleanfromarray_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getbooleanfromarray_array_integer_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getcolorfromarray_array_integer": { + "en": "Returns a color property from array.", + "ru": "Возвращает свойство цвета из массива." + }, + "getcolorfromarray_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getcolorfromarray_array_integer_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getdictfromarray_array_integer": { + "en": "Returns an dict value from array", + "ru": "Возвращает значение словаря из массива" + }, + "getdictfromarray_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getdictfromarray_array_integer_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getintegerfromarray_array_integer": { + "en": "Returns an integer value from array.", + "ru": "Возвращает целочисленное значение из массива." + }, + "getintegerfromarray_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getintegerfromarray_array_integer_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getnumberfromarray_array_integer": { + "en": "Returns a number value from array.", + "ru": "Возвращает числовое значение из массива." + }, + "getnumberfromarray_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getnumberfromarray_array_integer_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getoptarrayfromarray_array_integer": { + "en": "Returns an array value from array if exist or empty array otherwise", + "ru": "Возвращает значение массива из массива, если существует, иначе пустой массив" + }, + "getoptarrayfromarray_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getoptarrayfromarray_array_integer_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getoptbooleanfromarray_array_integer_boolean": { + "en": "Returns an optional boolean value from array.", + "ru": "Возвращает опциональное логическое значение из массива." + }, + "getoptbooleanfromarray_array_integer_boolean_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getoptbooleanfromarray_array_integer_boolean_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getoptbooleanfromarray_array_integer_boolean_arg2": { + "en": "Fallback value if value by index not exists or it's is not a boolean.", + "ru": "Резервное значение, если значение по индексу не существует или не является логическим." + }, + "getoptcolorfromarray_array_integer_color": { + "en": "Returns an optional color value from array.", + "ru": "Возвращает опциональное значение цвета из массива." + }, + "getoptcolorfromarray_array_integer_color_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getoptcolorfromarray_array_integer_color_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getoptcolorfromarray_array_integer_color_arg2": { + "en": "Fallback value if value by index not exists or it's is not a color.", + "ru": "Резервное значение, если значение по индексу не существует или не является цветом." + }, + "getoptcolorfromarray_array_integer_string": { + "en": "Returns an optional color value from array.", + "ru": "Возвращает опциональное значение цвета из массива." + }, + "getoptcolorfromarray_array_integer_string_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getoptcolorfromarray_array_integer_string_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getoptcolorfromarray_array_integer_string_arg2": { + "en": "Fallback value if value by index not exists or it's is not a color.", + "ru": "Резервное значение, если значение по индексу не существует или не является цветом." + }, + "getoptdictfromarray_array_integer": { + "en": "Returns an dict value from array if exist or empty dict otherwise", + "ru": "Возвращает значение словаря из массива, если существует, иначе пустой словарь" + }, + "getoptdictfromarray_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getoptdictfromarray_array_integer_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getoptintegerfromarray_array_integer_integer": { + "en": "Returns an optional integer property from array.", + "ru": "Возвращает опциональное целочисленное свойство из массива." + }, + "getoptintegerfromarray_array_integer_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getoptintegerfromarray_array_integer_integer_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getoptintegerfromarray_array_integer_integer_arg2": { + "en": "Fallback value if property does not exist or a property value is not an integer.", + "ru": "Резервное значение, если свойство не существует или значение свойства не является целым числом." + }, + "getoptnumberfromarray_array_integer_number": { + "en": "Returns an optional number property from array.", + "ru": "Возвращает опциональное числовое свойство из массива." + }, + "getoptnumberfromarray_array_integer_number_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getoptnumberfromarray_array_integer_number_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getoptnumberfromarray_array_integer_number_arg2": { + "en": "Fallback value if value by index not exists or it's is not a number.", + "ru": "Резервное значение, если значение по индексу не существует или не является числом." + }, + "getoptstringfromarray_array_integer_string": { + "en": "Returns an optional string property from array.", + "ru": "Возвращает опциональное строковое свойство из массива." + }, + "getoptstringfromarray_array_integer_string_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getoptstringfromarray_array_integer_string_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getoptstringfromarray_array_integer_string_arg2": { + "en": "Fallback value if value by index not exists or it's is not a string.", + "ru": "Резервное значение, если значение по индексу не существует или не является строкой." + }, + "getopturlfromarray_array_integer_string": { + "en": "Returns an optional url value from array.", + "ru": "Возвращает опциональное значение URL из массива." + }, + "getopturlfromarray_array_integer_string_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getopturlfromarray_array_integer_string_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getopturlfromarray_array_integer_string_arg2": { + "en": "Fallback value if value by index not exists or it's is not a url.", + "ru": "Резервное значение, если значение по индексу не существует или не является URL." + }, + "getopturlfromarray_array_integer_url": { + "en": "Returns an optional url value from array.", + "ru": "Возвращает опциональное значение URL из массива." + }, + "getopturlfromarray_array_integer_url_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getopturlfromarray_array_integer_url_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "getopturlfromarray_array_integer_url_arg2": { + "en": "Fallback value if value by index not exists or it's is not a url.", + "ru": "Резервное значение, если значение по индексу не существует или не является URL." + }, + "getstringfromarray_array_integer": { + "en": "Returns a string value from array.", + "ru": "Возвращает строковое значение из массива." + }, + "getstringfromarray_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getstringfromarray_array_integer_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "geturlfromarray_array_integer": { + "en": "Returns an url value from array.", + "ru": "Возвращает значение URL из массива." + }, + "geturlfromarray_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "geturlfromarray_array_integer_arg1": { + "en": "Index at array.", + "ru": "Индекс в массиве." + }, + "len_array": { + "en": "Gets the length of array. Returns integer value.", + "ru": "Получает длину массива. Возвращает целочисленное значение." + }, + "len_array_arg0": { + "en": "Array value to get length of.", + "ru": "Значение массива для получения длины." + }, + "argb_number_number_number_number": { + "en": "Creates color from values of alpha, red, green, blue values. Returns string value of color in hex format '#FFAABBCC'.", + "ru": "Создает цвет из значений альфа, красного, зеленого и синего. Возвращает строковое значение цвета в шестнадцатеричном формате '#FFAABBCC'." + }, + "argb_number_number_number_number_arg0": { + "en": "Number value of alpha in range 0.0 to 1.0.", + "ru": "Числовое значение альфа-канала в диапазоне от 0.0 до 1.0." + }, + "argb_number_number_number_number_arg1": { + "en": "Number value of red in range 0.0 to 1.0.", + "ru": "Числовое значение красного цвета в диапазоне от 0.0 до 1.0." + }, + "argb_number_number_number_number_arg2": { + "en": "Number value of green in range 0.0 to 1.0.", + "ru": "Числовое значение зеленого цвета в диапазоне от 0.0 до 1.0." + }, + "argb_number_number_number_number_arg3": { + "en": "Number value of blue in range 0.0 to 1.0.", + "ru": "Числовое значение синего цвета в диапазоне от 0.0 до 1.0." + }, + "getcoloralpha_color": { + "en": "Gets alpha value of argument color. Returns number value in range 0.0 to 1.0 of alpha value of color.", + "ru": "Получает значение альфа-канала из аргумента цвета. Возвращает числовое значение в диапазоне от 0.0 до 1.0 альфа-канала цвета." + }, + "getcoloralpha_color_arg0": { + "en": "Color", + "ru": "Цвет" + }, + "getcoloralpha_string": { + "en": "Gets alpha value of argument color. Returns number value in range 0.0 to 1.0 of alpha value of color.", + "ru": "Получает значение альфа-канала из аргумента цвета. Возвращает числовое значение в диапазоне от 0.0 до 1.0 альфа-канала цвета." + }, + "getcoloralpha_string_arg0": { + "en": "String value of color in hex format.", + "ru": "Строковое значение цвета в шестнадцатеричном формате." + }, + "getcolorblue_color": { + "en": "Gets blue value of argument color. Returns number value in range 0.0 to 1.0 of blue value of color.", + "ru": "Получает значение синего цвета из аргумента цвета. Возвращает числовое значение в диапазоне от 0.0 до 1.0 синего компонента цвета." + }, + "getcolorblue_color_arg0": { + "en": "Color.", + "ru": "Цвет." + }, + "getcolorblue_string": { + "en": "Gets blue value of argument color. Returns number value in range 0.0 to 1.0 of blue value of color.", + "ru": "Получает значение синего цвета из аргумента цвета. Возвращает числовое значение в диапазоне от 0.0 до 1.0 синего компонента цвета." + }, + "getcolorblue_string_arg0": { + "en": "String value of color in hex format.", + "ru": "Строковое значение цвета в шестнадцатеричном формате." + }, + "getcolorgreen_color": { + "en": "Gets green value of argument color. Returns number value in range 0.0 to 1.0 of green value of color.", + "ru": "Получает значение зеленого цвета из аргумента цвета. Возвращает числовое значение в диапазоне от 0.0 до 1.0 зеленого компонента цвета." + }, + "getcolorgreen_color_arg0": { + "en": "Color.", + "ru": "Цвет." + }, + "getcolorgreen_string": { + "en": "Gets green value of argument color. Returns number value in range 0.0 to 1.0 of green value of color.", + "ru": "Получает значение зеленого цвета из аргумента цвета. Возвращает числовое значение в диапазоне от 0.0 до 1.0 зеленого компонента цвета." + }, + "getcolorgreen_string_arg0": { + "en": "String value of color in hex format.", + "ru": "Строковое значение цвета в шестнадцатеричном формате." + }, + "getcolorred_color": { + "en": "Gets red value of argument color. Returns number value in range 0.0 to 1.0 of red value of color.", + "ru": "Получает значение красного цвета из аргумента цвета. Возвращает числовое значение в диапазоне от 0.0 до 1.0 красного компонента цвета." + }, + "getcolorred_color_arg0": { + "en": "Color", + "ru": "Цвет" + }, + "getcolorred_string": { + "en": "Gets red value of argument color. Returns number value in range 0.0 to 1.0 of red value of color.", + "ru": "Получает значение красного цвета из аргумента цвета. Возвращает числовое значение в диапазоне от 0.0 до 1.0 красного компонента цвета." + }, + "getcolorred_string_arg0": { + "en": "String value of color in hex format.", + "ru": "Строковое значение цвета в шестнадцатеричном формате." + }, + "rgb_number_number_number": { + "en": "Creates color from values of red, green, blue values. Sets alpha value as 1.0. Returns color value of color in hex format '#FFAABBCC'.", + "ru": "Создает цвет из значений красного, зеленого и синего цветов. Устанавливает значение альфа-канала как 1.0. Возвращает цветовое значение в шестнадцатеричном формате '#FFAABBCC'." + }, + "rgb_number_number_number_arg0": { + "en": "Number value of red in range 0.0 to 1.0.", + "ru": "Числовое значение красного цвета в диапазоне от 0.0 до 1.0." + }, + "rgb_number_number_number_arg1": { + "en": "Number value of green in range 0.0 to 1.0.", + "ru": "Числовое значение зеленого цвета в диапазоне от 0.0 до 1.0." + }, + "rgb_number_number_number_arg2": { + "en": "Number value of blue in range 0.0 to 1.0.", + "ru": "Числовое значение синего цвета в диапазоне от 0.0 до 1.0." + }, + "setcoloralpha_color_number": { + "en": "Sets alpha value of argument color. Returns color.", + "ru": "Устанавливает значение альфа-канала для аргумента цвета. Возвращает цвет." + }, + "setcoloralpha_color_number_arg0": { + "en": "Color.", + "ru": "Цвет." + }, + "setcoloralpha_color_number_arg1": { + "en": "Number value of alpha in range 0.0 to 1.0.", + "ru": "Числовое значение альфа-канала в диапазоне от 0.0 до 1.0." + }, + "setcoloralpha_string_number": { + "en": "Sets alpha value of argument color. Returns string value of color in hex format '#FFAABBCC'.", + "ru": "Устанавливает значение альфа-канала для аргумента цвета. Возвращает строковое значение цвета в шестнадцатеричном формате '#FFAABBCC'." + }, + "setcoloralpha_string_number_arg0": { + "en": "String value of color in hex format.", + "ru": "Строковое значение цвета в шестнадцатеричном формате." + }, + "setcoloralpha_string_number_arg1": { + "en": "Number value of alpha in range 0.0 to 1.0.", + "ru": "Числовое значение альфа-канала в диапазоне от 0.0 до 1.0." + }, + "setcolorblue_color_number": { + "en": "Sets blue value of argument color. Returns Color.", + "ru": "Устанавливает значение синего цвета для аргумента цвета. Возвращает цвет." + }, + "setcolorblue_color_number_arg0": { + "en": "Color.", + "ru": "Цвет." + }, + "setcolorblue_color_number_arg1": { + "en": "Number value of blue in range 0.0 to 1.0.", + "ru": "Числовое значение синего цвета в диапазоне от 0.0 до 1.0." + }, + "setcolorblue_string_number": { + "en": "Sets blue value of argument color. Returns string value of color in hex format '#FFAABBCC'.", + "ru": "Устанавливает значение синего цвета для аргумента цвета. Возвращает строковое значение цвета в шестнадцатеричном формате '#FFAABBCC'." + }, + "setcolorblue_string_number_arg0": { + "en": "String value of color in hex format.", + "ru": "Строковое значение цвета в шестнадцатеричном формате." + }, + "setcolorblue_string_number_arg1": { + "en": "Number value of blue in range 0.0 to 1.0.", + "ru": "Числовое значение синего цвета в диапазоне от 0.0 до 1.0." + }, + "setcolorgreen_color_number": { + "en": "Sets green value of argument color. Returns Color.", + "ru": "Устанавливает значение зеленого цвета для аргумента цвета. Возвращает цвет." + }, + "setcolorgreen_color_number_arg0": { + "en": "Color.", + "ru": "Цвет." + }, + "setcolorgreen_color_number_arg1": { + "en": "Number value of green in range 0.0 to 1.0.", + "ru": "Числовое значение зеленого цвета в диапазоне от 0.0 до 1.0." + }, + "setcolorgreen_string_number": { + "en": "Sets green value of argument color. Returns string value of color in hex format '#FFAABBCC'.", + "ru": "Устанавливает значение зеленого цвета для аргумента цвета. Возвращает строковое значение цвета в шестнадцатеричном формате '#FFAABBCC'." + }, + "setcolorgreen_string_number_arg0": { + "en": "String value of color in hex format.", + "ru": "Строковое значение цвета в шестнадцатеричном формате." + }, + "setcolorgreen_string_number_arg1": { + "en": "Number value of green in range 0.0 to 1.0.", + "ru": "Числовое значение зеленого цвета в диапазоне от 0.0 до 1.0." + }, + "setcolorred_color_number": { + "en": "Sets red value of argument color. Returns color.", + "ru": "Устанавливает значение красного цвета для аргумента цвета. Возвращает цвет." + }, + "setcolorred_color_number_arg0": { + "en": "Color.", + "ru": "Цвет." + }, + "setcolorred_color_number_arg1": { + "en": "Number value of red in range 0.0 to 1.0.", + "ru": "Числовое значение красного цвета в диапазоне от 0.0 до 1.0." + }, + "setcolorred_string_number": { + "en": "Sets red value of argument color. Returns string value of color in hex format '#FFAABBCC'.", + "ru": "Устанавливает значение красного цвета для аргумента цвета. Возвращает строковое значение цвета в шестнадцатеричном формате '#FFAABBCC'." + }, + "setcolorred_string_number_arg0": { + "en": "String value of color in hex format.", + "ru": "Строковое значение цвета в шестнадцатеричном формате." + }, + "setcolorred_string_number_arg1": { + "en": "Number value of red in range 0.0 to 1.0.", + "ru": "Числовое значение красного цвета в диапазоне от 0.0 до 1.0." + }, + "addmillis_datetime_integer": { + "en": "Adds milliseconds to original date. Returns datetime with added time in milliseconds.", + "ru": "Добавляет миллисекунды к исходной дате. Возвращает дату и время с добавленным временем в миллисекундах." + }, + "addmillis_datetime_integer_arg0": { + "en": "Datetime value, date to add milliseconds.", + "ru": "Значение даты и времени, дата для добавления миллисекунд." + }, + "addmillis_datetime_integer_arg1": { + "en": "Integer value, count of milliseconds to add.", + "ru": "Целочисленное значение, количество миллисекунд для добавления." + }, + "formatdateaslocal_datetime_string": { + "en": "Formatting dates in a local timezone in users locale. Used default locale. Look https://en.wikipedia.org/wiki/ISO_8601 for more. `Z` for timezones not supported.", + "ru": "Форматирование дат в местном часовом поясе в локали пользователя. Используется локаль по умолчанию. Смотрите https://en.wikipedia.org/wiki/ISO_8601 для дополнительной информации. `Z` для часовых поясов не поддерживается." + }, + "formatdateaslocal_datetime_string_arg0": { + "en": "Datetime value, date to get milliseconds.", + "ru": "Значение даты и времени, дата для получения миллисекунд." + }, + "formatdateaslocal_datetime_string_arg1": { + "en": "Date and time formats are specified by date and time pattern strings.", + "ru": "Форматы даты и времени указываются строками шаблонов даты и времени." + }, + "formatdateaslocalwithlocale_datetime_string_string": { + "en": "Formatting dates in a local timezone with localization. Look https://en.wikipedia.org/wiki/ISO_8601 for more. `Z` for timezones not supported.", + "ru": "Форматирование дат в местном часовом поясе с локализацией. Смотрите https://en.wikipedia.org/wiki/ISO_8601 для дополнительной информации. `Z` для часовых поясов не поддерживается." + }, + "formatdateaslocalwithlocale_datetime_string_string_arg0": { + "en": "Datetime value, date to get milliseconds.", + "ru": "Значение даты и времени, дата для получения миллисекунд." + }, + "formatdateaslocalwithlocale_datetime_string_string_arg1": { + "en": "Date and time formats are specified by date and time pattern strings.", + "ru": "Форматы даты и времени указываются строками шаблонов даты и времени." + }, + "formatdateaslocalwithlocale_datetime_string_string_arg2": { + "en": "Language for specified date and time pattern strings.", + "ru": "Язык для указанных строк шаблонов даты и времени." + }, + "formatdateasutc_datetime_string": { + "en": "Formatting dates in a UTC timezone in users locale. Used default locale. Look https://en.wikipedia.org/wiki/ISO_8601 for more. `Z` for timezones not supported.", + "ru": "Форматирование дат в часовом поясе UTC в локали пользователя. Используется локаль по умолчанию. Смотрите https://en.wikipedia.org/wiki/ISO_8601 для дополнительной информации. `Z` для часовых поясов не поддерживается." + }, + "formatdateasutc_datetime_string_arg0": { + "en": "Datetime value, date to get milliseconds.", + "ru": "Значение даты и времени, дата для получения миллисекунд." + }, + "formatdateasutc_datetime_string_arg1": { + "en": "Date and time formats are specified by date and time pattern strings.", + "ru": "Форматы даты и времени указываются строками шаблонов даты и времени." + }, + "formatdateasutcwithlocale_datetime_string_string": { + "en": "Formatting dates in a UTC timezone with localization. Look https://en.wikipedia.org/wiki/ISO_8601 for more. `Z` for timezones not supported.", + "ru": "Форматирование дат в часовом поясе UTC с локализацией. Смотрите https://en.wikipedia.org/wiki/ISO_8601 для дополнительной информации. `Z` для часовых поясов не поддерживается." + }, + "formatdateasutcwithlocale_datetime_string_string_arg0": { + "en": "Datetime value, date to get milliseconds.", + "ru": "Значение даты и времени, дата для получения миллисекунд." + }, + "formatdateasutcwithlocale_datetime_string_string_arg1": { + "en": "Date and time formats are specified by date and time pattern strings.", + "ru": "Форматы даты и времени указываются строками шаблонов даты и времени." + }, + "formatdateasutcwithlocale_datetime_string_string_arg2": { + "en": "Language for specified date and time pattern strings.", + "ru": "Язык для указанных строк шаблонов даты и времени." + }, + "getday_datetime": { + "en": "Returns day of month of original date.", + "ru": "Возвращает день месяца исходной даты." + }, + "getday_datetime_arg0": { + "en": "Datetime value, date to get day of month.", + "ru": "Значение даты и времени, дата для получения дня месяца." + }, + "getdayofweek_datetime": { + "en": "Returns day of week of original date, where Sunday is 7.", + "ru": "Возвращает день недели исходной даты, где воскресенье - 7." + }, + "getdayofweek_datetime_arg0": { + "en": "Datetime value, date to get day of week.", + "ru": "Значение даты и времени, дата для получения дня недели." + }, + "gethours_datetime": { + "en": "Returns hours number of original date.", + "ru": "Возвращает значение часов исходной даты." + }, + "gethours_datetime_arg0": { + "en": "Datetime value, date to get hours.", + "ru": "Значение даты и времени, дата для получения часов." + }, + "getmillis_datetime": { + "en": "Returns milliseconds number of original date.", + "ru": "Возвращает значение миллисекунд исходной даты." + }, + "getmillis_datetime_arg0": { + "en": "Datetime value, date to get milliseconds.", + "ru": "Значение даты и времени, дата для получения миллисекунд." + }, + "getminutes_datetime": { + "en": "Returns minutes number of original date.", + "ru": "Возвращает значение минут исходной даты." + }, + "getminutes_datetime_arg0": { + "en": "Datetime value, date to get minutes.", + "ru": "Значение даты и времени, дата для получения минут." + }, + "getmonth_datetime": { + "en": "Returns month number of original date.", + "ru": "Возвращает номер месяца исходной даты." + }, + "getmonth_datetime_arg0": { + "en": "Datetime value, date to get month.", + "ru": "Значение даты и времени, дата для получения месяца." + }, + "getseconds_datetime": { + "en": "Returns seconds number of original date.", + "ru": "Возвращает значение секунд исходной даты." + }, + "getseconds_datetime_arg0": { + "en": "Datetime value, date to get seconds.", + "ru": "Значение даты и времени, дата для получения секунд." + }, + "getyear_datetime": { + "en": "Returns year number of original date.", + "ru": "Возвращает номер года исходной даты." + }, + "getyear_datetime_arg0": { + "en": "Datetime value, date to get year.", + "ru": "Значение даты и времени, дата для получения года." + }, + "nowlocal": { + "en": "Creates datetime from time of now. Returns datetime value.", + "ru": "Создает дату и время из текущего времени. Возвращает значение даты и времени." + }, + "parseunixtime_integer": { + "en": "Creates datetime from integer value of unix time. Returns datetime value.", + "ru": "Создает дату и время из целочисленного значения времени unix. Возвращает значение даты и времени." + }, + "parseunixtime_integer_arg0": { + "en": "Time in UTC seconds from the epoch.", + "ru": "Время в секундах UTC от начала эпохи." + }, + "parseunixtimeaslocal_integer": { + "en": "Creates datetime in local timezone from integer value of unix time. Returns datetime value.", + "ru": "Создает дату и время в местном часовом поясе из целочисленного значения времени unix. Возвращает значение даты и времени." + }, + "parseunixtimeaslocal_integer_arg0": { + "en": "Time in local time zone seconds from the epoch.", + "ru": "Время в секундах местного часового пояса от начала эпохи." + }, + "setday_datetime_integer": { + "en": "Sets day of month number to original date. Returns datetime with day of month set.", + "ru": "Устанавливает день месяца для исходной даты. Возвращает дату и время с установленным днем месяца." + }, + "setday_datetime_integer_arg0": { + "en": "Datetime value, date to set day of month.", + "ru": "Значение даты и времени, дата для установки дня месяца." + }, + "setday_datetime_integer_arg1": { + "en": "Integer value, day of month to set to date.", + "ru": "Целочисленное значение, день месяца для установки в дату." + }, + "sethours_datetime_integer": { + "en": "Sets hours number to original date. Returns datetime with hours set.", + "ru": "Устанавливает часы для исходной даты. Возвращает дату и время с установленными часами." + }, + "sethours_datetime_integer_arg0": { + "en": "Datetime value, date to set hours.", + "ru": "Значение даты и времени, дата для установки часов." + }, + "sethours_datetime_integer_arg1": { + "en": "Integer value, hours to set to date.", + "ru": "Целочисленное значение, часы для установки в дату." + }, + "setmillis_datetime_integer": { + "en": "Sets milliseconds number to original date. Returns datetime with milliseconds set.", + "ru": "Устанавливает миллисекунды для исходной даты. Возвращает дату и время с установленными миллисекундами." + }, + "setmillis_datetime_integer_arg0": { + "en": "Datetime value, date to set milliseconds.", + "ru": "Значение даты и времени, дата для установки миллисекунд." + }, + "setmillis_datetime_integer_arg1": { + "en": "Integer value, milliseconds to set to date.", + "ru": "Целочисленное значение, миллисекунды для установки в дату." + }, + "setminutes_datetime_integer": { + "en": "Sets minutes number to original date. Returns datetime with minutes set.", + "ru": "Устанавливает минуты для исходной даты. Возвращает дату и время с установленными минутами." + }, + "setminutes_datetime_integer_arg0": { + "en": "Datetime value, date to set minutes.", + "ru": "Значение даты и времени, дата для установки минут." + }, + "setminutes_datetime_integer_arg1": { + "en": "Integer value, minutes to set to date.", + "ru": "Целочисленное значение, минуты для установки в дату." + }, + "setmonth_datetime_integer": { + "en": "Sets month number to original date. Returns datetime with month set.", + "ru": "Устанавливает номер месяца для исходной даты. Возвращает дату и время с установленным месяцем." + }, + "setmonth_datetime_integer_arg0": { + "en": "Datetime value, date to set month.", + "ru": "Значение даты и времени, дата для установки месяца." + }, + "setmonth_datetime_integer_arg1": { + "en": "Integer value, month to set to date. Expected values from 1 to 12.", + "ru": "Целочисленное значение, месяц для установки в дату. Ожидаемые значения от 1 до 12." + }, + "setseconds_datetime_integer": { + "en": "Sets seconds number to original date. Returns datetime with seconds set.", + "ru": "Устанавливает секунды для исходной даты. Возвращает дату и время с установленными секундами." + }, + "setseconds_datetime_integer_arg0": { + "en": "Datetime value, date to set seconds.", + "ru": "Значение даты и времени, дата для установки секунд." + }, + "setseconds_datetime_integer_arg1": { + "en": "Integer value, seconds to set to date.", + "ru": "Целочисленное значение, секунды для установки в дату." + }, + "setyear_datetime_integer": { + "en": "Sets year number to original date. Returns datetime with year set.", + "ru": "Устанавливает номер года для исходной даты. Возвращает дату и время с установленным годом." + }, + "setyear_datetime_integer_arg0": { + "en": "Datetime value, date to set year.", + "ru": "Значение даты и времени, дата для установки года." + }, + "setyear_datetime_integer_arg1": { + "en": "Integer value, year to set to date.", + "ru": "Целочисленное значение, год для установки в дату." + }, + "getarrayfromdict_dict_string": { + "en": "Returns an array property from dictionary.", + "ru": "Возвращает свойство массива из словаря." + }, + "getarrayfromdict_dict_string_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getarrayfromdict_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getbooleanfromdict_dict_string": { + "en": "Returns a boolean property from dictionary.", + "ru": "Возвращает логическое свойство из словаря." + }, + "getbooleanfromdict_dict_string_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getbooleanfromdict_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getcolorfromdict_dict_string": { + "en": "Returns a color property from dictionary.", + "ru": "Возвращает свойство цвета из словаря." + }, + "getcolorfromdict_dict_string_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getcolorfromdict_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getdictboolean_dict_string": { + "en": "Returns a boolean property from dictionary.", + "ru": "Возвращает логическое свойство из словаря." + }, + "getdictboolean_dict_string_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getdictboolean_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getdictcolor_dict_string": { + "en": "Returns a color property from dictionary.", + "ru": "Возвращает свойство цвета из словаря." + }, + "getdictcolor_dict_string_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getdictcolor_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getdictfromdict_dict_string": { + "en": "Returns an dict property from dictionary.", + "ru": "Возвращает свойство словаря из словаря." + }, + "getdictfromdict_dict_string_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getdictfromdict_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getdictinteger_dict_string": { + "en": "Returns an integer value from dictionary.", + "ru": "Возвращает целочисленное значение из словаря." + }, + "getdictinteger_dict_string_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getdictinteger_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getdictkeys_dict": { + "en": "Return a collection containing just the keys of the dictionary.", + "ru": "Возвращает коллекцию, содержащую только ключи словаря." + }, + "getdictkeys_dict_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getdictnumber_dict_string": { + "en": "Returns a number value from dictionary.", + "ru": "Возвращает числовое значение из словаря." + }, + "getdictnumber_dict_string_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getdictnumber_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getdictoptboolean_boolean_dict_string": { + "en": "Returns an optional boolean property from dictionary.", + "ru": "Возвращает опциональное логическое свойство из словаря." + }, + "getdictoptboolean_boolean_dict_string_arg0": { + "en": "Fallback value if property does not exist or a property value is not a boolean.", + "ru": "Резервное значение, если свойство не существует или значение свойства не является логическим." + }, + "getdictoptboolean_boolean_dict_string_arg1": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getdictoptboolean_boolean_dict_string_arg2": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getdictoptcolor_color_dict_string": { + "en": "Returns an optional color property from dictionary.", + "ru": "Возвращает опциональное свойство цвета из словаря." + }, + "getdictoptcolor_color_dict_string_arg0": { + "en": "Fallback value if property does not exist or a property value is not a color.", + "ru": "Резервное значение, если свойство не существует или значение свойства не является цветом." + }, + "getdictoptcolor_color_dict_string_arg1": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getdictoptcolor_color_dict_string_arg2": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getdictoptcolor_string_dict_string": { + "en": "Returns an optional color property from dictionary.", + "ru": "Возвращает опциональное свойство цвета из словаря." + }, + "getdictoptcolor_string_dict_string_arg0": { + "en": "Fallback value if property does not exist or a property value is not a color.", + "ru": "Резервное значение, если свойство не существует или значение свойства не является цветом." + }, + "getdictoptcolor_string_dict_string_arg1": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getdictoptcolor_string_dict_string_arg2": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getdictoptinteger_integer_dict_string": { + "en": "Returns an optional integer property from dictionary.", + "ru": "Возвращает опциональное целочисленное свойство из словаря." + }, + "getdictoptinteger_integer_dict_string_arg0": { + "en": "Fallback value if property does not exist or a property value is not an integer.", + "ru": "Резервное значение, если свойство не существует или значение свойства не является целым числом." + }, + "getdictoptinteger_integer_dict_string_arg1": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getdictoptinteger_integer_dict_string_arg2": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getdictoptnumber_number_dict_string": { + "en": "Returns an optional number property from dictionary.", + "ru": "Возвращает опциональное числовое свойство из словаря." + }, + "getdictoptnumber_number_dict_string_arg0": { + "en": "Fallback value if property does not exist or a property value is not a number.", + "ru": "Резервное значение, если свойство не существует или значение свойства не является числом." + }, + "getdictoptnumber_number_dict_string_arg1": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getdictoptnumber_number_dict_string_arg2": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getdictoptstring_string_dict_string": { + "en": "Returns an optional string property from dictionary.", + "ru": "Возвращает опциональное строковое свойство из словаря." + }, + "getdictoptstring_string_dict_string_arg0": { + "en": "Fallback value if property does not exist or a property value is not a string.", + "ru": "Резервное значение, если свойство не существует или значение свойства не является строкой." + }, + "getdictoptstring_string_dict_string_arg1": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getdictoptstring_string_dict_string_arg2": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getdictopturl_string_dict_string": { + "en": "Returns an optional url property from dictionary.", + "ru": "Возвращает опциональное свойство URL из словаря." + }, + "getdictopturl_string_dict_string_arg0": { + "en": "Fallback value if property does not exist or a property value is not an url.", + "ru": "Резервное значение, если свойство не существует или значение свойства не является URL." + }, + "getdictopturl_string_dict_string_arg1": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getdictopturl_string_dict_string_arg2": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getdictopturl_url_dict_string": { + "en": "Returns an optional url property from dictionary.", + "ru": "Возвращает опциональное свойство URL из словаря." + }, + "getdictopturl_url_dict_string_arg0": { + "en": "Fallback value if property does not exist or a property value is not an url.", + "ru": "Резервное значение, если свойство не существует или значение свойства не является URL." + }, + "getdictopturl_url_dict_string_arg1": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getdictopturl_url_dict_string_arg2": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getdictstring_dict_string": { + "en": "Returns a string value from dictionary.", + "ru": "Возвращает строковое значение из словаря." + }, + "getdictstring_dict_string_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getdictstring_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getdicturl_dict_string": { + "en": "Returns an url property from dictionary.", + "ru": "Возвращает свойство URL из словаря." + }, + "getdicturl_dict_string_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getdicturl_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getdictvalues_dict": { + "en": "Return a collection containing just the values of the dictionary.", + "ru": "Возвращает коллекцию, содержащую только значения словаря." + }, + "getdictvalues_dict_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getintegerfromdict_dict_string": { + "en": "Returns an integer value from dictionary.", + "ru": "Возвращает целочисленное значение из словаря." + }, + "getintegerfromdict_dict_string_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getintegerfromdict_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getnumberfromdict_dict_string": { + "en": "Returns a number value from dictionary.", + "ru": "Возвращает числовое значение из словаря." + }, + "getnumberfromdict_dict_string_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getnumberfromdict_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getoptarrayfromdict_dict_string": { + "en": "Returns an array value from dict if exist or empty array otherwise.", + "ru": "Возвращает значение массива из словаря, если существует, иначе пустой массив." + }, + "getoptarrayfromdict_dict_string_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getoptarrayfromdict_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getoptbooleanfromdict_boolean_dict_string": { + "en": "Returns an optional boolean property from dictionary.", + "ru": "Возвращает опциональное логическое свойство из словаря." + }, + "getoptbooleanfromdict_boolean_dict_string_arg0": { + "en": "Fallback value if property does not exist or a property value is not a boolean.", + "ru": "Резервное значение, если свойство не существует или значение свойства не является логическим." + }, + "getoptbooleanfromdict_boolean_dict_string_arg1": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getoptbooleanfromdict_boolean_dict_string_arg2": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getoptcolorfromdict_color_dict_string": { + "en": "Returns an optional color property from dictionary.", + "ru": "Возвращает опциональное свойство цвета из словаря." + }, + "getoptcolorfromdict_color_dict_string_arg0": { + "en": "Fallback value if property does not exist or a property value is not a color.", + "ru": "Резервное значение, если свойство не существует или значение свойства не является цветом." + }, + "getoptcolorfromdict_color_dict_string_arg1": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getoptcolorfromdict_color_dict_string_arg2": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getoptcolorfromdict_string_dict_string": { + "en": "Returns an optional color property from dictionary.", + "ru": "Возвращает опциональное свойство цвета из словаря." + }, + "getoptcolorfromdict_string_dict_string_arg0": { + "en": "Fallback value if property does not exist or a property value is not a color.", + "ru": "Резервное значение, если свойство не существует или значение свойства не является цветом." + }, + "getoptcolorfromdict_string_dict_string_arg1": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getoptcolorfromdict_string_dict_string_arg2": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getoptdictfromdict_dict_string": { + "en": "Returns an dict value from dict if exist or empty dict otherwise.", + "ru": "Возвращает значение словаря из словаря, если существует, иначе пустой словарь." + }, + "getoptdictfromdict_dict_string_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getoptdictfromdict_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getoptintegerfromdict_integer_dict_string": { + "en": "Returns an optional integer property from dictionary.", + "ru": "Возвращает опциональное целочисленное свойство из словаря." + }, + "getoptintegerfromdict_integer_dict_string_arg0": { + "en": "Fallback value if property does not exist or a property value is not an integer.", + "ru": "Резервное значение, если свойство не существует или значение свойства не является целым числом." + }, + "getoptintegerfromdict_integer_dict_string_arg1": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getoptintegerfromdict_integer_dict_string_arg2": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getoptnumberfromdict_number_dict_string": { + "en": "Returns an optional number property from dictionary.", + "ru": "Возвращает опциональное числовое свойство из словаря." + }, + "getoptnumberfromdict_number_dict_string_arg0": { + "en": "Fallback value if property does not exist or a property value is not a number.", + "ru": "Резервное значение, если свойство не существует или значение свойства не является числом." + }, + "getoptnumberfromdict_number_dict_string_arg1": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getoptnumberfromdict_number_dict_string_arg2": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getoptstringfromdict_string_dict_string": { + "en": "Returns an optional string property from dictionary.", + "ru": "Возвращает опциональное строковое свойство из словаря." + }, + "getoptstringfromdict_string_dict_string_arg0": { + "en": "Fallback value if property does not exist or a property value is not a string.", + "ru": "Резервное значение, если свойство не существует или значение свойства не является строкой." + }, + "getoptstringfromdict_string_dict_string_arg1": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getoptstringfromdict_string_dict_string_arg2": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getopturlfromdict_string_dict_string": { + "en": "Returns an optional url property from dictionary.", + "ru": "Возвращает опциональное свойство URL из словаря." + }, + "getopturlfromdict_string_dict_string_arg0": { + "en": "Fallback value if property does not exist or a property value is not an url.", + "ru": "Резервное значение, если свойство не существует или значение свойства не является URL." + }, + "getopturlfromdict_string_dict_string_arg1": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getopturlfromdict_string_dict_string_arg2": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getopturlfromdict_url_dict_string": { + "en": "Returns an optional url property from dictionary.", + "ru": "Возвращает опциональное свойство URL из словаря." + }, + "getopturlfromdict_url_dict_string_arg0": { + "en": "Fallback value if property does not exist or a property value is not an url.", + "ru": "Резервное значение, если свойство не существует или значение свойства не является URL." + }, + "getopturlfromdict_url_dict_string_arg1": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getopturlfromdict_url_dict_string_arg2": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getstringfromdict_dict_string": { + "en": "Returns a string value from dictionary.", + "ru": "Возвращает строковое значение из словаря." + }, + "getstringfromdict_dict_string_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getstringfromdict_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "geturlfromdict_dict_string": { + "en": "Returns an url property from dictionary.", + "ru": "Возвращает свойство URL из словаря." + }, + "geturlfromdict_dict_string_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "geturlfromdict_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "len_dict": { + "en": "Counts the number of elements in a dictionary.", + "ru": "Подсчитывает количество элементов в словаре." + }, + "len_dict_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "decimalformat_integer_string": { + "en": "Returns a string value from an integer using format.", + "ru": "Возвращает строковое значение из целого числа, используя формат." + }, + "decimalformat_integer_string_arg0": { + "en": "Integer value to format.", + "ru": "Целочисленное значение для форматирования." + }, + "decimalformat_integer_string_arg1": { + "en": "Number format, similar to ICU-like.", + "ru": "Формат числа, похожий на ICU." + }, + "decimalformat_integer_string_string": { + "en": "Returns a string value from an integer using format and locale.", + "ru": "Возвращает строковое значение из целого числа, используя формат и локаль." + }, + "decimalformat_integer_string_string_arg0": { + "en": "Integer value to format.", + "ru": "Целочисленное значение для форматирования." + }, + "decimalformat_integer_string_string_arg1": { + "en": "Number format, similar to ICU-like.", + "ru": "Формат числа, похожий на ICU." + }, + "decimalformat_integer_string_string_arg2": { + "en": "Locale.", + "ru": "Локаль." + }, + "decimalformat_number_string": { + "en": "Returns a string value from an number using format.", + "ru": "Возвращает строковое значение из числа, используя формат." + }, + "decimalformat_number_string_arg0": { + "en": "Number value to format.", + "ru": "Числовое значение для форматирования." + }, + "decimalformat_number_string_arg1": { + "en": "Number format, similar to ICU-like.", + "ru": "Формат числа, похожий на ICU." + }, + "decimalformat_number_string_string": { + "en": "Returns a string value from an number using format and locale.", + "ru": "Возвращает строковое значение из числа, используя формат и локаль." + }, + "decimalformat_number_string_string_arg0": { + "en": "Number value to format.", + "ru": "Числовое значение для форматирования." + }, + "decimalformat_number_string_string_arg1": { + "en": "Number format, similar to ICU-like.", + "ru": "Формат числа, похожий на ICU." + }, + "decimalformat_number_string_string_arg2": { + "en": "Locale.", + "ru": "Локаль." + }, + "getintervalhours_integer": { + "en": "Gets the hours component of the duration. Expressed as a value between 0 and 23.", + "ru": "Получает компонент часов продолжительности. Выражается как значение от 0 до 23." + }, + "getintervalhours_integer_arg0": { + "en": "Milliseconds count", + "ru": "Количество миллисекунд" + }, + "getintervalminutes_integer": { + "en": "Gets the minutes component of the duration. Expressed as a value between 0 and 59.", + "ru": "Получает компонент минут продолжительности. Выражается как значение от 0 до 59." + }, + "getintervalminutes_integer_arg0": { + "en": "Milliseconds count", + "ru": "Количество миллисекунд" + }, + "getintervalseconds_integer": { + "en": "Gets the seconds component of the duration. Expressed as a value between 0 and 59.", + "ru": "Получает компонент секунд продолжительности. Выражается как значение от 0 до 59." + }, + "getintervalseconds_integer_arg0": { + "en": "Milliseconds count", + "ru": "Количество миллисекунд" + }, + "getintervaltotaldays_integer": { + "en": "Gets the number of days in duration.", + "ru": "Получает количество дней в продолжительности." + }, + "getintervaltotaldays_integer_arg0": { + "en": "Milliseconds count", + "ru": "Количество миллисекунд" + }, + "getintervaltotalhours_integer": { + "en": "Gets the number of hours in duration.", + "ru": "Получает количество часов в продолжительности." + }, + "getintervaltotalhours_integer_arg0": { + "en": "Milliseconds count", + "ru": "Количество миллисекунд" + }, + "getintervaltotalminutes_integer": { + "en": "Gets the number of minutes in duration.", + "ru": "Получает количество минут в продолжительности." + }, + "getintervaltotalminutes_integer_arg0": { + "en": "Milliseconds count", + "ru": "Количество миллисекунд" + }, + "getintervaltotalseconds_integer": { + "en": "Gets the number of seconds in duration.", + "ru": "Получает количество секунд в продолжительности." + }, + "getintervaltotalseconds_integer_arg0": { + "en": "Milliseconds count", + "ru": "Количество миллисекунд" + }, + "getintervaltotalweeks_integer": { + "en": "Gets the number of weeks in duration.", + "ru": "Получает количество недель в продолжительности." + }, + "getintervaltotalweeks_integer_arg0": { + "en": "Milliseconds count", + "ru": "Количество миллисекунд" + }, + "abs_integer": { + "en": "Gets absolute value of argument. Returns integer value.", + "ru": "Получает абсолютное значение аргумента. Возвращает целочисленное значение." + }, + "abs_integer_arg0": { + "en": "Integer value to get absolute.", + "ru": "Целочисленное значение для получения абсолютного значения." + }, + "abs_number": { + "en": "Gets absolute value of argument. Returns number value.", + "ru": "Получает абсолютное значение аргумента. Возвращает числовое значение." + }, + "abs_number_arg0": { + "en": "Number value to get absolute.", + "ru": "Числовое значение для получения абсолютного значения." + }, + "ceil_number": { + "en": "Rounds argument value up. 1.49 -> 2.0, 1.5 -> 2.0. Returns number value.", + "ru": "Округляет значение аргумента вверх. 1.49 -> 2.0, 1.5 -> 2.0. Возвращает числовое значение." + }, + "ceil_number_arg0": { + "en": "Number value to round.", + "ru": "Числовое значение для округления." + }, + "copysign_integer_integer": { + "en": "Gets value of first argument with sign of the second argument. Returns integer value.", + "ru": "Получает значение первого аргумента со знаком второго аргумента. Возвращает целочисленное значение." + }, + "copysign_integer_integer_arg0": { + "en": "Integer value to copy value from.", + "ru": "Целочисленное значение, откуда копируется значение." + }, + "copysign_integer_integer_arg1": { + "en": "Integer value to copy sign from.", + "ru": "Целочисленное значение, откуда копируется знак." + }, + "copysign_number_number": { + "en": "Gets value of first argument with sign of the second argument. Returns number value.", + "ru": "Получает значение первого аргумента со знаком второго аргумента. Возвращает числовое значение." + }, + "copysign_number_number_arg0": { + "en": "Number value to copy value from.", + "ru": "Числовое значение, откуда копируется значение." + }, + "copysign_number_number_arg1": { + "en": "Number value to copy sign from.", + "ru": "Числовое значение, откуда копируется знак." + }, + "div_integer_integer": { + "en": "Calculates division between the first number and the second. Returns integer quotient of division.", + "ru": "Вычисляет деление между первым числом и вторым. Возвращает целочисленное частное от деления." + }, + "div_integer_integer_arg0": { + "en": "Divisible integer value.", + "ru": "Делимое целочисленное значение." + }, + "div_integer_integer_arg1": { + "en": "Divisor integer value.", + "ru": "Делитель целочисленное значение." + }, + "div_number_number": { + "en": "Calculates division between the first number and the second. Returns number quotient of division.", + "ru": "Вычисляет деление между первым числом и вторым. Возвращает числовое частное от деления." + }, + "div_number_number_arg0": { + "en": "Divisible number value.", + "ru": "Делимое числовое значение." + }, + "div_number_number_arg1": { + "en": "Divisor number value.", + "ru": "Делитель числовое значение." + }, + "floor_number": { + "en": "Rounds argument value down. 1.49 -> 1.0, 1.5 -> 1.0. Returns number value.", + "ru": "Округляет значение аргумента вниз. 1.49 -> 1.0, 1.5 -> 1.0. Возвращает числовое значение." + }, + "floor_number_arg0": { + "en": "Number value to round.", + "ru": "Числовое значение для округления." + }, + "max_integer": { + "en": "Gets max value of argument values. Returns max integer value.", + "ru": "Получает максимальное значение из значений аргументов. Возвращает максимальное целочисленное значение." + }, + "max_integer_arg0": { + "en": "Integer value.", + "ru": "Целочисленное значение." + }, + "max_number": { + "en": "Gets max value of argument values. Returns max number value.", + "ru": "Получает максимальное значение из значений аргументов. Возвращает максимальное числовое значение." + }, + "max_number_arg0": { + "en": "Number value.", + "ru": "Числовое значение." + }, + "maxinteger": { + "en": "Gets max value of integer type. Returns max integer value.", + "ru": "Получает максимальное значение целочисленного типа. Возвращает максимальное целочисленное значение." + }, + "maxnumber": { + "en": "Gets max value of number type. Returns max number value.", + "ru": "Получает максимальное значение числового типа. Возвращает максимальное числовое значение." + }, + "min_integer": { + "en": "Gets min value of argument values. Returns min integer value.", + "ru": "Получает минимальное значение из значений аргументов. Возвращает минимальное целочисленное значение." + }, + "min_integer_arg0": { + "en": "Integer value.", + "ru": "Целочисленное значение." + }, + "min_number": { + "en": "Gets min value of argument values. Returns min number value.", + "ru": "Получает минимальное значение из значений аргументов. Возвращает минимальное числовое значение." + }, + "min_number_arg0": { + "en": "Number value.", + "ru": "Числовое значение." + }, + "mininteger": { + "en": "Gets min value of integer type. Returns min integer value.", + "ru": "Получает минимальное значение целочисленного типа. Возвращает минимальное целочисленное значение." + }, + "minnumber": { + "en": "Gets min value of number type. Returns min number value.", + "ru": "Получает минимальное значение числового типа. Возвращает минимальное числовое значение." + }, + "mod_integer_integer": { + "en": "Calculates remainder of division the first number and the second. Returns integer remainder of division.", + "ru": "Вычисляет остаток от деления первого числа на второе. Возвращает целочисленный остаток от деления." + }, + "mod_integer_integer_arg0": { + "en": "Divisible integer value.", + "ru": "Делимое целочисленное значение." + }, + "mod_integer_integer_arg1": { + "en": "Divisor integer value.", + "ru": "Делитель целочисленное значение." + }, + "mod_number_number": { + "en": "Calculates remainder of division the first number and the second. Returns number remainder of division.", + "ru": "Вычисляет остаток от деления первого числа на второе. Возвращает числовой остаток от деления." + }, + "mod_number_number_arg0": { + "en": "Divisible number value.", + "ru": "Делимое числовое значение." + }, + "mod_number_number_arg1": { + "en": "Divisor number value.", + "ru": "Делитель числовое значение." + }, + "mul_integer": { + "en": "Calculates multiplication between argument values. Returns integer result of multiplication.", + "ru": "Вычисляет умножение между значениями аргументов. Возвращает целочисленный результат умножения." + }, + "mul_integer_arg0": { + "en": "Integer value to multiply.", + "ru": "Целочисленное значение для умножения." + }, + "mul_number": { + "en": "Calculates multiplication between argument values. Returns number result of multiplication.", + "ru": "Вычисляет умножение между значениями аргументов. Возвращает числовой результат умножения." + }, + "mul_number_arg0": { + "en": "Number value to multiply.", + "ru": "Числовое значение для умножения." + }, + "round_number": { + "en": "Rounds argument value to the closest integer value. 1.49 -> 1.0, 1.5 -> 2.0. Returns number value.", + "ru": "Округляет значение аргумента до ближайшего целого значения. 1.49 -> 1.0, 1.5 -> 2.0. Возвращает числовое значение." + }, + "round_number_arg0": { + "en": "Number value to round.", + "ru": "Числовое значение для округления." + }, + "signum_integer": { + "en": "Gets sign value from argument. Returns -1 if value is negative, 0 if value is equal to 0, 1 if value is positive.", + "ru": "Получает значение знака из аргумента. Возвращает -1, если значение отрицательное, 0, если значение равно 0, 1, если значение положительное." + }, + "signum_integer_arg0": { + "en": "Integer value to get sign value.", + "ru": "Целочисленное значение для получения значения знака." + }, + "signum_number": { + "en": "Gets sign value from argument. Returns -1.0 if value is negative, 0.0 if value is equal to 0, 1.0 if value is positive.", + "ru": "Получает значение знака из аргумента. Возвращает -1.0, если значение отрицательное, 0.0, если значение равно 0, 1.0, если значение положительное." + }, + "signum_number_arg0": { + "en": "Number value to get sign value.", + "ru": "Числовое значение для получения значения знака." + }, + "sub_integer": { + "en": "Calculates subtraction between argument values. Returns integer result of subtraction.", + "ru": "Вычисляет вычитание между значениями аргументов. Возвращает целочисленный результат вычитания." + }, + "sub_integer_arg0": { + "en": "Integer value to subtract.", + "ru": "Целочисленное значение для вычитания." + }, + "sub_number": { + "en": "Calculates subtraction between argument values. Returns number result of subtraction.", + "ru": "Вычисляет вычитание между значениями аргументов. Возвращает числовой результат вычитания." + }, + "sub_number_arg0": { + "en": "Number value to subtract.", + "ru": "Числовое значение для вычитания." + }, + "sum_integer": { + "en": "Calculates sum between argument values. Returns integer result of sum.", + "ru": "Вычисляет сумму между значениями аргументов. Возвращает целочисленный результат суммы." + }, + "sum_integer_arg0": { + "en": "Integer value to sum.", + "ru": "Целочисленное значение для суммирования." + }, + "sum_number": { + "en": "Calculates sum between argument values. Returns number result of sum.", + "ru": "Вычисляет сумму между значениями аргументов. Возвращает числовой результат суммы." + }, + "sum_number_arg0": { + "en": "Number value to sum.", + "ru": "Числовое значение для суммирования." + }, + "getbooleanvalue_string_boolean": { + "en": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", + "ru": "Возвращает значение переменной по ее имени. Если переменная не существует или имеет неправильный тип, будет возвращено значение по умолчанию." + }, + "getbooleanvalue_string_boolean_arg0": { + "en": "Variable name.", + "ru": "Имя переменной." + }, + "getbooleanvalue_string_boolean_arg1": { + "en": "Fallback value.", + "ru": "Резервное значение." + }, + "getcolorvalue_string_color": { + "en": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", + "ru": "Возвращает значение переменной по ее имени. Если переменная не существует или имеет неправильный тип, будет возвращено значение по умолчанию." + }, + "getcolorvalue_string_color_arg0": { + "en": "Variable name.", + "ru": "Имя переменной." + }, + "getcolorvalue_string_color_arg1": { + "en": "Fallback value.", + "ru": "Резервное значение." + }, + "getcolorvalue_string_string": { + "en": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", + "ru": "Возвращает значение переменной по ее имени. Если переменная не существует или имеет неправильный тип, будет возвращено значение по умолчанию." + }, + "getcolorvalue_string_string_arg0": { + "en": "Variable name.", + "ru": "Имя переменной." + }, + "getcolorvalue_string_string_arg1": { + "en": "Fallback value.", + "ru": "Резервное значение." + }, + "getintegervalue_string_integer": { + "en": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", + "ru": "Возвращает значение переменной по ее имени. Если переменная не существует или имеет неправильный тип, будет возвращено значение по умолчанию." + }, + "getintegervalue_string_integer_arg0": { + "en": "Variable name.", + "ru": "Имя переменной." + }, + "getintegervalue_string_integer_arg1": { + "en": "Fallback value.", + "ru": "Резервное значение." + }, + "getnumbervalue_string_number": { + "en": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", + "ru": "Возвращает значение переменной по ее имени. Если переменная не существует или имеет неправильный тип, будет возвращено значение по умолчанию." + }, + "getnumbervalue_string_number_arg0": { + "en": "Variable name.", + "ru": "Имя переменной." + }, + "getnumbervalue_string_number_arg1": { + "en": "Fallback value.", + "ru": "Резервное значение." + }, + "getstoredarrayvalue_string": { + "en": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the exception will be thrown.", + "ru": "Возвращает сохраненное значение по его имени. Если значение не существует или имеет неправильный тип, будет выброшено исключение." + }, + "getstoredarrayvalue_string_arg0": { + "en": "Stored value name.", + "ru": "Имя сохраненного значения." + }, + "getstoredbooleanvalue_string_boolean": { + "en": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the default value would be returned.", + "ru": "Возвращает сохраненное значение по его имени. Если значение не существует или имеет неправильный тип, будет возвращено значение по умолчанию." + }, + "getstoredbooleanvalue_string_boolean_arg0": { + "en": "Stored value name.", + "ru": "Имя сохраненного значения." + }, + "getstoredbooleanvalue_string_boolean_arg1": { + "en": "Fallback value.", + "ru": "Резервное значение." + }, + "getstoredcolorvalue_string_color": { + "en": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the default value would be returned.", + "ru": "Возвращает сохраненное значение по его имени. Если значение не существует или имеет неправильный тип, будет возвращено значение по умолчанию." + }, + "getstoredcolorvalue_string_color_arg0": { + "en": "Stored value name.", + "ru": "Имя сохраненного значения." + }, + "getstoredcolorvalue_string_color_arg1": { + "en": "Fallback value.", + "ru": "Резервное значение." + }, + "getstoredcolorvalue_string_string": { + "en": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the default value would be returned.", + "ru": "Возвращает сохраненное значение по его имени. Если значение не существует или имеет неправильный тип, будет возвращено значение по умолчанию." + }, + "getstoredcolorvalue_string_string_arg0": { + "en": "Stored value name.", + "ru": "Имя сохраненного значения." + }, + "getstoredcolorvalue_string_string_arg1": { + "en": "Fallback value.", + "ru": "Резервное значение." + }, + "getstoreddictvalue_string": { + "en": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the exception will be thrown.", + "ru": "Возвращает сохраненное значение по его имени. Если значение не существует или имеет неправильный тип, будет выброшено исключение." + }, + "getstoreddictvalue_string_arg0": { + "en": "Stored value name.", + "ru": "Имя сохраненного значения." + }, + "getstoredintegervalue_string_integer": { + "en": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the default value would be returned.", + "ru": "Возвращает сохраненное значение по его имени. Если значение не существует или имеет неправильный тип, будет возвращено значение по умолчанию." + }, + "getstoredintegervalue_string_integer_arg0": { + "en": "Stored value name.", + "ru": "Имя сохраненного значения." + }, + "getstoredintegervalue_string_integer_arg1": { + "en": "Fallback value.", + "ru": "Резервное значение." + }, + "getstorednumbervalue_string_number": { + "en": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the default value would be returned.", + "ru": "Возвращает сохраненное значение по его имени. Если значение не существует или имеет неправильный тип, будет возвращено значение по умолчанию." + }, + "getstorednumbervalue_string_number_arg0": { + "en": "Stored value name.", + "ru": "Имя сохраненного значения." + }, + "getstorednumbervalue_string_number_arg1": { + "en": "Fallback value.", + "ru": "Резервное значение." + }, + "getstoredstringvalue_string_string": { + "en": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the default value would be returned.", + "ru": "Возвращает сохраненное значение по его имени. Если значение не существует или имеет неправильный тип, будет возвращено значение по умолчанию." + }, + "getstoredstringvalue_string_string_arg0": { + "en": "Stored value name.", + "ru": "Имя сохраненного значения." + }, + "getstoredstringvalue_string_string_arg1": { + "en": "Fallback value.", + "ru": "Резервное значение." + }, + "getstoredurlvalue_string_string": { + "en": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the default value would be returned.", + "ru": "Возвращает сохраненное значение по его имени. Если значение не существует или имеет неправильный тип, будет возвращено значение по умолчанию." + }, + "getstoredurlvalue_string_string_arg0": { + "en": "Stored value name.", + "ru": "Имя сохраненного значения." + }, + "getstoredurlvalue_string_string_arg1": { + "en": "Fallback value.", + "ru": "Резервное значение." + }, + "getstoredurlvalue_string_url": { + "en": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the default value would be returned.", + "ru": "Возвращает сохраненное значение по его имени. Если значение не существует или имеет неправильный тип, будет возвращено значение по умолчанию." + }, + "getstoredurlvalue_string_url_arg0": { + "en": "Stored value name.", + "ru": "Имя сохраненного значения." + }, + "getstoredurlvalue_string_url_arg1": { + "en": "Fallback value.", + "ru": "Резервное значение." + }, + "getstringvalue_string_string": { + "en": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", + "ru": "Возвращает значение переменной по ее имени. Если переменная не существует или имеет неправильный тип, будет возвращено значение по умолчанию." + }, + "getstringvalue_string_string_arg0": { + "en": "Variable name.", + "ru": "Имя переменной." + }, + "getstringvalue_string_string_arg1": { + "en": "Fallback value.", + "ru": "Резервное значение." + }, + "geturlvalue_string_string": { + "en": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", + "ru": "Возвращает значение переменной по ее имени. Если переменная не существует или имеет неправильный тип, будет возвращено значение по умолчанию." + }, + "geturlvalue_string_string_arg0": { + "en": "Variable name.", + "ru": "Имя переменной." + }, + "geturlvalue_string_string_arg1": { + "en": "Fallback value.", + "ru": "Резервное значение." + }, + "geturlvalue_string_url": { + "en": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", + "ru": "Возвращает значение переменной по ее имени. Если переменная не существует или имеет неправильный тип, будет возвращено значение по умолчанию." + }, + "geturlvalue_string_url_arg0": { + "en": "Variable name.", + "ru": "Имя переменной." + }, + "geturlvalue_string_url_arg1": { + "en": "Fallback value.", + "ru": "Резервное значение." + }, + "toboolean_integer": { + "en": "Converts argument value to boolean type. Returns true if argument is 1, false if argument is 0, error if argument is other.", + "ru": "Преобразует значение аргумента в логический тип. Возвращает true, если аргумент равен 1, false, если аргумент равен 0, ошибку, если аргумент другой." + }, + "toboolean_integer_arg0": { + "en": "Integer value to convert.", + "ru": "Целочисленное значение для преобразования." + }, + "toboolean_string": { + "en": "Converts argument value to boolean type. Returns true if argument is \"true\", false if argument is \"false\", error if argument is other.", + "ru": "Преобразует значение аргумента в логический тип. Возвращает true, если аргумент равен \"true\", false, если аргумент равен \"false\", ошибку, если аргумент другой." + }, + "toboolean_string_arg0": { + "en": "String value to convert.", + "ru": "Строковое значение для преобразования." + }, + "tocolor_string": { + "en": "Converts argument value to color type. Returns color value.", + "ru": "Преобразует значение аргумента в тип цвета. Возвращает значение цвета." + }, + "tocolor_string_arg0": { + "en": "String value to convert.", + "ru": "Строковое значение для преобразования." + }, + "tointeger_boolean": { + "en": "Converts argument value to integer type. Returns 1 if argument is true, 0 if argument is false.", + "ru": "Преобразует значение аргумента в целочисленный тип. Возвращает 1, если аргумент равен true, 0, если аргумент равен false." + }, + "tointeger_boolean_arg0": { + "en": "Boolean value to convert.", + "ru": "Логическое значение для преобразования." + }, + "tointeger_number": { + "en": "Converts argument value to integer type. Rounds number value down. Returns integer value.", + "ru": "Преобразует значение аргумента в целочисленный тип. Округляет числовое значение вниз. Возвращает целочисленное значение." + }, + "tointeger_number_arg0": { + "en": "Number value to convert.", + "ru": "Числовое значение для преобразования." + }, + "tointeger_string": { + "en": "Converts argument value to integer type. Returns integer value.", + "ru": "Преобразует значение аргумента в целочисленный тип. Возвращает целочисленное значение." + }, + "tointeger_string_arg0": { + "en": "String value to convert.", + "ru": "Строковое значение для преобразования." + }, + "tonumber_integer": { + "en": "Converts argument value to number type. Returns number value.", + "ru": "Преобразует значение аргумента в числовой тип. Возвращает числовое значение." + }, + "tonumber_integer_arg0": { + "en": "Integer value to convert.", + "ru": "Целочисленное значение для преобразования." + }, + "tonumber_string": { + "en": "Converts argument value to number type. Returns number value.", + "ru": "Преобразует значение аргумента в числовой тип. Возвращает числовое значение." + }, + "tonumber_string_arg0": { + "en": "String value to convert.", + "ru": "Строковое значение для преобразования." + }, + "tourl_string": { + "en": "Converts argument value to url type. Returns url value.", + "ru": "Преобразует значение аргумента в тип URL. Возвращает значение URL." + }, + "tourl_string_arg0": { + "en": "String value to convert.", + "ru": "Строковое значение для преобразования." + }, + "contains_string_string": { + "en": "Gets if second string argument contains in first string argument. Returns boolean value.", + "ru": "Проверяет, содержится ли второй строковый аргумент в первом строковом аргументе. Возвращает логическое значение." + }, + "contains_string_string_arg0": { + "en": "String value to find substring.", + "ru": "Строковое значение для поиска подстроки." + }, + "contains_string_string_arg1": { + "en": "String value substring to find.", + "ru": "Строковое значение подстроки для поиска." + }, + "decodeuri_string": { + "en": "Decodes a application/x-www-form-urlencoded string using a specific encoding scheme. Returns string value, decoded string.", + "ru": "Декодирует строку application/x-www-form-urlencoded с использованием определенной схемы кодирования. Возвращает строковое значение, декодированную строку." + }, + "decodeuri_string_arg0": { + "en": "String value to decode.", + "ru": "Строковое значение для декодирования." + }, + "encoderegex_string": { + "en": "Encodes a string for safe use in regular expressions.", + "ru": "Кодирует строку для безопасного использования в регулярных выражениях." + }, + "encoderegex_string_arg0": { + "en": "A string to encode.", + "ru": "Строка для кодирования." + }, + "encodeuri_string": { + "en": "Translates a string into application/x-www-form-urlencoded format using a specific encoding scheme. Returns string value, encoded string.", + "ru": "Преобразует строку в формат application/x-www-form-urlencoded с использованием определенной схемы кодирования. Возвращает строковое значение, закодированную строку." + }, + "encodeuri_string_arg0": { + "en": "String value to translate.", + "ru": "Строковое значение для перевода." + }, + "index_string_string": { + "en": "Gets first index of second argument in first argument. Returns integer value, index of occurrence or -1 if substring is not found.", + "ru": "Получает первый индекс второго аргумента в первом аргументе. Возвращает целочисленное значение, индекс вхождения или -1, если подстрока не найдена." + }, + "index_string_string_arg0": { + "en": "String value, original string.", + "ru": "Строковое значение, исходная строка." + }, + "index_string_string_arg1": { + "en": "String value, string to find.", + "ru": "Строковое значение, строка для поиска." + }, + "lastindex_string_string": { + "en": "Gets last index of second argument in first argument. Returns integer value, index of occurrence or -1 if substring is not found.", + "ru": "Получает последний индекс второго аргумента в первом аргументе. Возвращает целочисленное значение, индекс вхождения или -1, если подстрока не найдена." + }, + "lastindex_string_string_arg0": { + "en": "String value, original string.", + "ru": "Строковое значение, исходная строка." + }, + "lastindex_string_string_arg1": { + "en": "String value, string to find.", + "ru": "Строковое значение, строка для поиска." + }, + "len_string": { + "en": "Gets the length of string argument. Returns integer value.", + "ru": "Получает длину строкового аргумента. Возвращает целочисленное значение." + }, + "len_string_arg0": { + "en": "String value to get length of.", + "ru": "Строковое значение для получения длины." + }, + "padend_integer_integer_string": { + "en": "Converts given integer to a string and pads it to a given string length, inserting at end", + "ru": "Преобразует данное целое число в строку и дополняет ее до заданной длины строки, вставляя в конец" + }, + "padend_integer_integer_string_arg0": { + "en": "Integer value to pad.", + "ru": "Целочисленное значение для дополнения." + }, + "padend_integer_integer_string_arg1": { + "en": "String length", + "ru": "Длина строки" + }, + "padend_integer_integer_string_arg2": { + "en": "String character to pad with", + "ru": "Строковый символ для дополнения" + }, + "padend_string_integer_string": { + "en": "Pads a string to a given string length, inserting at end", + "ru": "Дополняет строку до заданной длины строки, вставляя в конец" + }, + "padend_string_integer_string_arg0": { + "en": "String value to pad.", + "ru": "Строковое значение для дополнения." + }, + "padend_string_integer_string_arg1": { + "en": "String length", + "ru": "Длина строки" + }, + "padend_string_integer_string_arg2": { + "en": "String character to pad with", + "ru": "Строковый символ для дополнения" + }, + "padstart_integer_integer_string": { + "en": "Converts given integer to a string and pads it to a given string length, inserting at start", + "ru": "Преобразует данное целое число в строку и дополняет ее до заданной длины строки, вставляя в начало" + }, + "padstart_integer_integer_string_arg0": { + "en": "Integer value to pad.", + "ru": "Целочисленное значение для дополнения." + }, + "padstart_integer_integer_string_arg1": { + "en": "String length", + "ru": "Длина строки" + }, + "padstart_integer_integer_string_arg2": { + "en": "String character to pad with", + "ru": "Строковый символ для дополнения" + }, + "padstart_string_integer_string": { + "en": "Pads a string to a given string length, inserting at start", + "ru": "Дополняет строку до заданной длины строки, вставляя в начало" + }, + "padstart_string_integer_string_arg0": { + "en": "String value to pad.", + "ru": "Строковое значение для дополнения." + }, + "padstart_string_integer_string_arg1": { + "en": "String length", + "ru": "Длина строки" + }, + "padstart_string_integer_string_arg2": { + "en": "String character to pad with", + "ru": "Строковый символ для дополнения" + }, + "replaceall_string_string_string": { + "en": "Replaces all occurrences of the second argument in the first argument with the third argument. Returns string value of replaced string.", + "ru": "Заменяет все вхождения второго аргумента в первом аргументе на третий аргумент. Возвращает строковое значение замененной строки." + }, + "replaceall_string_string_string_arg0": { + "en": "String value, original string.", + "ru": "Строковое значение, исходная строка." + }, + "replaceall_string_string_string_arg1": { + "en": "String value, string to find.", + "ru": "Строковое значение, строка для поиска." + }, + "replaceall_string_string_string_arg2": { + "en": "String value, string to replace.", + "ru": "Строковое значение, строка для замены." + }, + "substring_string_integer_integer": { + "en": "Gets substring of first argument in range of last arguments. Returns string value.", + "ru": "Получает подстроку первого аргумента в диапазоне последних аргументов. Возвращает строковое значение." + }, + "substring_string_integer_integer_arg0": { + "en": "String value to get substring from.", + "ru": "Строковое значение для получения подстроки." + }, + "substring_string_integer_integer_arg1": { + "en": "Integer value, left index of substring.", + "ru": "Целочисленное значение, левый индекс подстроки." + }, + "substring_string_integer_integer_arg2": { + "en": "Integer value, right index of substring.", + "ru": "Целочисленное значение, правый индекс подстроки." + }, + "testregex_string_string": { + "en": "Checks whether the string matches the regular expression.", + "ru": "Проверяет, соответствует ли строка регулярному выражению." + }, + "testregex_string_string_arg0": { + "en": "A string to test.", + "ru": "Строка для проверки." + }, + "testregex_string_string_arg1": { + "en": "Regex string.", + "ru": "Строка регулярного выражения." + }, + "tolowercase_string": { + "en": "Returns converted to lower case string.", + "ru": "Возвращает строку, преобразованную в нижний регистр." + }, + "tolowercase_string_arg0": { + "en": "String value to transform.", + "ru": "Строковое значение для преобразования." + }, + "touppercase_string": { + "en": "Returns converted to upper case string.", + "ru": "Возвращает строку, преобразованную в верхний регистр." + }, + "touppercase_string_arg0": { + "en": "String value to transform.", + "ru": "Строковое значение для преобразования." + }, + "trim_string": { + "en": "Returns a string having leading and trailing whitespace removed.", + "ru": "Возвращает строку с удаленными начальными и конечными пробелами." + }, + "trim_string_arg0": { + "en": "String value to trim.", + "ru": "Строковое значение для обрезки." + }, + "trimleft_string": { + "en": "Returns a string having leading whitespace removed.", + "ru": "Возвращает строку с удаленными начальными пробелами." + }, + "trimleft_string_arg0": { + "en": "String value to trim.", + "ru": "Строковое значение для обрезки." + }, + "trimright_string": { + "en": "Returns a string having trailing whitespace removed.", + "ru": "Возвращает строку с удаленными конечными пробелами." + }, + "trimright_string_arg0": { + "en": "String value to trim.", + "ru": "Строковое значение для обрезки." + }, + "tostring_array": { + "en": "Returns a string representation of given value.", + "ru": "Возвращает строковое представление заданного значения." + }, + "tostring_array_arg0": { + "en": "Array value.", + "ru": "Значение массива." + }, + "tostring_boolean": { + "en": "Returns a string representation of given value.", + "ru": "Возвращает строковое представление заданного значения." + }, + "tostring_boolean_arg0": { + "en": "Boolean value.", + "ru": "Логическое значение." + }, + "tostring_color": { + "en": "Returns a string representation of given value.", + "ru": "Возвращает строковое представление заданного значения." + }, + "tostring_color_arg0": { + "en": "Color value.", + "ru": "Значение цвета." + }, + "tostring_dict": { + "en": "Returns a string representation of given value.", + "ru": "Возвращает строковое представление заданного значения." + }, + "tostring_dict_arg0": { + "en": "Dictionary value.", + "ru": "Значение словаря." + }, + "tostring_integer": { + "en": "Returns a string representation of given value.", + "ru": "Возвращает строковое представление заданного значения." + }, + "tostring_integer_arg0": { + "en": "Integer Value.", + "ru": "Целочисленное значение." + }, + "tostring_number": { + "en": "Returns a string representation of given value.", + "ru": "Возвращает строковое представление заданного значения." + }, + "tostring_number_arg0": { + "en": "Number value.", + "ru": "Числовое значение." + }, + "tostring_string": { + "en": "Returns a string representation of given value.", + "ru": "Возвращает строковое представление заданного значения." + }, + "tostring_string_arg0": { + "en": "String value.", + "ru": "Строковое значение." + }, + "tostring_url": { + "en": "Returns a string representation of given value.", + "ru": "Возвращает строковое представление заданного значения." + }, + "tostring_url_arg0": { + "en": "Url value.", + "ru": "Значение URL." + }, + "acos_number": { + "en": "Calculates the angle in radians of the given cosine value", + "ru": "Вычисляет угол в радианах для заданного значения косинуса" + }, + "acos_number_arg0": { + "en": "Cosine value.", + "ru": "Значение косинуса." + }, + "asin_number": { + "en": "Calculates the angle in radians of the given sine value", + "ru": "Вычисляет угол в радианах для заданного значения синуса" + }, + "asin_number_arg0": { + "en": "Sine value.", + "ru": "Значение синуса." + }, + "atan2_number_number": { + "en": "Calculates the angle in radians for given values (y,x)", + "ru": "Вычисляет угол в радианах для заданных значений (y,x)" + }, + "atan2_number_number_arg0": { + "en": "Y coordinate of the point", + "ru": "Y-координата точки" + }, + "atan2_number_number_arg1": { + "en": "X coordinate of the point", + "ru": "X-координата точки" + }, + "atan_number": { + "en": "Calculates the angle in radians for a given tangent value", + "ru": "Вычисляет угол в радианах для заданного значения тангенса" + }, + "atan_number_arg0": { + "en": "Tangent value.", + "ru": "Значение тангенса." + }, + "cos_number": { + "en": "Calculates the cosine of the given angle in radians", + "ru": "Вычисляет косинус заданного угла в радианах" + }, + "cos_number_arg0": { + "en": "Angle in radians.", + "ru": "Угол в радианах." + }, + "cot_number": { + "en": "Calculates the cotangent of the given angle in radians", + "ru": "Вычисляет котангенс заданного угла в радианах" + }, + "cot_number_arg0": { + "en": "Angle in radians.", + "ru": "Угол в радианах." + }, + "pi": { + "en": "Returns value of the `π`: ratio of the circumference of a circle to its diameter", + "ru": "Возвращает значение `π`: отношение длины окружности к ее диаметру" + }, + "sin_number": { + "en": "Calculates the sine of the given angle in radians", + "ru": "Вычисляет синус заданного угла в радианах" + }, + "sin_number_arg0": { + "en": "Angle in radians.", + "ru": "Угол в радианах." + }, + "tan_number": { + "en": "Calculates the tangent of the given angle in radians", + "ru": "Вычисляет тангенс заданного угла в радианах" + }, + "tan_number_arg0": { + "en": "Angle in radians.", + "ru": "Угол в радианах." + }, + "todegrees_number": { + "en": "Converts the argument value from radians to degrees", + "ru": "Преобразует значение аргумента из радиан в градусы" + }, + "todegrees_number_arg0": { + "en": "Number value representing radians.", + "ru": "Числовое значение, представляющее радианы." + }, + "toradians_number": { + "en": "Converts the argument value from degrees to radians", + "ru": "Преобразует значение аргумента из градусов в радианы" + }, + "toradians_number_arg0": { + "en": "Number value representing degrees.", + "ru": "Числовое значение, представляющее градусы." + }, + "filter_array_function": { + "en": "Returns filtered array by calling boolean function to each element of array.", + "ru": "Возвращает отфильтрованный массив, вызывая логическую функцию для каждого элемента массива." + }, + "filter_array_function_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "filter_array_function_arg1": { + "en": "Accepts each element of array, returns bool.", + "ru": "Принимает каждый элемент массива, возвращает логическое значение." + }, + "getarray_array_integer": { + "en": "Returns an array value from array by position.", + "ru": "Возвращает значение массива из массива по позиции." + }, + "getarray_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getarray_array_integer_arg1": { + "en": "Position in array.", + "ru": "Позиция в массиве." + }, + "getboolean_array_integer": { + "en": "Returns a boolean value from array by position.", + "ru": "Возвращает логическое значение из массива по позиции." + }, + "getboolean_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getboolean_array_integer_arg1": { + "en": "Position in array.", + "ru": "Позиция в массиве." + }, + "getcolor_array_integer": { + "en": "Returns a color value from array by position.", + "ru": "Возвращает значение цвета из массива по позиции." + }, + "getcolor_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getcolor_array_integer_arg1": { + "en": "Position in array.", + "ru": "Позиция в массиве." + }, + "getdict_array_integer": { + "en": "Returns a dict value from array by position.", + "ru": "Возвращает значение словаря из массива по позиции." + }, + "getdict_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getdict_array_integer_arg1": { + "en": "Position in array.", + "ru": "Позиция в массиве." + }, + "getinteger_array_integer": { + "en": "Returns an integer value from array by position.", + "ru": "Возвращает целочисленное значение из массива по позиции." + }, + "getinteger_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getinteger_array_integer_arg1": { + "en": "Position in array.", + "ru": "Позиция в массиве." + }, + "getnumber_array_integer": { + "en": "Returns a number value from array by position.", + "ru": "Возвращает числовое значение из массива по позиции." + }, + "getnumber_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getnumber_array_integer_arg1": { + "en": "Position in array.", + "ru": "Позиция в массиве." + }, + "getstring_array_integer": { + "en": "Returns a string value from array by position.", + "ru": "Возвращает строковое значение из массива по позиции." + }, + "getstring_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "getstring_array_integer_arg1": { + "en": "Position in array.", + "ru": "Позиция в массиве." + }, + "geturl_array_integer": { + "en": "Returns a url value from array by position.", + "ru": "Возвращает значение URL из массива по позиции." + }, + "geturl_array_integer_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "geturl_array_integer_arg1": { + "en": "Position in array.", + "ru": "Позиция в массиве." + }, + "isempty_array": { + "en": "The method returns boolean true if array is empty else false.", + "ru": "Метод возвращает логическое значение true, если массив пуст, иначе false." + }, + "isempty_array_arg0": { + "en": "Array.", + "ru": "Массив." + }, + "containskey_dict_string": { + "en": "Returns true if the given key is present in the dictionary.", + "ru": "Возвращает true, если данный ключ присутствует в словаре." + }, + "containskey_dict_string_arg0": { + "en": "Dict.", + "ru": "Словарь." + }, + "containskey_dict_string_arg1": { + "en": "Key in dictionary.", + "ru": "Ключ в словаре." + }, + "getarray_dict_string": { + "en": "Returns an array value from dict by key.", + "ru": "Возвращает значение массива из словаря по ключу." + }, + "getarray_dict_string_arg0": { + "en": "Dict.", + "ru": "Словарь." + }, + "getarray_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getboolean_dict_string": { + "en": "Returns a boolean value from dict by key.", + "ru": "Возвращает логическое значение из словаря по ключу." + }, + "getboolean_dict_string_arg0": { + "en": "Dict.", + "ru": "Словарь." + }, + "getboolean_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getcolor_dict_string": { + "en": "Returns a color value from dict by key.", + "ru": "Возвращает значение цвета из словаря по ключу." + }, + "getcolor_dict_string_arg0": { + "en": "Dict.", + "ru": "Словарь." + }, + "getcolor_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getdict_dict_string": { + "en": "Returns a dict value from dict by key.", + "ru": "Возвращает значение словаря из словаря по ключу." + }, + "getdict_dict_string_arg0": { + "en": "Dict.", + "ru": "Словарь." + }, + "getdict_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getinteger_dict_string": { + "en": "Returns an integer value from dict by key.", + "ru": "Возвращает целочисленное значение из словаря по ключу." + }, + "getinteger_dict_string_arg0": { + "en": "Dict.", + "ru": "Словарь." + }, + "getinteger_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getkeys_dict": { + "en": "Return a collection containing just the keys of the dictionary.", + "ru": "Возвращает коллекцию, содержащую только ключи словаря." + }, + "getkeys_dict_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "getnumber_dict_string": { + "en": "Returns a number value from dict by key.", + "ru": "Возвращает числовое значение из словаря по ключу." + }, + "getnumber_dict_string_arg0": { + "en": "Dict.", + "ru": "Словарь." + }, + "getnumber_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getstring_dict_string": { + "en": "Returns a string value from dict by key.", + "ru": "Возвращает строковое значение из словаря по ключу." + }, + "getstring_dict_string_arg0": { + "en": "Dict.", + "ru": "Словарь." + }, + "getstring_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "geturl_dict_string": { + "en": "Returns a url value from dict by key.", + "ru": "Возвращает значение URL из словаря по ключу." + }, + "geturl_dict_string_arg0": { + "en": "Dict.", + "ru": "Словарь." + }, + "geturl_dict_string_arg1": { + "en": "Path in dictionary.", + "ru": "Путь в словаре." + }, + "getvalues_dict": { + "en": "Return a collection containing just the values of the dictionary.", + "ru": "Возвращает коллекцию, содержащую только значения словаря." + }, + "getvalues_dict_arg0": { + "en": "Dictionary.", + "ru": "Словарь." + }, + "isempty_dict": { + "en": "The method returns boolean true if dict is empty else false.", + "ru": "Метод возвращает логическое значение true, если словарь пуст, иначе false." + }, + "isempty_dict_arg0": { + "en": "Dict.", + "ru": "Словарь." + } +} diff --git a/json-builder/kotlin/expression-dsl-generator/build.gradle.kts b/json-builder/kotlin/expression-dsl-generator/build.gradle.kts index 585bccac1..4c918e5ab 100644 --- a/json-builder/kotlin/expression-dsl-generator/build.gradle.kts +++ b/json-builder/kotlin/expression-dsl-generator/build.gradle.kts @@ -11,6 +11,14 @@ application { mainClass.set("divkit.dsl.expression.generator.Main") } +sourceSets { + main { + resources { + srcDirs("$rootDir/../../../expression-api") + } + } +} + dependencies { implementation(libs.kotlin.stdlib) diff --git a/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitCodegen.kt b/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitCodegen.kt index be8b247d6..1c839b84d 100644 --- a/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitCodegen.kt +++ b/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitCodegen.kt @@ -45,7 +45,8 @@ class DivkitCodegen { packageName: String, ) { // Package of kotlin file. - writer.appendLine("// GENERATED BY junk/arychagov/divkit-expressions-generator") + writer.appendLine("// GENERATED BY divkit/public/json-builder/kotlin/expression-dsl-generator") + writer.appendLine() writer.appendLine("@file:Suppress(\"ktlint\", \"UNUSED_PARAMETER\", \"unused\")") writer.appendLine() writer.appendLine("package $packageName") @@ -57,7 +58,7 @@ class DivkitCodegen { signature: CodegenSignature, ) { require(signature.arguments.size == 1) - val name = signature.functionName + val name = signature.name if (name in reservedNames) { return } @@ -66,7 +67,7 @@ class DivkitCodegen { writer.appendLine() val jvmName = StringBuilder().apply { append("extension_") - append(signature.functionName) + append(signature.name) signature.arguments.forEach { argument -> append(argument.type.resolveKotlinBasicType()) } @@ -86,27 +87,27 @@ class DivkitCodegen { writeSignatureDocumentation(writer, signature) writer.appendLine() val jvmName = StringBuilder().apply { - append(signature.functionName) + append(signature.name) signature.arguments.forEach { argument -> append(argument.type.resolveKotlinBasicType()) } }.toString() writer.appendLine("@JvmName(\"$jvmName\")") - writer.appendLine("fun ${signature.functionName}(") + writer.appendLine("fun ${signature.name}(") signature.arguments.forEachIndexed { index, codegenArgument -> val argumentType = codegenArgument.type.resolveKotlinArgumentType() - if (codegenArgument.vararg) { + if (codegenArgument.isVararg) { writer.appendLine(" vararg varargs: Expression<$argumentType>,") } else { writer.appendLine(" param$index: Expression<$argumentType>,") } } - val returnType = signature.resultType.resolveKotlinType() + val returnType = signature.returnType.resolveKotlinType() writer.appendLine("): Expression<$returnType> =") writer.appendLine(" FunctionExpression(") - writer.appendLine(" \"${signature.functionName}\",") + writer.appendLine(" \"${signature.name}\",") signature.arguments.forEachIndexed { index, codegenArgument -> - if (codegenArgument.vararg) { + if (codegenArgument.isVararg) { writer.appendLine(" *varargs,") } else { writer.appendLine(" param$index,") @@ -126,19 +127,19 @@ class DivkitCodegen { extension: Boolean = false, ) { writer.appendLine("/**") - writer.appendLine(" * ${signature.doc}") + writer.appendLine(" * ${signature.description}") writer.appendLine(" *") signature.arguments.forEachIndexed { index, argument -> if (extension) { writer.append(" * @receiver ") } else { - if (argument.vararg) { + if (argument.isVararg) { writer.append(" * @param varargs ") } else { writer.append(" * @param param${index} ") } } - writer.append(argument.doc) + writer.append(argument.description) writer.appendLine() } writer.appendLine(" * @return function expression") @@ -147,5 +148,5 @@ class DivkitCodegen { } private fun CodegenSignature.supportsExtension(): Boolean { - return arguments.size == 1 && !arguments[0].vararg + return arguments.size == 1 && !arguments[0].isVararg } diff --git a/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitCodegenSignatures.kt b/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitCodegenSignatures.kt index 9c5ed57b5..b3a7afaf9 100644 --- a/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitCodegenSignatures.kt +++ b/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitCodegenSignatures.kt @@ -3,10 +3,11 @@ package divkit.dsl.expression.generator import divkit.dsl.expression.generator.model.Type data class CodegenSignature( - val functionName: String, - val doc: String, + val name: String, + val description: String, val arguments: List, - val resultType: Type, + val returnType: Type, + val isMethod: Boolean, ) { override fun equals(other: Any?): Boolean { if (this === other) return true @@ -14,29 +15,29 @@ data class CodegenSignature( other as CodegenSignature - if (functionName != other.functionName) return false + if (name != other.name) return false if (arguments.size != other.arguments.size) return false arguments.indices.forEach {index -> if (arguments[index] != other.arguments[index]) return false } if (arguments != other.arguments) return false - if (resultType.resolveKotlinType() != other.resultType.resolveKotlinType()) return false + if (returnType.resolveKotlinType() != other.returnType.resolveKotlinType()) return false return true } override fun hashCode(): Int { - var result = functionName.hashCode() + var result = name.hashCode() result = 31 * result + arguments.hashCode() - result = 31 * result + resultType.resolveKotlinType().hashCode() + result = 31 * result + returnType.resolveKotlinType().hashCode() return result } } data class CodegenArgument( val type: Type, - val doc: String, - val vararg: Boolean, + val description: String, + val isVararg: Boolean, ) { override fun equals(other: Any?): Boolean { if (this === other) return true @@ -44,7 +45,7 @@ data class CodegenArgument( other as CodegenArgument - if (vararg != other.vararg) return false + if (isVararg != other.isVararg) return false if (type.resolveKotlinArgumentType() != type.resolveKotlinArgumentType()) return false return true @@ -52,7 +53,7 @@ data class CodegenArgument( override fun hashCode(): Int { var result = type.resolveKotlinArgumentType().hashCode() - result = 31 * result + vararg.hashCode() + result = 31 * result + isVararg.hashCode() return result } } diff --git a/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitFunctionsGenerator.kt b/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitFunctionsGenerator.kt index 23274fa22..c24880df7 100644 --- a/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitFunctionsGenerator.kt +++ b/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitFunctionsGenerator.kt @@ -35,7 +35,7 @@ class DivkitFunctionsGenerator( val duplicates = signatures.groupingBy { it }.eachCount().filter { it.value > 1 } if (duplicates.isNotEmpty()) { val fullSignatures = duplicates.keys.joinToString { signature -> - (signature.functionName + "(" + signature.arguments.joinToString(",") { argument -> + (signature.name + "(" + signature.arguments.joinToString(",") { argument -> argument.type.serializedName } + ")\n") } diff --git a/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitSignaturesFilesCollector.kt b/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitSignaturesFilesCollector.kt index 5f013840a..61221da49 100644 --- a/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitSignaturesFilesCollector.kt +++ b/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitSignaturesFilesCollector.kt @@ -17,8 +17,8 @@ class DivkitSignaturesFilesCollector { private val objectMapper = ObjectMapper() init { - val resource = javaClass.getResource("/functions_json_schema.json") - ?: throw IllegalStateException("Absent functions_json_schema.json!") + val resource = javaClass.getResource("/schema.json") + ?: throw IllegalStateException("Absent schema.json!") val jsonSchema = objectMapper.readTree(resource) val jsonSchemaFactory = JsonSchemaFactory.getInstance(SpecVersion.VersionFlag.V7) schema = jsonSchemaFactory.getSchema(jsonSchema) diff --git a/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitSignaturesPreprocessor.kt b/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitSignaturesPreprocessor.kt index e74a67502..a02989577 100644 --- a/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitSignaturesPreprocessor.kt +++ b/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/DivkitSignaturesPreprocessor.kt @@ -7,10 +7,11 @@ class DivkitSignaturesPreprocessor { fun toCodegenSignatures(signatures: List): List { return signatures.map { signature -> CodegenSignature( - functionName = signature.functionName, - doc = signature.doc ?: "No documentation", + name = signature.name, + description = signature.description ?: "No documentation", arguments = signature.arguments.map { it.toCodegenArgument() }, - resultType = signature.resultType, + returnType = signature.returnType, + isMethod = signature.isMethod ) }.toSet().toList() } @@ -19,7 +20,7 @@ class DivkitSignaturesPreprocessor { private fun Argument.toCodegenArgument(): CodegenArgument { return CodegenArgument( type = type, - doc = doc ?: "no documentation", - vararg = vararg, + description = description ?: "no documentation", + isVararg = isVararg, ) } diff --git a/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/model/Models.kt b/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/model/Models.kt index b13a87b52..96328a307 100644 --- a/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/model/Models.kt +++ b/json-builder/kotlin/expression-dsl-generator/src/main/kotlin/divkit/dsl/expression/generator/model/Models.kt @@ -2,7 +2,9 @@ package divkit.dsl.expression.generator.model import com.fasterxml.jackson.annotation.JsonCreator import com.fasterxml.jackson.annotation.JsonProperty +import com.fasterxml.jackson.annotation.JsonSetter import com.fasterxml.jackson.annotation.JsonValue +import com.fasterxml.jackson.annotation.Nulls data class Signatures( @param:JsonProperty("signatures") @@ -11,20 +13,19 @@ data class Signatures( data class Signature( @param:JsonProperty("name") - val name: String?, - @param:JsonProperty("function_name") - val functionName: String, - @param:JsonProperty("doc") - val doc: String?, + val name: String, + @param:JsonProperty("description") + val description: String?, @param:JsonProperty("arguments") - val argumentsRaw: List?, - @param:JsonProperty("result_type") - val resultType: Type, + @JsonSetter(nulls = Nulls.AS_EMPTY) + val arguments: List = emptyList(), + @param:JsonProperty("return_type") + val returnType: Type, + @param:JsonProperty("is_method", defaultValue = "false") + val isMethod: Boolean, @param:JsonProperty("platforms") val platforms: List, ) { - val arguments: List - get() = argumentsRaw ?: emptyList() override fun equals(other: Any?): Boolean { if (this === other) return true @@ -32,15 +33,19 @@ data class Signature( other as Signature - if (functionName != other.functionName) return false - if (argumentsRaw != other.argumentsRaw) return false + if (name != other.name) return false + if (arguments != other.arguments) return false + if (returnType != other.returnType) return false + if (isMethod != other.isMethod) return false return true } override fun hashCode(): Int { - var result = functionName.hashCode() - result = 31 * result + argumentsRaw.hashCode() + var result = name.hashCode() + result = 31 * result + arguments.hashCode() + result = 31 * result + returnType.hashCode() + result = 31 * result + isMethod.hashCode() return result } } @@ -48,11 +53,30 @@ data class Signature( data class Argument( @param:JsonProperty("type") val type: Type, - @param:JsonProperty("doc") - val doc: String?, - @param:JsonProperty("vararg", defaultValue = "false") - val vararg: Boolean, -) + @param:JsonProperty("description") + val description: String?, + @param:JsonProperty("is_vararg", defaultValue = "false") + val isVararg: Boolean, +) { + + override fun equals(other: Any?): Boolean { + if (this === other) return true + if (javaClass != other?.javaClass) return false + + other as Argument + + if (type != other.type) return false + if (isVararg != other.isVararg) return false + + return true + } + + override fun hashCode(): Int { + var result = type.hashCode() + result = 31 * result + isVararg.hashCode() + return result + } +} enum class Type( @JsonValue diff --git a/test_data/expression_test_data/function_signatures_array.json b/test_data/expression_test_data/function_signatures_array.json deleted file mode 100644 index f529f5f4b..000000000 --- a/test_data/expression_test_data/function_signatures_array.json +++ /dev/null @@ -1,757 +0,0 @@ -{ - "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" - ] - } - ] -} diff --git a/test_data/expression_test_data/function_signatures_color.json b/test_data/expression_test_data/function_signatures_color.json deleted file mode 100644 index 11e42a86c..000000000 --- a/test_data/expression_test_data/function_signatures_color.json +++ /dev/null @@ -1,356 +0,0 @@ -{ - "signatures": [ - { - "function_name": "getColorAlpha", - "doc": "Gets alpha value of argument color. Returns number value in range 0.0 to 1.0 of alpha value of color.", - "arguments": [ - { - "type": "string", - "doc": "String value of color in hex format." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getColorAlpha", - "doc": "Gets alpha value of argument color. Returns number value in range 0.0 to 1.0 of alpha value of color.", - "arguments": [ - { - "type": "color", - "doc": "Color" - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getColorRed", - "doc": "Gets red value of argument color. Returns number value in range 0.0 to 1.0 of red value of color.", - "arguments": [ - { - "type": "string", - "doc": "String value of color in hex format." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getColorRed", - "doc": "Gets red value of argument color. Returns number value in range 0.0 to 1.0 of red value of color.", - "arguments": [ - { - "type": "color", - "doc": "Color" - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getColorGreen", - "doc": "Gets green value of argument color. Returns number value in range 0.0 to 1.0 of green value of color.", - "arguments": [ - { - "type": "string", - "doc": "String value of color in hex format." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getColorGreen", - "doc": "Gets green value of argument color. Returns number value in range 0.0 to 1.0 of green value of color.", - "arguments": [ - { - "type": "color", - "doc": "Color." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getColorBlue", - "doc": "Gets blue value of argument color. Returns number value in range 0.0 to 1.0 of blue value of color.", - "arguments": [ - { - "type": "string", - "doc": "String value of color in hex format." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getColorBlue", - "doc": "Gets blue value of argument color. Returns number value in range 0.0 to 1.0 of blue value of color.", - "arguments": [ - { - "type": "color", - "doc": "Color." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "setColorAlpha", - "doc": "Sets alpha value of argument color. Returns string value of color in hex format '#FFAABBCC'.", - "arguments": [ - { - "type": "string", - "doc": "String value of color in hex format." - }, - { - "type": "number", - "doc": "Number value of alpha in range 0.0 to 1.0." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web" - ] - }, - { - "function_name": "setColorAlpha", - "doc": "Sets alpha value of argument color. Returns color.", - "arguments": [ - { - "type": "color", - "doc": "Color." - }, - { - "type": "number", - "doc": "Number value of alpha in range 0.0 to 1.0." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "setColorRed", - "doc": "Sets red value of argument color. Returns string value of color in hex format '#FFAABBCC'.", - "arguments": [ - { - "type": "string", - "doc": "String value of color in hex format." - }, - { - "type": "number", - "doc": "Number value of red in range 0.0 to 1.0." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web" - ] - }, - { - "function_name": "setColorRed", - "doc": "Sets red value of argument color. Returns color.", - "arguments": [ - { - "type": "color", - "doc": "Color." - }, - { - "type": "number", - "doc": "Number value of red in range 0.0 to 1.0." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "setColorGreen", - "doc": "Sets green value of argument color. Returns string value of color in hex format '#FFAABBCC'.", - "arguments": [ - { - "type": "string", - "doc": "String value of color in hex format." - }, - { - "type": "number", - "doc": "Number value of green in range 0.0 to 1.0." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web" - ] - }, - { - "function_name": "setColorGreen", - "doc": "Sets green value of argument color. Returns Color.", - "arguments": [ - { - "type": "color", - "doc": "Color." - }, - { - "type": "number", - "doc": "Number value of green in range 0.0 to 1.0." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "setColorBlue", - "doc": "Sets blue value of argument color. Returns string value of color in hex format '#FFAABBCC'.", - "arguments": [ - { - "type": "string", - "doc": "String value of color in hex format." - }, - { - "type": "number", - "doc": "Number value of blue in range 0.0 to 1.0." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web" - ] - }, - { - "function_name": "setColorBlue", - "doc": "Sets blue value of argument color. Returns Color.", - "arguments": [ - { - "type": "color", - "doc": "Color." - }, - { - "type": "number", - "doc": "Number value of blue in range 0.0 to 1.0." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "argb", - "doc": "Creates color from values of alpha, red, green, blue values. Returns string value of color in hex format '#FFAABBCC'.", - "arguments": [ - { - "type": "number", - "doc": "Number value of alpha in range 0.0 to 1.0." - }, - { - "type": "number", - "doc": "Number value of red in range 0.0 to 1.0." - }, - { - "type": "number", - "doc": "Number value of green in range 0.0 to 1.0." - }, - { - "type": "number", - "doc": "Number value of blue in range 0.0 to 1.0." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web" - ] - }, - { - "function_name": "rgb", - "doc": "Creates color from values of red, green, blue values. Sets alpha value as 1.0. Returns color value of color in hex format '#FFAABBCC'.", - "arguments": [ - { - "type": "number", - "doc": "Number value of red in range 0.0 to 1.0." - }, - { - "type": "number", - "doc": "Number value of green in range 0.0 to 1.0." - }, - { - "type": "number", - "doc": "Number value of blue in range 0.0 to 1.0." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web" - ] - } - ] -} diff --git a/test_data/expression_test_data/function_signatures_datetime.json b/test_data/expression_test_data/function_signatures_datetime.json deleted file mode 100644 index 609fb436b..000000000 --- a/test_data/expression_test_data/function_signatures_datetime.json +++ /dev/null @@ -1,446 +0,0 @@ -{ - "signatures": [ - { - "function_name": "parseUnixTime", - "doc": "Creates datetime from integer value of unix time. Returns datetime value.", - "arguments": [ - { - "type": "integer", - "doc": "Time in UTC seconds from the epoch." - } - ], - "result_type": "datetime", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "parseUnixTimeAsLocal", - "doc": "Creates datetime in local timezone from integer value of unix time. Returns datetime value.", - "arguments": [ - { - "type": "integer", - "doc": "Time in local time zone seconds from the epoch." - } - ], - "result_type": "datetime", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "nowLocal", - "doc": "Creates datetime from time of now. Returns datetime value.", - "arguments": [], - "result_type": "datetime", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "addMillis", - "doc": "Adds milliseconds to original date. Returns datetime with added time in milliseconds.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to add milliseconds." - }, - { - "type": "integer", - "doc": "Integer value, count of milliseconds to add." - } - ], - "result_type": "datetime", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "setYear", - "doc": "Sets year number to original date. Returns datetime with year set.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to set year." - }, - { - "type": "integer", - "doc": "Integer value, year to set to date." - } - ], - "result_type": "datetime", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "setMonth", - "doc": "Sets month number to original date. Returns datetime with month set.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to set month." - }, - { - "type": "integer", - "doc": "Integer value, month to set to date. Expected values from 1 to 12." - } - ], - "result_type": "datetime", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "setDay", - "doc": "Sets day of month number to original date. Returns datetime with day of month set.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to set day of month." - }, - { - "type": "integer", - "doc": "Integer value, day of month to set to date." - } - ], - "result_type": "datetime", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "setHours", - "doc": "Sets hours number to original date. Returns datetime with hours set.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to set hours." - }, - { - "type": "integer", - "doc": "Integer value, hours to set to date." - } - ], - "result_type": "datetime", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "setMinutes", - "doc": "Sets minutes number to original date. Returns datetime with minutes set.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to set minutes." - }, - { - "type": "integer", - "doc": "Integer value, minutes to set to date." - } - ], - "result_type": "datetime", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "setSeconds", - "doc": "Sets seconds number to original date. Returns datetime with seconds set.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to set seconds." - }, - { - "type": "integer", - "doc": "Integer value, seconds to set to date." - } - ], - "result_type": "datetime", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "setMillis", - "doc": "Sets milliseconds number to original date. Returns datetime with milliseconds set.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to set milliseconds." - }, - { - "type": "integer", - "doc": "Integer value, milliseconds to set to date." - } - ], - "result_type": "datetime", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getYear", - "doc": "Returns year number of original date.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to get year." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getMonth", - "doc": "Returns month number of original date.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to get month." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getDay", - "doc": "Returns day of month of original date.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to get day of month." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getDayOfWeek", - "doc": "Returns day of week of original date, where Sunday is 7.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to get day of week." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getHours", - "doc": "Returns hours number of original date.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to get hours." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getMinutes", - "doc": "Returns minutes number of original date.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to get minutes." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getSeconds", - "doc": "Returns seconds number of original date.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to get seconds." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getMillis", - "doc": "Returns milliseconds number of original date.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to get milliseconds." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "formatDateAsLocal", - "doc": "Formatting dates in a local timezone in users locale. Used default locale. Look https://en.wikipedia.org/wiki/ISO_8601 for more. `Z` for timezones not supported.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to get milliseconds." - }, - { - "type": "string", - "doc": "Date and time formats are specified by date and time pattern strings." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "formatDateAsUTC", - "doc": "Formatting dates in a UTC timezone in users locale. Used default locale. Look https://en.wikipedia.org/wiki/ISO_8601 for more. `Z` for timezones not supported.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to get milliseconds." - }, - { - "type": "string", - "doc": "Date and time formats are specified by date and time pattern strings." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "formatDateAsLocalWithLocale", - "doc": "Formatting dates in a local timezone with localization. Look https://en.wikipedia.org/wiki/ISO_8601 for more. `Z` for timezones not supported.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to get milliseconds." - }, - { - "type": "string", - "doc": "Date and time formats are specified by date and time pattern strings." - }, - { - "type": "string", - "doc": "Language for specified date and time pattern strings." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "formatDateAsUTCWithLocale", - "doc": "Formatting dates in a UTC timezone with localization. Look https://en.wikipedia.org/wiki/ISO_8601 for more. `Z` for timezones not supported.", - "arguments": [ - { - "type": "datetime", - "doc": "Datetime value, date to get milliseconds." - }, - { - "type": "string", - "doc": "Date and time formats are specified by date and time pattern strings." - }, - { - "type": "string", - "doc": "Language for specified date and time pattern strings." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - } - ] -} diff --git a/test_data/expression_test_data/function_signatures_dict.json b/test_data/expression_test_data/function_signatures_dict.json deleted file mode 100644 index 53abc7025..000000000 --- a/test_data/expression_test_data/function_signatures_dict.json +++ /dev/null @@ -1,820 +0,0 @@ -{ - "signatures": [ - { - "function_name": "getDictString", - "doc": "Returns a string value from dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getDictNumber", - "doc": "Returns a number value from dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getDictInteger", - "doc": "Returns an integer value from dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getDictBoolean", - "doc": "Returns a boolean property from dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "boolean", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getDictColor", - "doc": "Returns a color property from dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getDictUrl", - "doc": "Returns an url property from dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "url", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getDictOptString", - "doc": "Returns an optional string property from dictionary.", - "arguments": [ - { - "type": "string", - "doc": "Fallback value if property does not exist or a property value is not a string." - }, - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getDictOptNumber", - "doc": "Returns an optional number property from dictionary.", - "arguments": [ - { - "type": "number", - "doc": "Fallback value if property does not exist or a property value is not a number." - }, - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getDictOptInteger", - "doc": "Returns an optional integer property from dictionary.", - "arguments": [ - { - "type": "integer", - "doc": "Fallback value if property does not exist or a property value is not an integer." - }, - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getDictOptBoolean", - "doc": "Returns an optional boolean property from dictionary.", - "arguments": [ - { - "type": "boolean", - "doc": "Fallback value if property does not exist or a property value is not a boolean." - }, - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "boolean", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getDictOptColor", - "doc": "Returns an optional color property from dictionary.", - "arguments": [ - { - "type": "color", - "doc": "Fallback value if property does not exist or a property value is not a color." - }, - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getDictOptColor", - "doc": "Returns an optional color property from dictionary.", - "arguments": [ - { - "type": "string", - "doc": "Fallback value if property does not exist or a property value is not a color." - }, - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getDictOptUrl", - "doc": "Returns an optional url property from dictionary.", - "arguments": [ - { - "type": "url", - "doc": "Fallback value if property does not exist or a property value is not an url." - }, - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "url", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getDictOptUrl", - "doc": "Returns an optional url property from dictionary.", - "arguments": [ - { - "type": "string", - "doc": "Fallback value if property does not exist or a property value is not an url." - }, - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "url", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getStringFromDict", - "doc": "Returns a string value from dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getNumberFromDict", - "doc": "Returns a number value from dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getIntegerFromDict", - "doc": "Returns an integer value from dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getBooleanFromDict", - "doc": "Returns a boolean property from dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "boolean", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getColorFromDict", - "doc": "Returns a color property from dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getUrlFromDict", - "doc": "Returns an url property from dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "url", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getDictFromDict", - "doc": "Returns an dict property from dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "dict", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getArrayFromDict", - "doc": "Returns an array property from dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "array", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getOptStringFromDict", - "doc": "Returns an optional string property from dictionary.", - "arguments": [ - { - "type": "string", - "doc": "Fallback value if property does not exist or a property value is not a string." - }, - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getOptNumberFromDict", - "doc": "Returns an optional number property from dictionary.", - "arguments": [ - { - "type": "number", - "doc": "Fallback value if property does not exist or a property value is not a number." - }, - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getOptIntegerFromDict", - "doc": "Returns an optional integer property from dictionary.", - "arguments": [ - { - "type": "integer", - "doc": "Fallback value if property does not exist or a property value is not an integer." - }, - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getOptBooleanFromDict", - "doc": "Returns an optional boolean property from dictionary.", - "arguments": [ - { - "type": "boolean", - "doc": "Fallback value if property does not exist or a property value is not a boolean." - }, - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "boolean", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getOptColorFromDict", - "doc": "Returns an optional color property from dictionary.", - "arguments": [ - { - "type": "color", - "doc": "Fallback value if property does not exist or a property value is not a color." - }, - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getOptColorFromDict", - "doc": "Returns an optional color property from dictionary.", - "arguments": [ - { - "type": "string", - "doc": "Fallback value if property does not exist or a property value is not a color." - }, - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getOptUrlFromDict", - "doc": "Returns an optional url property from dictionary.", - "arguments": [ - { - "type": "url", - "doc": "Fallback value if property does not exist or a property value is not an url." - }, - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "url", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getOptUrlFromDict", - "doc": "Returns an optional url property from dictionary.", - "arguments": [ - { - "type": "string", - "doc": "Fallback value if property does not exist or a property value is not an url." - }, - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "url", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getOptArrayFromDict", - "doc": "Returns an array value from dict if exist or empty array otherwise.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "array", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getOptDictFromDict", - "doc": "Returns an dict value from dict if exist or empty dict otherwise.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "dict", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "len", - "doc": "Counts the number of elements in a dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web" - ] - }, - { - "function_name": "getDictKeys", - "doc": "Return a collection containing just the keys of the dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - } - ], - "result_type": "array", - "platforms": [ - "android", - "ios", - "web" - ] - }, - { - "function_name": "getDictValues", - "doc": "Return a collection containing just the values of the dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - } - ], - "result_type": "array", - "platforms": [ - "android", - "ios", - "web" - ] - } - ] -} diff --git a/test_data/expression_test_data/function_signatures_format.json b/test_data/expression_test_data/function_signatures_format.json deleted file mode 100644 index 212b10d28..000000000 --- a/test_data/expression_test_data/function_signatures_format.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "signatures": [ - { - "function_name": "decimalFormat", - "doc": "Returns a string value from an integer using format.", - "arguments": [ - { - "type": "integer", - "doc": "Integer value to format." - }, - { - "type": "string", - "doc": "Number format." - } - ], - "result_type": "string", - "platforms": [ - "android", - "web", - "ios" - ] - }, - { - "function_name": "decimalFormat", - "doc": "Returns a string value from an number using format.", - "arguments": [ - { - "type": "number", - "doc": "Number value to format." - }, - { - "type": "string", - "doc": "Number format." - } - ], - "result_type": "string", - "platforms": [ - "android", - "web", - "ios" - ] - }, - { - "function_name": "decimalFormat", - "doc": "Returns a string value from an integer using format and locale.", - "arguments": [ - { - "type": "integer", - "doc": "Integer value to format." - }, - { - "type": "string", - "doc": "Number format." - }, - { - "type": "string", - "doc": "Locale." - } - ], - "result_type": "string", - "platforms": [ - "android", - "web", - "ios" - ] - }, - { - "function_name": "decimalFormat", - "doc": "Returns a string value from an number using format and locale.", - "arguments": [ - { - "type": "number", - "doc": "Number value to format." - }, - { - "type": "string", - "doc": "Number format." - }, - { - "type": "string", - "doc": "Locale." - } - ], - "result_type": "string", - "platforms": [ - "android", - "web", - "ios" - ] - } - ] -} diff --git a/test_data/expression_test_data/function_signatures_interval.json b/test_data/expression_test_data/function_signatures_interval.json deleted file mode 100644 index 79c422507..000000000 --- a/test_data/expression_test_data/function_signatures_interval.json +++ /dev/null @@ -1,140 +0,0 @@ -{ - "signatures": [ - { - "function_name": "getIntervalSeconds", - "doc": "Gets the seconds component of the duration. Expressed as a value between 0 and 59.", - "arguments": [ - { - "type": "integer", - "doc": "Milliseconds count" - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getIntervalTotalSeconds", - "doc": "Gets the number of seconds in duration.", - "arguments": [ - { - "type": "integer", - "doc": "Milliseconds count" - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getIntervalMinutes", - "doc": "Gets the minutes component of the duration. Expressed as a value between 0 and 59.", - "arguments": [ - { - "type": "integer", - "doc": "Milliseconds count" - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getIntervalTotalMinutes", - "doc": "Gets the number of minutes in duration.", - "arguments": [ - { - "type": "integer", - "doc": "Milliseconds count" - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getIntervalHours", - "doc": "Gets the hours component of the duration. Expressed as a value between 0 and 23.", - "arguments": [ - { - "type": "integer", - "doc": "Milliseconds count" - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getIntervalTotalHours", - "doc": "Gets the number of hours in duration.", - "arguments": [ - { - "type": "integer", - "doc": "Milliseconds count" - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getIntervalTotalDays", - "doc": "Gets the number of days in duration.", - "arguments": [ - { - "type": "integer", - "doc": "Milliseconds count" - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getIntervalTotalWeeks", - "doc": "Gets the number of weeks in duration.", - "arguments": [ - { - "type": "integer", - "doc": "Milliseconds count" - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - } - ] -} diff --git a/test_data/expression_test_data/function_signatures_math.json b/test_data/expression_test_data/function_signatures_math.json deleted file mode 100644 index 386cf465b..000000000 --- a/test_data/expression_test_data/function_signatures_math.json +++ /dev/null @@ -1,473 +0,0 @@ -{ - "signatures": [ - { - "function_name": "div", - "doc": "Calculates division between the first number and the second. Returns integer quotient of division.", - "arguments": [ - { - "type": "integer", - "doc": "Divisible integer value." - }, - { - "type": "integer", - "doc": "Divisor integer value." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "div", - "doc": "Calculates division between the first number and the second. Returns number quotient of division.", - "arguments": [ - { - "type": "number", - "doc": "Divisible number value." - }, - { - "type": "number", - "doc": "Divisor number value." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "mod", - "doc": "Calculates remainder of division the first number and the second. Returns integer remainder of division.", - "arguments": [ - { - "type": "integer", - "doc": "Divisible integer value." - }, - { - "type": "integer", - "doc": "Divisor integer value." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "mod", - "doc": "Calculates remainder of division the first number and the second. Returns number remainder of division.", - "arguments": [ - { - "type": "number", - "doc": "Divisible number value." - }, - { - "type": "number", - "doc": "Divisor number value." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "mul", - "doc": "Calculates multiplication between argument values. Returns integer result of multiplication.", - "arguments": [ - { - "type": "integer", - "vararg": true, - "doc": "Integer value to multiply." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "mul", - "doc": "Calculates multiplication between argument values. Returns number result of multiplication.", - "arguments": [ - { - "type": "number", - "vararg": true, - "doc": "Number value to multiply." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "sub", - "doc": "Calculates subtraction between argument values. Returns integer result of subtraction.", - "arguments": [ - { - "type": "integer", - "vararg": true, - "doc": "Integer value to subtract." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "sub", - "doc": "Calculates subtraction between argument values. Returns number result of subtraction.", - "arguments": [ - { - "type": "number", - "vararg": true, - "doc": "Number value to subtract." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "sum", - "doc": "Calculates sum between argument values. Returns integer result of sum.", - "arguments": [ - { - "type": "integer", - "vararg": true, - "doc": "Integer value to sum." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "sum", - "doc": "Calculates sum between argument values. Returns number result of sum.", - "arguments": [ - { - "type": "number", - "vararg": true, - "doc": "Number value to sum." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "maxInteger", - "doc": "Gets max value of integer type. Returns max integer value.", - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "maxNumber", - "doc": "Gets max value of number type. Returns max number value.", - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "minInteger", - "doc": "Gets min value of integer type. Returns min integer value.", - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "minNumber", - "doc": "Gets min value of number type. Returns min number value.", - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "max", - "doc": "Gets max value of argument values. Returns max integer value.", - "arguments": [ - { - "type": "integer", - "vararg": true, - "doc": "Integer value." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "max", - "doc": "Gets max value of argument values. Returns max number value.", - "arguments": [ - { - "type": "number", - "vararg": true, - "doc": "Number value." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "min", - "doc": "Gets min value of argument values. Returns min integer value.", - "arguments": [ - { - "type": "integer", - "vararg": true, - "doc": "Integer value." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "min", - "doc": "Gets min value of argument values. Returns min number value.", - "arguments": [ - { - "type": "number", - "vararg": true, - "doc": "Number value." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "abs", - "doc": "Gets absolute value of argument. Returns integer value.", - "arguments": [ - { - "type": "integer", - "doc": "Integer value to get absolute." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "abs", - "doc": "Gets absolute value of argument. Returns number value.", - "arguments": [ - { - "type": "number", - "doc": "Number value to get absolute." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "signum", - "doc": "Gets sign value from argument. Returns -1 if value is negative, 0 if value is equal to 0, 1 if value is positive.", - "arguments": [ - { - "type": "integer", - "doc": "Integer value to get sign value." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "signum", - "doc": "Gets sign value from argument. Returns -1.0 if value is negative, 0.0 if value is equal to 0, 1.0 if value is positive.", - "arguments": [ - { - "type": "number", - "doc": "Number value to get sign value." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "round", - "doc": "Rounds argument value to the closest integer value. 1.49 -> 1.0, 1.5 -> 2.0. Returns number value.", - "arguments": [ - { - "type": "number", - "doc": "Number value to round." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "floor", - "doc": "Rounds argument value down. 1.49 -> 1.0, 1.5 -> 1.0. Returns number value.", - "arguments": [ - { - "type": "number", - "doc": "Number value to round." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "ceil", - "doc": "Rounds argument value up. 1.49 -> 2.0, 1.5 -> 2.0. Returns number value.", - "arguments": [ - { - "type": "number", - "doc": "Number value to round." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "copySign", - "doc": "Gets value of first argument with sign of the second argument. Returns integer value.", - "arguments": [ - { - "type": "integer", - "doc": "Integer value to copy value from." - }, - { - "type": "integer", - "doc": "Integer value to copy sign from." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "copySign", - "doc": "Gets value of first argument with sign of the second argument. Returns number value.", - "arguments": [ - { - "type": "number", - "doc": "Number value to copy value from." - }, - { - "type": "number", - "doc": "Number value to copy sign from." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - } - ] -} diff --git a/test_data/expression_test_data/function_signatures_std.json b/test_data/expression_test_data/function_signatures_std.json deleted file mode 100644 index 4505d60fa..000000000 --- a/test_data/expression_test_data/function_signatures_std.json +++ /dev/null @@ -1,525 +0,0 @@ -{ - "signatures": [ - { - "function_name": "toBoolean", - "doc": "Converts argument value to boolean type. Returns true if argument is 1, false if argument is 0, error if argument is other.", - "arguments": [ - { - "type": "integer", - "doc": "Integer value to convert." - } - ], - "result_type": "boolean", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toBoolean", - "doc": "Converts argument value to boolean type. Returns true if argument is \"true\", false if argument is \"false\", error if argument is other.", - "arguments": [ - { - "type": "string", - "doc": "String value to convert." - } - ], - "result_type": "boolean", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toInteger", - "doc": "Converts argument value to integer type. Returns 1 if argument is true, 0 if argument is false.", - "arguments": [ - { - "type": "boolean", - "doc": "Boolean value to convert." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toInteger", - "doc": "Converts argument value to integer type. Rounds number value down. Returns integer value.", - "arguments": [ - { - "type": "number", - "doc": "Number value to convert." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toInteger", - "doc": "Converts argument value to integer type. Returns integer value.", - "arguments": [ - { - "type": "string", - "doc": "String value to convert." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toNumber", - "doc": "Converts argument value to number type. Returns number value.", - "arguments": [ - { - "type": "integer", - "doc": "Integer value to convert." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toNumber", - "doc": "Converts argument value to number type. Returns number value.", - "arguments": [ - { - "type": "string", - "doc": "String value to convert." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toColor", - "doc": "Converts argument value to color type. Returns color value.", - "arguments": [ - { - "type": "string", - "doc": "String value to convert." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toUrl", - "doc": "Converts argument value to url type. Returns url value.", - "arguments": [ - { - "type": "string", - "doc": "String value to convert." - } - ], - "result_type": "url", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getIntegerValue", - "doc": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", - "arguments": [ - { - "type": "string", - "doc": "Variable name." - }, - { - "type": "integer", - "doc": "Fallback value." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getNumberValue", - "doc": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", - "arguments": [ - { - "type": "string", - "doc": "Variable name." - }, - { - "type": "number", - "doc": "Fallback value." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getStringValue", - "doc": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", - "arguments": [ - { - "type": "string", - "doc": "Variable name." - }, - { - "type": "string", - "doc": "Fallback value." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getUrlValue", - "doc": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", - "arguments": [ - { - "type": "string", - "doc": "Variable name." - }, - { - "type": "url", - "doc": "Fallback value." - } - ], - "result_type": "url", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getUrlValue", - "doc": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", - "arguments": [ - { - "type": "string", - "doc": "Variable name." - }, - { - "type": "string", - "doc": "Fallback value." - } - ], - "result_type": "url", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getColorValue", - "doc": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", - "arguments": [ - { - "type": "string", - "doc": "Variable name." - }, - { - "type": "color", - "doc": "Fallback value." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getColorValue", - "doc": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", - "arguments": [ - { - "type": "string", - "doc": "Variable name." - }, - { - "type": "string", - "doc": "Fallback value." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getBooleanValue", - "doc": "Returns the value of a variable by its name. If the variable doesn't exist or has incorrect type, the default value would be returned.", - "arguments": [ - { - "type": "string", - "doc": "Variable name." - }, - { - "type": "boolean", - "doc": "Fallback value." - } - ], - "result_type": "boolean", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getStoredIntegerValue", - "doc": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the default value would be returned.", - "arguments": [ - { - "type": "string", - "doc": "Stored value name." - }, - { - "type": "integer", - "doc": "Fallback value." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getStoredNumberValue", - "doc": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the default value would be returned.", - "arguments": [ - { - "type": "string", - "doc": "Stored value name." - }, - { - "type": "number", - "doc": "Fallback value." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getStoredStringValue", - "doc": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the default value would be returned.", - "arguments": [ - { - "type": "string", - "doc": "Stored value name." - }, - { - "type": "string", - "doc": "Fallback value." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getStoredUrlValue", - "doc": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the default value would be returned.", - "arguments": [ - { - "type": "string", - "doc": "Stored value name." - }, - { - "type": "url", - "doc": "Fallback value." - } - ], - "result_type": "url", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getStoredUrlValue", - "doc": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the default value would be returned.", - "arguments": [ - { - "type": "string", - "doc": "Stored value name." - }, - { - "type": "string", - "doc": "Fallback value." - } - ], - "result_type": "url", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getStoredColorValue", - "doc": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the default value would be returned.", - "arguments": [ - { - "type": "string", - "doc": "Stored value name." - }, - { - "type": "color", - "doc": "Fallback value." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getStoredColorValue", - "doc": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the default value would be returned.", - "arguments": [ - { - "type": "string", - "doc": "Stored value name." - }, - { - "type": "string", - "doc": "Fallback value." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getStoredBooleanValue", - "doc": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the default value would be returned.", - "arguments": [ - { - "type": "string", - "doc": "Stored value name." - }, - { - "type": "boolean", - "doc": "Fallback value." - } - ], - "result_type": "boolean", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getStoredArrayValue", - "doc": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the exception will be thrown.", - "arguments": [ - { - "type": "string", - "doc": "Stored value name." - } - ], - "result_type": "array", - "platforms": [ - "android", - "ios", - "web" - ] - }, - { - "function_name": "getStoredDictValue", - "doc": "Returns the stored value by its name. If the value doesn't exist or has incorrect type, the exception will be thrown.", - "arguments": [ - { - "type": "string", - "doc": "Stored value name." - } - ], - "result_type": "dict", - "platforms": [ - "android", - "ios", - "web" - ] - } - ] -} diff --git a/test_data/expression_test_data/function_signatures_strings.json b/test_data/expression_test_data/function_signatures_strings.json deleted file mode 100644 index 648f0c115..000000000 --- a/test_data/expression_test_data/function_signatures_strings.json +++ /dev/null @@ -1,389 +0,0 @@ -{ - "signatures": [ - { - "function_name": "len", - "doc": "Gets the length of string argument. Returns integer value.", - "arguments": [ - { - "type": "string", - "doc": "String value to get length of." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "contains", - "doc": "Gets if second string argument contains in first string argument. Returns boolean value.", - "arguments": [ - { - "type": "string", - "doc": "String value to find substring." - }, - { - "type": "string", - "doc": "String value substring to find." - } - ], - "result_type": "boolean", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "substring", - "doc": "Gets substring of first argument in range of last arguments. Returns string value.", - "arguments": [ - { - "type": "string", - "doc": "String value to get substring from." - }, - { - "type": "integer", - "doc": "Integer value, left index of substring." - }, - { - "type": "integer", - "doc": "Integer value, right index of substring." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "replaceAll", - "doc": "Replaces all occurrences of the second argument in the first argument with the third argument. Returns string value of replaced string.", - "arguments": [ - { - "type": "string", - "doc": "String value, original string." - }, - { - "type": "string", - "doc": "String value, string to find." - }, - { - "type": "string", - "doc": "String value, string to replace." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "index", - "doc": "Gets first index of second argument in first argument. Returns integer value, index of occurrence or -1 if substring is not found.", - "arguments": [ - { - "type": "string", - "doc": "String value, original string." - }, - { - "type": "string", - "doc": "String value, string to find." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "lastIndex", - "doc": "Gets last index of second argument in first argument. Returns integer value, index of occurrence or -1 if substring is not found.", - "arguments": [ - { - "type": "string", - "doc": "String value, original string." - }, - { - "type": "string", - "doc": "String value, string to find." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "encodeUri", - "doc": "Translates a string into application/x-www-form-urlencoded format using a specific encoding scheme. Returns string value, encoded string.", - "arguments": [ - { - "type": "string", - "doc": "String value to translate." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "decodeUri", - "doc": "Decodes a application/x-www-form-urlencoded string using a specific encoding scheme. Returns string value, decoded string.", - "arguments": [ - { - "type": "string", - "doc": "String value to decode." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "trim", - "doc": "Returns a string having leading and trailing whitespace removed.", - "arguments": [ - { - "type": "string", - "doc": "String value to trim." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "trimLeft", - "doc": "Returns a string having leading whitespace removed.", - "arguments": [ - { - "type": "string", - "doc": "String value to trim." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "trimRight", - "doc": "Returns a string having trailing whitespace removed.", - "arguments": [ - { - "type": "string", - "doc": "String value to trim." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toUpperCase", - "doc": "Returns converted to upper case string.", - "arguments": [ - { - "type": "string", - "doc": "String value to transform." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toLowerCase", - "doc": "Returns converted to lower case string.", - "arguments": [ - { - "type": "string", - "doc": "String value to transform." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "padStart", - "doc": "Pads a string to a given string length, inserting at start", - "arguments": [ - { - "type": "string", - "doc": "String value to pad." - }, - { - "type": "integer", - "doc": "String length" - }, - { - "type": "string", - "doc": "String character to pad with" - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "padStart", - "doc": "Converts given integer to a string and pads it to a given string length, inserting at start", - "arguments": [ - { - "type": "integer", - "doc": "Integer value to pad." - }, - { - "type": "integer", - "doc": "String length" - }, - { - "type": "string", - "doc": "String character to pad with" - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "padEnd", - "doc": "Pads a string to a given string length, inserting at end", - "arguments": [ - { - "type": "string", - "doc": "String value to pad." - }, - { - "type": "integer", - "doc": "String length" - }, - { - "type": "string", - "doc": "String character to pad with" - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "padEnd", - "doc": "Converts given integer to a string and pads it to a given string length, inserting at end", - "arguments": [ - { - "type": "integer", - "doc": "Integer value to pad." - }, - { - "type": "integer", - "doc": "String length" - }, - { - "type": "string", - "doc": "String character to pad with" - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "testRegex", - "doc": "Checks whether the string matches the regular expression.", - "arguments": [ - { - "type": "string", - "doc": "A string to test." - }, - { - "type": "string", - "doc": "Regex string." - } - ], - "result_type": "boolean", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "encodeRegex", - "doc": "Encodes a string for safe use in regular expressions.", - "arguments": [ - { - "type": "string", - "doc": "A string to encode." - } - ], - "result_type": "string", - "platforms": [ - "web", - "android" - ] - } - ] -} diff --git a/test_data/expression_test_data/function_signatures_to_string.json b/test_data/expression_test_data/function_signatures_to_string.json deleted file mode 100644 index e409b426b..000000000 --- a/test_data/expression_test_data/function_signatures_to_string.json +++ /dev/null @@ -1,140 +0,0 @@ -{ - "signatures": [ - { - "function_name": "toString", - "doc": "Returns a string representation of given value.", - "arguments": [ - { - "type": "array", - "doc": "Value." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toString", - "doc": "Returns a string representation of given value.", - "arguments": [ - { - "type": "boolean", - "doc": "Value." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toString", - "doc": "Returns a string representation of given value.", - "arguments": [ - { - "type": "color", - "doc": "Value." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toString", - "doc": "Returns a string representation of given value.", - "arguments": [ - { - "type": "dict", - "doc": "Value." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toString", - "doc": "Returns a string representation of given value.", - "arguments": [ - { - "type": "integer", - "doc": "Value." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toString", - "doc": "Returns a string representation of given value.", - "arguments": [ - { - "type": "number", - "doc": "Value." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toString", - "doc": "Returns a string representation of given value.", - "arguments": [ - { - "type": "string", - "doc": "Value." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toString", - "doc": "Returns a string representation of given value.", - "arguments": [ - { - "type": "url", - "doc": "Value." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - } - ] -} diff --git a/test_data/expression_test_data/function_signatures_trigonometry.json b/test_data/expression_test_data/function_signatures_trigonometry.json deleted file mode 100644 index 585395b6f..000000000 --- a/test_data/expression_test_data/function_signatures_trigonometry.json +++ /dev/null @@ -1,181 +0,0 @@ -{ - "signatures": [ - { - "function_name": "pi", - "doc": "Returns value of the `π`: ratio of the circumference of a circle to its diameter", - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toRadians", - "doc": "Converts the argument value from degrees to radians", - "arguments": [ - { - "type": "number", - "doc": "Number value representing degrees." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toDegrees", - "doc": "Converts the argument value from radians to degrees", - "arguments": [ - { - "type": "number", - "doc": "Number value representing radians." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "sin", - "doc": "Calculates the sine of the given angle in radians", - "arguments": [ - { - "type": "number", - "doc": "Angle in radians." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "cos", - "doc": "Calculates the cosine of the given angle in radians", - "arguments": [ - { - "type": "number", - "doc": "Angle in radians." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web" - ] - }, - { - "function_name": "tan", - "doc": "Calculates the tangent of the given angle in radians", - "arguments": [ - { - "type": "number", - "doc": "Angle in radians." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web" - ] - }, - { - "function_name": "asin", - "doc": "Calculates the angle in radians of the given sine value", - "arguments": [ - { - "type": "number", - "doc": "Sine value." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web" - ] - }, - { - "function_name": "acos", - "doc": "Calculates the angle in radians of the given cosine value", - "arguments": [ - { - "type": "number", - "doc": "Cosine value." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web" - ] - }, - { - "function_name": "atan", - "doc": "Calculates the angle in radians for a given tangent value", - "arguments": [ - { - "type": "number", - "doc": "Tangent value." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web" - ] - }, - { - "function_name": "atan2", - "doc": "Calculates the angle in radians for given values (y,x)", - "arguments": [ - { - "type": "number", - "doc": "Y coordinate of the point" - }, - { - "type": "number", - "doc": "X coordinate of the point" - } - ], - "result_type": "number", - "platforms": [ - "android", - "web" - ] - }, - { - "function_name": "cot", - "doc": "Calculates the cotangent of the given angle in radians", - "arguments": [ - { - "type": "number", - "doc": "Angle in radians." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web" - ] - } - ] -} diff --git a/test_data/expression_test_data/methods_signatures.json b/test_data/expression_test_data/methods_signatures.json deleted file mode 100644 index 08ad4a9cb..000000000 --- a/test_data/expression_test_data/methods_signatures.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "signatures": [ - { - "function_name": "toString", - "is_method": true, - "doc": "Returns a string value from string.", - "arguments": [ - { - "type": "string", - "doc": "String." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toString", - "is_method": true, - "doc": "Returns a string representation from number.", - "arguments": [ - { - "type": "number", - "doc": "Number." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toString", - "is_method": true, - "doc": "Returns a string value from boolean.", - "arguments": [ - { - "type": "boolean", - "doc": "Boolean." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toString", - "is_method": true, - "doc": "Returns a string value from color.", - "arguments": [ - { - "type": "color", - "doc": "Color." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toString", - "is_method": true, - "doc": "Returns a string value from url.", - "arguments": [ - { - "type": "url", - "doc": "Url." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toString", - "is_method": true, - "doc": "Returns a string value from array.", - "arguments": [ - { - "type": "array", - "doc": "Array." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "toString", - "is_method": true, - "doc": "Returns a string value from dict.", - "arguments": [ - { - "type": "dict", - "doc": "Dict." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - } - ] -} diff --git a/test_data/expression_test_data/methods_signatures_array.json b/test_data/expression_test_data/methods_signatures_array.json deleted file mode 100644 index 60efdbc0c..000000000 --- a/test_data/expression_test_data/methods_signatures_array.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "signatures": [ - { - "function_name": "getArray", - "is_method": true, - "doc": "Returns an array value from array by position.", - "arguments": [ - { - "type": "array", - "doc": "Array." - }, - { - "type": "integer", - "doc": "Position in array." - } - ], - "result_type": "array", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getBoolean", - "is_method": true, - "doc": "Returns a boolean value from array by position.", - "arguments": [ - { - "type": "array", - "doc": "Array." - }, - { - "type": "integer", - "doc": "Position in array." - } - ], - "result_type": "boolean", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getColor", - "is_method": true, - "doc": "Returns a color value from array by position.", - "arguments": [ - { - "type": "array", - "doc": "Array." - }, - { - "type": "integer", - "doc": "Position in array." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getDict", - "is_method": true, - "doc": "Returns a dict value from array by position.", - "arguments": [ - { - "type": "array", - "doc": "Array." - }, - { - "type": "integer", - "doc": "Position in array." - } - ], - "result_type": "dict", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getInteger", - "is_method": true, - "doc": "Returns an integer value from array by position.", - "arguments": [ - { - "type": "array", - "doc": "Array." - }, - { - "type": "integer", - "doc": "Position in array." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getNumber", - "is_method": true, - "doc": "Returns a number value from array by position.", - "arguments": [ - { - "type": "array", - "doc": "Array." - }, - { - "type": "integer", - "doc": "Position in array." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getString", - "is_method": true, - "doc": "Returns a string value from array by position.", - "arguments": [ - { - "type": "array", - "doc": "Array." - }, - { - "type": "integer", - "doc": "Position in array." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getUrl", - "is_method": true, - "doc": "Returns a url value from array by position.", - "arguments": [ - { - "type": "array", - "doc": "Array." - }, - { - "type": "integer", - "doc": "Position in array." - } - ], - "result_type": "url", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "isEmpty", - "is_method": true, - "doc": "The method returns boolean true if array is empty else false.", - "arguments": [ - { - "type": "array", - "doc": "Array." - } - ], - "result_type": "boolean", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "filter", - "is_method": true, - "doc": "Returns filtered array by calling boolean function to each element of array.", - "arguments": [ - { - "type": "array", - "doc": "Array." - }, - { - "type": "function", - "doc": "Accepts each element of array, returns bool." - } - ], - "result_type": "array", - "platforms": [] - } - ] -} diff --git a/test_data/expression_test_data/methods_signatures_dict.json b/test_data/expression_test_data/methods_signatures_dict.json deleted file mode 100644 index d82075b8c..000000000 --- a/test_data/expression_test_data/methods_signatures_dict.json +++ /dev/null @@ -1,260 +0,0 @@ -{ - "signatures": [ - { - "function_name": "getArray", - "is_method": true, - "doc": "Returns an array value from dict by key.", - "arguments": [ - { - "type": "dict", - "doc": "Dict." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "array", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getBoolean", - "is_method": true, - "doc": "Returns a boolean value from dict by key.", - "arguments": [ - { - "type": "dict", - "doc": "Dict." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "boolean", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getColor", - "is_method": true, - "doc": "Returns a color value from dict by key.", - "arguments": [ - { - "type": "dict", - "doc": "Dict." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "color", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getDict", - "is_method": true, - "doc": "Returns a dict value from dict by key.", - "arguments": [ - { - "type": "dict", - "doc": "Dict." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "dict", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getInteger", - "is_method": true, - "doc": "Returns an integer value from dict by key.", - "arguments": [ - { - "type": "dict", - "doc": "Dict." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "integer", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getNumber", - "is_method": true, - "doc": "Returns a number value from dict by key.", - "arguments": [ - { - "type": "dict", - "doc": "Dict." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "number", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getString", - "is_method": true, - "doc": "Returns a string value from dict by key.", - "arguments": [ - { - "type": "dict", - "doc": "Dict." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "string", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getUrl", - "is_method": true, - "doc": "Returns a url value from dict by key.", - "arguments": [ - { - "type": "dict", - "doc": "Dict." - }, - { - "type": "string", - "vararg": true, - "doc": "Path in dictionary." - } - ], - "result_type": "url", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "containsKey", - "is_method": true, - "doc": "Returns true if the given key is present in the dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dict." - }, - { - "type": "string", - "doc": "Key in dictionary." - } - ], - "result_type": "boolean", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "isEmpty", - "is_method": true, - "doc": "The method returns boolean true if dict is empty else false.", - "arguments": [ - { - "type": "dict", - "doc": "Dict." - } - ], - "result_type": "boolean", - "platforms": [ - "android", - "ios", - "web", - "flutter" - ] - }, - { - "function_name": "getKeys", - "is_method": true, - "doc": "Return a collection containing just the keys of the dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - } - ], - "result_type": "array", - "platforms": [ - "android", - "ios" - ] - }, - { - "function_name": "getValues", - "is_method": true, - "doc": "Return a collection containing just the values of the dictionary.", - "arguments": [ - { - "type": "dict", - "doc": "Dictionary." - } - ], - "result_type": "array", - "platforms": [ - "android", - "ios" - ] - } - ] -} diff --git a/test_data/expression_test_data/methods_signatures_format.json b/test_data/expression_test_data/methods_signatures_format.json deleted file mode 100644 index c28b31824..000000000 --- a/test_data/expression_test_data/methods_signatures_format.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "signatures": [ - { - "function_name": "decimalFormat", - "is_method": true, - "doc": "Returns a string value from an integer using format.", - "arguments": [ - { - "type": "integer", - "doc": "Integer value to format." - }, - { - "type": "string", - "doc": "Number format, similar to ICU-like." - } - ], - "result_type": "string", - "platforms": [ - "android", - "web", - "ios" - ] - }, - { - "function_name": "decimalFormat", - "is_method": true, - "doc": "Returns a string value from an number using format.", - "arguments": [ - { - "type": "number", - "doc": "Number value to format." - }, - { - "type": "string", - "doc": "Number format, similar to ICU-like." - } - ], - "result_type": "string", - "platforms": [ - "android", - "web", - "ios" - ] - }, - { - "function_name": "decimalFormat", - "is_method": true, - "doc": "Returns a string value from an integer using format and locale.", - "arguments": [ - { - "type": "integer", - "doc": "Integer value to format." - }, - { - "type": "string", - "doc": "Number format, similar to ICU-like." - }, - { - "type": "string", - "doc": "Locale." - } - ], - "result_type": "string", - "platforms": [ - "android", - "web", - "ios" - ] - }, - { - "function_name": "decimalFormat", - "is_method": true, - "doc": "Returns a string value from an number using format and locale.", - "arguments": [ - { - "type": "number", - "doc": "Number value to format." - }, - { - "type": "string", - "doc": "Number format, similar to ICU-like." - }, - { - "type": "string", - "doc": "Locale." - } - ], - "result_type": "string", - "platforms": [ - "android", - "web", - "ios" - ] - } - ] -}