Home
last modified time | relevance | path

Searched refs:unionTypeString (Results 1 - 4 of 4) sorted by relevance

/napi_generator/src/cli/dts2cpp/src/gen/generate/
H A Dreturn_generate.js234 let unionTypeString = '';
243 unionTypeString += `if (%s_%s == "string") {
249 unionTypeString += `if (%s_%s == "number") {
255 unionTypeString += `if (%s_%s == "boolean") {
266 }\n`.format(value, unionTypeString);
269 return unionTypeString;
H A Dtype.js76 unionTypeString(name, type, variable, optional);
172 function unionTypeString(name, type, variable, optional) {
H A Dparam_generate.js199 let unionTypeString = '';
203 unionTypeString += '%s_type.emplace(pxt->GetUnionType(%s));\n'.format(dest, napiVn);
205 unionTypeString += '%s_type = pxt->GetUnionType(%s);\n'.format(dest, napiVn);
209 unionTypeString += `if (%s_%s == "string") {
216 unionTypeString += `if (%s_%s == "number") {
223 unionTypeString += `if (%s_%s == "boolean") {
231 return unionTypeString;
H A Dinterface.js75 unionTypeString(name, type, variable, optional);
247 function unionTypeString(name, type, variable, optional) { function

Completed in 5 milliseconds