Home
last modified time | relevance | path

Searched refs:systemKey (Results 1 – 3 of 3) sorted by relevance

/developtools/ace_ets2bundle/compiler/src/fast_build/system_api/
Drollup-plugin-system-api.ts105 const systemKey: string = item3 || item6; constant
107 const systemModule: string = `${moduleType}.${systemKey}`;
113 … item = `var ${systemValue} = ${GLOBAL_THIS_REQUIRE_NATIVE_MODULE}('${moduleType}.${systemKey}')`;
115 … item = `var ${systemValue} = ${GLOBAL_THIS_REQUIRE_NAPI}('${systemKey}'${externalModuleParam})`;
/developtools/ace_ets2bundle/compiler/src/
Dark_utils.ts194 return moduleRequest.replace(REG_SYSTEM_MODULE, (_, moduleType, systemKey) => {
197 moduleRequestStr = moduleRequestCallback(moduleRequest, _, moduleType, systemKey);
202 const systemModule: string = `${moduleType}.${systemKey}`;
206 return `@ohos:${systemKey}`;
218 function moduleRequestCallback(moduleRequest, _, moduleType, systemKey): string {
224 let compileRequest: string = `${config.prefix}:${systemKey}`;
Dvalidate_ui_syntax.ts1127 function replaceSystemApi(item: string, systemValue: string, moduleType: string, systemKey: string)…
1129 if (NATIVE_MODULE.has(`${moduleType}.${systemKey}`)) {
1130 item = `var ${systemValue} = globalThis.requireNativeModule('${moduleType}.${systemKey}')`;
1132 item = `var ${systemValue} = globalThis.requireNapi('${systemKey}')`;