| /developtools/ace_ets2bundle/compiler/src/fast_build/ark_compiler/bundle/ |
| D | bundle_mode.ts | 62 sourceFile: string; property 186 const sourceFile: string = isDebug(this.projectConfig) ? info.sourceFile : constant 189 filesInfo += `${cacheFilePath};${recordName};${moduleType};${sourceFile};${abcFilePath}\n`; 248 let sourceFile: string = changeFileExtension(filePath, '_.js', TEMP_JS); 250 sourceFile = sourceFile.replace(this.projectConfig.projectRootPath + path.sep, ''); 255 sourceFile = toUnixPath(sourceFile); 259 sourceFile: sourceFile, constant
|
| /developtools/ace_js2bundle/ace-loader/src/ |
| D | gen-abc.js | 31 const sourceFile = inputPaths[i].sourceFile; 32 …t singleCmd = `${cmd} "${cacheOutputPath}" -o "${cacheAbcFilePath}" --source-file "${sourceFile}"`;
|
| D | genAbc-plugin.js | 197 let sourceFile = output.replace(/\.temp\.js$/, "_.js"); 200 sourceFile = toUnixPath(sourceFile.replace(buildJsonInfo.projectRootPath + path.sep, '')); 202 sourceFile = toUnixPath(sourceFile); 207 path: output, size: fileSize, cacheOutputPath: cacheOutputPath, sourceFile: sourceFile property 632 const sourceFile = info.sourceFile; 634 filesInfo += `${cacheOutputPath};${recordName};${moduleType};${sourceFile};${abcFilePath}\n`;
|
| /developtools/ace_ets2bundle/compiler/src/ |
| D | gen_abc.ts | 34 const sourceFile: string = inputPaths[i].sourceFile; constant 35 …Cmd: string = `${cmd} "${cacheOutputPath}" -o "${cacheAbcFilePath}" --source-file "${sourceFile}"`;
|
| D | validate_ui_syntax.ts | 163 fileQuery: string, sourceFile: ts.SourceFile = null): LogInfo[] { 167 const res: LogInfo[] = checkComponentDecorator(source, filePath, fileQuery, sourceFile); 173 checkUISyntax(filePath, allComponentNames, content, log, sourceFile, fileQuery); 181 fileQuery: string, sourceFile: ts.SourceFile | null): LogInfo[] | null { 183 if (!sourceFile) { 184 …sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.ETS… 186 if (sourceFile && sourceFile.statements && sourceFile.statements.length) { 191 sourceFile.statements.forEach((item, index, arr) => { 203 checkDecorators(decorators, result, item.name, log, sourceFile, item); 206 addLog(LogType.WARN, message, item.getStart(), log, sourceFile); [all …]
|
| D | process_import.ts | 127 let sourceFile: ts.SourceFile; 130 sourceFile = IMPORT_FILE_ASTCACHE.get(fileResolvePath); 132 sourceFile = generateSourceFileAST(fileResolvePath, filePath); 133 IMPORT_FILE_ASTCACHE[fileResolvePath] = sourceFile; 135 visitAllNode(sourceFile, sourceFile, defaultName, asName, path.dirname(fileResolvePath), log, 156 function visitAllNode(node: ts.Node, sourceFile: ts.SourceFile, defaultNameFromParent: string, 178 …ntry(node, log, entryCollection, exportCollection, defaultCollection, fileResolvePath, sourceFile); 253 validateModuleName(item.name, log, sourceFile, fileResolvePath); 318 node.getChildren().reverse().forEach((item: ts.Node) => visitAllNode(item, sourceFile, 350 sourceFile: ts.SourceFile): void { [all …]
|
| D | gen_abc_plugin.ts | 106 sourceFile: string property 135 sourceFile: string; property in ModuleInfo 147 this.sourceFile = filePath.replace(projectConfig.projectRootPath + path.sep, ''); 648 let sourceFile: string = output.replace(/\.temp\.js$/, "_.js"); 650 sourceFile = toUnixPath(sourceFile.replace(projectConfig.projectRootPath + path.sep, '')); 652 sourceFile = toUnixPath(sourceFile); 657 …dle.push({path: output, size: fileSize, cacheOutputPath: cacheOutputPath, sourceFile: sourceFile}); 1262 const sourceFile: string = info.sourceFile; constant 1264 filesInfo += `${cacheOutputPath};${recordName};${moduleType};${sourceFile};${abcFilePath}\n`;
|
| D | utils.ts | 74 public get sourceFile() { method in FileLog 78 public set sourceFile(newValue: ts.SourceFile) { method in FileLog 119 sourceFile: ts.SourceFile) { 120 const posOfNode: ts.LineAndCharacter = sourceFile.getLineAndCharacterOfPosition(pos); 126 fileName: sourceFile.fileName 144 const sourceFile: ts.SourceFile = transformLog.sourceFile; constant 148 const posOfNode: ts.LineAndCharacter = sourceFile.getLineAndCharacterOfPosition(item.pos); 157 item.fileName = sourceFile.fileName;
|
| D | gen_module_abc.ts | 42 …`${info.tempFilePath};${info.recordName};${moduleType};${toUnixPath(info.sourceFile)};${info.packa…
|
| D | gen_merged_abc.ts | 64 const sourceFile: string = info.filePath.replace(projectConfig.projectRootPath + path.sep, ''); constant 65 …filesInfo += `${info.tempFilePath};${info.recordName};${moduleType};${toUnixPath(sourceFile)};${in…
|
| D | process_visual.ts | 368 const sourceFile: ts.SourceFile = ts.createSourceFile( constant 377 if (sourceFile.statements) { 378 sourceFile.statements.forEach(statement => {
|
| D | ets_checker.ts | 120 program.getSourceFiles().forEach((sourceFile: ts.SourceFile) => { 121 SOURCE_FILES.set(path.normalize(sourceFile.fileName), sourceFile); 508 programAllFiles.forEach(sourceFile => { 509 const fileName = toUnixPath(sourceFile.fileName); 516 …Reflect.get(sourceFile, 'version') !== filesBuildInfo.get(isMacOrWin ? tryToLowerCasePath(fileName… 1015 const sourceFile: ts.SourceFile = ts.createSourceFile(fileName, source, constant 1017 collectComponents(sourceFile); 1018 parseAllNode(sourceFile, sourceFile, extendFunctionInfo);
|
| D | process_ui_syntax.ts | 161 transformLog.sourceFile = node; 579 const fileName: string = transformLog.sourceFile.fileName; 587 let sourceFile: ts.SourceFile | undefined = undefined; 589 sourceFile = ts.getSourceFileOfNode(type.aliasSymbol.declarations[0]); 591 sourceFile = ts.getSourceFileOfNode(type.symbol.declarations[0]); 593 if (!sourceFile) { 596 const sourceBaseName: string = path.basename(sourceFile.fileName); 597 if (isArkuiDependence(sourceFile.fileName) && 601 ohosSystemModulePaths.includes(sourceFile.fileName.replace(/\//g, '\\'))) {
|
| D | process_kit_import.ts | 219 kitTransformLog.sourceFile = node;
|
| /developtools/ace_ets2bundle/compiler/ |
| D | build_declarations_file.js | 111 …let sourceFile = ts.createSourceFile(fileName, content, ts.ScriptTarget.Latest, true, ts.ScriptKin… 113 if (sourceFile.statements && sourceFile.statements.length) { 115 sourceFile.statements.forEach((node) => { 135 sourceFile.statements.forEach((node) => { 140 sourceFile = ts.factory.updateSourceFile(sourceFile, newStatements); 142 const result = printer.printNode(ts.EmitHint.Unspecified, sourceFile, sourceFile);
|
| /developtools/ace_ets2bundle/compiler/src/fast_build/ark_compiler/common/ |
| D | gen_abc.ts | 38 const sourceFile: string = inputPaths[i].sourceFile; constant 39 …leCmd: string = `${cmd} "${cacheFilePath}" -o "${cacheAbcFilePath}" --source-file "${sourceFile}"`; 59 …content += `${info.cacheFilePath};${info.recordName};${moduleType};${info.sourceFile};${info.packa…
|
| /developtools/ace_ets2bundle/compiler/test/ark_compiler_ut/module/ |
| D | module_mode.test.ts | 121 expect(moduleInfo.sourceFile.indexOf(ENTRYABILITY_TS_PATH_DEFAULT) > 0 || 122 moduleInfo.sourceFile.indexOf(ENTRYABILITY_JS_PATH_DEFAULT) > 0 || 123 moduleInfo.sourceFile.indexOf(INDEX_ETS_PATH_DEFAULT) > 0).to.be.true; 150 expect(moduleInfo.sourceFile.indexOf(ENTRYABILITY_JS_PATH_DEFAULT) > 0 || 151 moduleInfo.sourceFile.indexOf(INDEX_JS_PATH_DEFAULT) > 0).to.be.true; 178 expect(moduleInfo.sourceFile.indexOf(ENTRYABILITY_TS_PATH_DEFAULT) > 0 || 179 moduleInfo.sourceFile.indexOf(ENTRYABILITY_JS_PATH_DEFAULT) > 0 || 180 moduleInfo.sourceFile.indexOf(INDEX_ETS_PATH_DEFAULT) > 0).to.be.true; 207 expect(moduleInfo.sourceFile.indexOf(ENTRYABILITY_TS_PATH_DEFAULT) > 0 || 208 moduleInfo.sourceFile.indexOf(ENTRYABILITY_JS_PATH_DEFAULT) > 0 || [all …]
|
| D | module_source_file.test.ts | 543 …const sourceFile = ts.createSourceFile(moduleId, code, ts.ScriptTarget.Latest, true, ts.ScriptKind… constant 544 const moduleSource = new ModuleSourceFile(moduleId, sourceFile); 572 …const sourceFile = ts.createSourceFile(moduleId, code, ts.ScriptTarget.Latest, true, ts.ScriptKind… constant 573 const moduleSource = new ModuleSourceFile(moduleId, sourceFile); 601 …const sourceFile = ts.createSourceFile(moduleId, code, ts.ScriptTarget.Latest, true, ts.ScriptKind… constant 602 const moduleSource = new ModuleSourceFile(moduleId, sourceFile); 630 …const sourceFile = ts.createSourceFile(moduleId, code, ts.ScriptTarget.Latest, true, ts.ScriptKind… constant 631 const moduleSource = new ModuleSourceFile(moduleId, sourceFile);
|
| /developtools/ace_ets2bundle/compiler/src/fast_build/ark_compiler/ |
| D | check_import_module.ts | 29 ModuleSourceFile.getSourceFiles().forEach((sourceFile: ModuleSourceFile) => { 30 const id: string = sourceFile.getModuleId();
|
| /developtools/ace_ets2bundle/compiler/src/fast_build/ark_compiler/module/ |
| D | module_mode.ts | 98 sourceFile: string; property in ModuleInfo 101 …lePath: string, cacheFilePath: string, isCommonJs: boolean, recordName: string, sourceFile: string, 108 this.sourceFile = sourceFile; 305 let sourceFile: string = filePath.replace(this.projectConfig.projectRootPath + path.sep, ''); 322 sourceFile = isDebug(this.projectConfig) ? toUnixPath(sourceFile) : 326 …ilePath, new ModuleInfo(filePath, cacheFilePath, isCommonJs, recordName, sourceFile, packageName)); 413 …filesInfo += `${info.cacheFilePath};${info.recordName};${moduleType};${info.sourceFile};${info.pac…
|
| /developtools/ace_ets2bundle/compiler/test/ark_compiler_ut/mock/class_mock/ |
| D | module_mode_mock.ts | 66 … `${info.cacheFilePath};${info.recordName};${moduleType};${info.sourceFile};${info.packageName}\n`;
|
| /developtools/packing_tool/adapter/ohos/ |
| D | FileUtils.java | 342 … public static void copyFile(File sourceFile, File destFile) throws IOException, BundleException { in copyFile() argument 343 if (sourceFile == null || destFile == null) { in copyFile() 351 inputStream = new FileInputStream(sourceFile); in copyFile()
|
| D | Scan.java | 161 File sourceFile = new File(absolutePath); in getAllInputFileList() local 162 FileUtils.copyFile(sourceFile, targetFile); in getAllInputFileList()
|
| D | Compressor.java | 1192 File sourceFile = new File(source); in copyFileSafely() local 1194 FileUtils.copyFile(sourceFile, destFile); in copyFileSafely() 2004 …private void compress(File sourceFile, ZipOutputStream zipOutputStream, String name, boolean keepD… in compress() argument 2008 if (sourceFile.isFile()) { in compress() 2009 ZipEntry zipEntry = getStoredZipEntry(sourceFile, name); in compress() 2011 in = new FileInputStream(sourceFile); in compress() 2018 File[] listFiles = sourceFile.listFiles(); in compress() 2022 ZipEntry zipEntry = getStoredZipEntry(sourceFile, name + "/"); in compress() 2025 ZipEntry zipEntry = getStoredZipEntry(sourceFile, name); in compress() 2051 private ZipEntry getStoredZipEntry(File sourceFile, String name) throws BundleException { in getStoredZipEntry() argument [all …]
|
| /developtools/ace_ets2bundle/compiler/src/fast_build/ets_ui/ |
| D | rollup-plugin-ets-typescript.ts | 389 function validateEts(code: string, id: string, isEntry: boolean, logger: any, sourceFile: ts.Source… 393 const log: LogInfo[] = validateUISyntax(code, code, id, fileQuery, sourceFile);
|