Home
last modified time | relevance | path

Searched refs:NapiLog (Results 1 – 21 of 21) sorted by relevance

/napi_generator/src/gen/tools/
DNapiLog.js25 class NapiLog { class
29 NapiLog.LEV_NONE = 0;
30 NapiLog.LEV_ERROR = 1;
31 NapiLog.LEV_DEBUG = 2;
32 NapiLog.LEV_INFO = 3;
35 var logLevel = NapiLog.LEV_ERROR;
51 NapiLog.init = function (level, fileName) {
52 logLevel = level in [NapiLog.LEV_NONE, NapiLog.LEV_ERROR, NapiLog.LEV_DEBUG, NapiLog.LEV_INFO]
53 ? level : NapiLog.LEV_ERROR;
62 NapiLog.getCallPath = function(callerFuncName = null) {
[all …]
/napi_generator/hdc/service/service-gen/src/tools/
DNapiLog.js25 class NapiLog { class
29 NapiLog.LEV_NONE = 0;
30 NapiLog.LEV_ERROR = 1;
31 NapiLog.LEV_DEBUG = 2;
32 NapiLog.LEV_INFO = 3;
35 var logLevel = NapiLog.LEV_ERROR;
51 NapiLog.init = function (level, fileName) {
52 logLevel = level in [NapiLog.LEV_NONE, NapiLog.LEV_ERROR, NapiLog.LEV_DEBUG, NapiLog.LEV_INFO]
53 ? level : NapiLog.LEV_ERROR;
97 if (lev == NapiLog.LEV_ERROR) {
[all …]
/napi_generator/src/gen/
Dcmd_gen.js19 const { NapiLog } = require("./tools/NapiLog");
36 NapiLog.init(ops.loglevel, path.join("" + ops.out, "napi_gen.log"))
42 NapiLog.logInfo("fileNames and pathDir both cannot be empty at the same time");
66 NapiLog.logInfo('[Func: readDirFiles] No files in path %s!'.format(pathDir));
87 NapiLog.logError('readdir file error ' + err);
95 NapiLog.logInfo("check file []".format(fileName))
98 NapiLog.logInfo("convert .h file to .ts file...")
110 NapiLog.logError(result[1]);
115 NapiLog.logError('file name ' + fn + ' format invalid in function of checkGenerate!');
119 let ret = NapiLog.getResult();
[all …]
Dgenerate.js27 const { NapiLog } = require("./tools/NapiLog");
152 let callPath = NapiLog.getCallPath();
158 NapiLog.logInfo("Warning: clang-format does not exist, can not format cpp file.");
183 NapiLog.logError("Failed to format code, exception: " + err.stderr)
Dmain.js17 const { NapiLog } = require("./tools/NapiLog");
35 NapiLog.logError('file name ' + fn + ' format invalid in function of doGenerate!');
Danalyze.js21 const { NapiLog } = require("./tools/NapiLog");
93 NapiLog.logError("\nvvv 解析文件失败 vvv");
94 NapiLog.logError("[", data.substring(0, data.length > 64 ? 64 : data.length), "]");
/napi_generator/hdc/service/service-gen/src/gen/
Dmain.js20 const { NapiLog } = require("../tools/NapiLog");
33 NapiLog.init(ops.loglevel, path.join("" + ops.out, "napi_gen.log"));
38 NapiLog.logInfo("fileNames and pathDir both cannot be empty at the same time");
63 NapiLog.logError('readdir file error' + err);
72 NapiLog.logError('read file error' + err);
130 NapiLog.logInfo("check file []".format(fileName));
133 NapiLog.logInfo("Generating service code from file " + fileName);
136 NapiLog.logError('Only .h file is supported.');
140 let ret = NapiLog.getResult();
143 NapiLog.logInfo('success');
[all …]
Danalyze.js15 const { NapiLog } = require("../tools/NapiLog");
111 NapiLog.logError("Can not find any class.");
138 NapiLog.logError("There must be one class that contains @ServiceClass annotations.");
Dgenerate.js16 const { NapiLog } = require("../tools/NapiLog");
82 NapiLog.logError("Warning: Can not find definition of " + className);
90 NapiLog.logError("Warning: Can not find implementation of " + className);
107 NapiLog.logError("Warning: The braces of %s do not match.".format(className));
167 NapiLog.logError(
335 NapiLog.logError("Unsupport writing with type: " + vecType);
360 NapiLog.logError("Unsupport writing with type: " + vType);
386 NapiLog.logError("Unsupport reading with type: " + vecType);
410 NapiLog.logError("Unsupport reading with type: " + destObj.type);
/napi_generator/src/gen/analyze/
Dparams.js18 const { NapiLog } = require("../tools/NapiLog");
47 NapiLog.logError("Invalid parameter [%s] of function [%s],".format(v, funcName)
60 NapiLog.logError("方法[%s]的参数列表[%s]解析失败。".format(funcName, v));
61NapiLog.logError("Failed to analyse parameter [%s] of function [%s].".format(v, funcName));
Dfunction.js19 const { NapiLog } = require("../tools/NapiLog");
71 NapiLog.logError("analyzeFunction getFuncParaType is not support this type %s"
186 NapiLog.logError("analyzeFunction is not support this type %s".format(v));
Dnamespace.js21 const { NapiLog } = require("../tools/NapiLog");
70 NapiLog.logError("解析Namespace失败");
71 NapiLog.logError("[", data.substring(0, data.length > 128 ? 128 : data.length), "]");
287NapiLog.logError("The interface [%s] can not extends with itself.".format(interfaceName))
/napi_generator/src/gen/generate/
Denum.js17 const { NapiLog } = require("../tools/NapiLog");
28 NapiLog.logError(`The enum type[%s] is not support`.format(data.enumValueType));
Dclass.js22 const { NapiLog } = require("../tools/NapiLog");
58 NapiLog.logError(`
Dtype.js17 const { NapiLog } = require("../tools/NapiLog");
40 NapiLog.logError(`
105 NapiLog.logError(`
Dreturn_generate.js19 const { NapiLog } = require("../tools/NapiLog");
133NapiLog.logError(`\n---- This type do not generate cToJs %s,%s,%s ----\n`.format(value, type, dest…
320 NapiLog.logError(`This type do not generate cToJs %s,%s,%s`.format(value, type, dest));
486 NapiLog.logInfo("The current void type don't need generate");
506 NapiLog.logError("Do not support returning the type [%s].".format(type));
599 NapiLog.logError(`function returnGenerateEnum:this type is not support %s`.format(type));
Dnamespace.js24 const { NapiLog } = require("../tools/NapiLog");
54NapiLog.logError("Failed to find %s's parent by name [%s]".format(currentObj.body.name, parentName…
Dparam_generate.js19 const { NapiLog } = require("../tools/NapiLog");
74 NapiLog.logError(`do not support to generate jsToC %s,%s,%s`.format(dest, napiVn, type));
342NapiLog.logError("The current version do not support to this param to generate :", name, "type :",…
369 NapiLog.logError(`paramGenerate is not support`);
700 NapiLog.logError(`paramGenerate is not support`);
925 NapiLog.logError(
943NapiLog.logError("function eventParamGenerate:The current version do not support to this param to …
Dinterface.js23 const { NapiLog } = require("../tools/NapiLog");
79 NapiLog.logError(`
/napi_generator/src/tsGen/
DtsMain.js15 const { NapiLog } = require("../gen/tools/NapiLog");
191NapiLog.logError('The namespace [%s] of function %s is not found.'.format(funcInfo.namespace, func…
251NapiLog.logError('The namespace [%s] of class %s is not found.'.format(classInfo.namespace, classI…
/napi_generator/hdc/service/
DREADME_ZH.md27 │ │ | | | | ├── NapiLog.js # 日志