Home
last modified time | relevance | path

Searched refs:result (Results 1 - 25 of 76) sorted by relevance

1234

/napi_generator/src/cli/h2sa/src/tools/
H A Dtool.js31 let result = this;
34 let p = result.search(reg);
38 result = result.substring(0, p) + args[i] + result.substring(p + 2, result.length);
40 return result;
44 let result = this;
45 while (result.indexOf(args[0]) >= 0) {
46 result
[all...]
/napi_generator/src/cli/dts2cpp/src/gen/analyze/
H A Dnamespace.js30 function getDataByResult(result) {
32 if (result !== null) {
33 data = result;
40 let result = {
60 let parseEnumResult = parseEnum(matchs, data, result);
63 result = parseEnumType(result);
65 let parseInterResult = parseInterface(matchs, data, result);
68 let parseFunctionResult = parseFunction(matchs, data, result);
71 let parseTypeResult = parseType(matchs, data, result);
[all...]
H A Denum.js21 let result = {
37 analyzeEnumResult(result, bodyContent, i);
39 return result;
42 function analyzeEnumResult(result, bodyContent, index) {
50 result.element.push({
55 result.enumValueType = 1;
59 result.element.push({
64 result.enumValueType = 1;
69 result.element.push({
74 result
[all...]
H A Dtype.js38 let result = {
55 analyzeTypeVariable(t, tt, result);
58 return result;
61 function analyzeTypeVariable(t, tt, result) {
70 result.value.push({
79 let result = {
95 analyzeType2Result(result, bodyContent, i);
97 return result;
100 function analyzeType2Result(result, bodyContent, index) {
106 result
[all...]
H A Dinterface.js59 let result = arr[i];
60 body = re.replaceAll(body, result[0], ';\n');
63 let result = {
81 analyzeInterfaceVariable(t, tt, rsltInterface, result);
86 analyzeInterfaceFunction(t, tt, data, results, interfaceName, result);
89 return result;
97 function analyzeInterfaceFunction(t, tt, data, results, interfaceName, result) {
103 addUniqFunc2List(funcDetail, result.function);
107 function analyzeInterfaceVariable(t, tt, rsltInterface, result) {
117 result
[all...]
/napi_generator/src/cli/dts2ets/appCodeGen/src/analyze/
H A Dnamespace.js30 function getDataByResult(result) {
32 if (result !== null) {
33 data = result;
40 let result = {
60 let parseEnumResult = parseEnum(matchs, data, result);
63 result = parseEnumType(result);
65 let parseInterResult = parseInterface(matchs, data, result);
68 let parseFunctionResult = parseFunction(matchs, data, result);
71 let parseTypeResult = parseType(matchs, data, result);
[all...]
H A Denum.js21 let result = {
37 analyzeEnumResult(result, bodyContent, i);
39 return result;
42 function analyzeEnumResult(result, bodyContent, index) {
50 result.element.push({
55 result.enumValueType = 1;
59 result.element.push({
64 result.enumValueType = 1;
69 result.element.push({
74 result
[all...]
H A Dtype.js38 let result = {
56 analyzeTypeVariable(t, tt, result);
59 return result;
62 function analyzeTypeVariable(t, tt, result) {
71 result.value.push({
80 let result = {
96 analyzeType2Result(result, bodyContent, i);
98 return result;
101 function analyzeType2Result(result, bodyContent, index) {
107 result
[all...]
/napi_generator/src/cli/dts2cpp/src/gen/
H A Danalyze.js33 let result = {
47 result.imports.push(re.getReg(data, matchImport.regs[0]))
55 result.declareLicense.push(licenseData)
57 return analyze(data, result)
60 function analyze(data, result) {
71 result.exportDefault.push(exportName)
74 let matchType = analyzeMatchType(matchs, data, result)
78 result = matchType[1]
81 let namespace = analyzeMatchNamespace(matchs, data, result)
84 result
[all...]
H A DanalyzeRaw.js45 let result = {
62 result.imports.push(imports);
68 result.declareLicense.push(licenseData)
71 return analyzeRaw(statements, result)
74 function analyzeRaw(statements, result) {
80 result.exportDefault.push(exportName)
84 let namespace = analyzeMatchNamespace(matchs, data, result)
87 result = namespace[1]
89 let interface = analyzeMatchInterface(matchs, data, result)
92 result
[all...]
/napi_generator/src/cli/dts2ets/appCodeGen/src/
H A Danalyze.js33 let result = {
47 result.imports.push(re.getReg(data, matchImport.regs[0]))
54 result.declareLicense.push(licenseData)
56 return analyze(data, result)
59 function analyze(data, result) {
70 result.exportDefault.push(exportName)
73 let matchType = analyzeMatchType(matchs, data, result)
77 result = matchType[1]
80 let namespace = analyzeMatchNamespace(matchs, data, result)
83 result
[all...]
/napi_generator/test/unittest/
H A Dtools.test.js30 let data = readFile('test/unittest/result.json');
60 let result = correctResult.tools.removeExplains;
61 assert.strictEqual(JSON.stringify(ret), JSON.stringify(result));
143 let result = ['string', 'NUMBER_TYPE_1', undefined, undefined];
145 assert.strictEqual(JSON.stringify(ret), JSON.stringify(result));
149 let result = [
157 assert.strictEqual(JSON.stringify(ret), JSON.stringify(result));
171 let result = 'function fun1(v1: { [key: string]: Array<string> }):void;';
172 assert.strictEqual(JSON.stringify(ret), JSON.stringify(result));
178 let result
[all...]
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/jsproperty/
H A Dnapigetproperty.cpp34 napi_value result; in callFunctionIfTypeIsFunction() local
35 status = napi_call_function(env, obj, propValue, 0, NULL, &result); in callFunctionIfTypeIsFunction()
40 // 函数被调用,其结果存储在 result 中,返回函数调用结果 in callFunctionIfTypeIsFunction()
41 return result; in callFunctionIfTypeIsFunction()
94 napi_value result = callFunctionIfTypeIsFunction(env, obj, propValue); in testNapiGetProperty() local
95 if (result != NULL) { in testNapiGetProperty()
96 return result; in testNapiGetProperty()
H A Dnapigetnamedproperty.cpp34 napi_value result; in callFunctionIfPropertyTypeIsFunction() local
35 status = napi_call_function(env, obj, propValue, 0, NULL, &result); in callFunctionIfPropertyTypeIsFunction()
40 // 函数被调用,其结果存储在 result 中,返回函数调用结果 in callFunctionIfPropertyTypeIsFunction()
41 return result; in callFunctionIfPropertyTypeIsFunction()
94 napi_value result = callFunctionIfPropertyTypeIsFunction(env, obj, propValue); in testNapiGetNamedProperty() local
95 if (result != NULL) { in testNapiGetNamedProperty()
96 return result; in testNapiGetNamedProperty()
/napi_generator/src/cli/dts2cpp/src/gen/extend/
H A Dtool_utility.js153 * @param result Indicates parsed data of the param any.
156 void GetAnyValueArrMap(std::string any_type, napi_value &result, std::any any);
161 * @param result Indicates parsed data of the param any.
164 void GetAnyValueMapArr(std::string any_type, napi_value &result, std::any any);
165 void GetAnyValue(std::string any_type, napi_value &result, std::any any);
179 void GetObjectValue(napi_value &result, std::map<std::string, std::any> valueIn);
321 bool result;
322 napi_status result_status = napi_get_value_bool(env_, value, &result);
325 return result;
343 napi_value result;
[all...]
/napi_generator/src/cli/dts2cpp/src/gen/generate/
H A Dnamespace.js114 let result = generateType(ii.name, ii.body, inNamespace + name + '::', inNamespace, name, toolNamespace);
115 namespaceResult = getNamespaceResult(result, namespaceResult);
119 let result = generateInterface(ii.name, ii.body, inNamespace + name + '::');
120 namespaceResult = getNamespaceResult(result, namespaceResult);
124 let result = generateClass(ii.name, ii.body, inNamespace + name + '::', ii.functiontType);
125 namespaceResult = getNamespaceResult(result, namespaceResult);
137 let result = generateNamespace(ns.name, ns.body, inNamespace + name + '::');
138 namespaceResult = getNamespaceResult(result, namespaceResult);
185 let result = generateEnumResult(data, inNamespace, nameSpaceName, toolNamespace);
186 namespaceResult.implH += result
[all...]
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/jsabstractops/
H A Dnapicoercetostring.cpp26 napi_value result; in testNapiCoerceToString() local
38 status = napi_coerce_to_string(env, args[0], &result); in testNapiCoerceToString()
55 // Check if the result is a string in testNapiCoerceToString()
57 napi_typeof(env, result, &resultType); in testNapiCoerceToString()
64 return result; in testNapiCoerceToString()
H A Dnapicoercetoobject.cpp26 napi_value result; in testNapiCoerceToObject() local
38 status = napi_coerce_to_object(env, args[0], &result); in testNapiCoerceToObject()
55 // Check if the result is a object in testNapiCoerceToObject()
57 napi_typeof(env, result, &resultType); in testNapiCoerceToObject()
64 return result; in testNapiCoerceToObject()
H A Dnapicoercetonumber.cpp26 napi_value result; in testNapiCoerceToNumber() local
38 status = napi_coerce_to_number(env, args[0], &result); in testNapiCoerceToNumber()
55 // Check if the result is a number in testNapiCoerceToNumber()
57 napi_typeof(env, result, &resultType); in testNapiCoerceToNumber()
64 return result; in testNapiCoerceToNumber()
H A Dnapicoercetobool.cpp26 napi_value result; in testNapiCoerceToBool() local
38 status = napi_coerce_to_bool(env, args[0], &result); in testNapiCoerceToBool()
55 // Check if the result is a boolean in testNapiCoerceToBool()
57 napi_typeof(env, result, &resultType); in testNapiCoerceToBool()
64 return result; in testNapiCoerceToBool()
H A Dnapiisarray.cpp26 bool result; in testNapiIsArray() local
44 status = napi_is_array(env, argv[0], &result); in testNapiIsArray()
50 status = napi_get_boolean(env, result, &bolresult); in testNapiIsArray()
H A Dnapistrictequals.cpp26 bool result; in testNapiStrictEquals() local
44 status = napi_strict_equals(env, argv[0], argv[1], &result); in testNapiStrictEquals()
50 status = napi_get_boolean(env, result, &bolresult); in testNapiStrictEquals()
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/jsfunctions/
H A Dnapicallfunction.cpp29 napi_value result; in testNapiCallFunction() local
55 status = napi_call_function(env, NULL, func, PARAM1, &argv[PARAM1], &result); in testNapiCallFunction()
61 return result; in testNapiCallFunction()
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/jsvalues/
H A Dnapicreateuint32.cpp30 napi_value result; in testNapiCreateUInt32() local
61 status = napi_create_uint32(env, uintValue, &result); in testNapiCreateUInt32()
68 return result; in testNapiCreateUInt32()
H A Dnapicreateint32.cpp29 napi_value result; in testNapiCreateInt32() local
61 status = napi_create_int32(env, intValue, &result); in testNapiCreateInt32()
68 return result; in testNapiCreateInt32()

Completed in 34 milliseconds

1234