| /developtools/ace_ets2bundle/compiler/src/fast_build/ark_compiler/bundle/ |
| D | bundle_mode.ts | 59 sourceFile: string; property 182 const sourceFile: string = info.sourceFile; constant 184 filesInfo += `${cacheFilePath};${recordName};${moduleType};${sourceFile};${abcFilePath}\n`; 243 let sourceFile: string = changeFileExtension(filePath, '_.js', TEMP_JS); 245 sourceFile = sourceFile.replace(this.projectConfig.projectRootPath + path.sep, ''); 250 sourceFile = toUnixPath(sourceFile); 254 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 …gleCmd: any = `${cmd} "${cacheOutputPath}" -o "${cacheAbcFilePath}" --source-file "${sourceFile}"`;
|
| D | validate_ui_syntax.ts | 167 fileQuery: string, sourceFile: ts.SourceFile = null): LogInfo[] { 171 const res: LogInfo[] = checkComponentDecorator(source, filePath, fileQuery, sourceFile); 177 checkUISyntax(filePath, allComponentNames, content, log, sourceFile, fileQuery); 185 fileQuery: string, sourceFile: ts.SourceFile | null): LogInfo[] | null { 187 if (!sourceFile) { 188 …sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.ETS… 190 if (sourceFile && sourceFile.statements && sourceFile.statements.length) { 195 sourceFile.statements.forEach((item, index, arr) => { 206 checkDecorators(item.decorators, result, item.name, log, sourceFile, item); 209 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, 154 function visitAllNode(node: ts.Node, sourceFile: ts.SourceFile, defaultNameFromParent: string, 176 …ntry(node, log, entryCollection, exportCollection, defaultCollection, fileResolvePath, sourceFile); 249 validateModuleName(item.name, log, sourceFile, fileResolvePath); 314 node.getChildren().reverse().forEach((item: ts.Node) => visitAllNode(item, sourceFile, 346 sourceFile: ts.SourceFile): void { [all …]
|
| D | utils.ts | 75 public get sourceFile() { method in FileLog 79 public set sourceFile(newValue: ts.SourceFile) { method in FileLog 115 sourceFile: ts.SourceFile) { 116 const posOfNode: ts.LineAndCharacter = sourceFile.getLineAndCharacterOfPosition(pos); 122 fileName: sourceFile.fileName 140 const sourceFile: ts.SourceFile = transformLog.sourceFile; constant 144 const posOfNode: ts.LineAndCharacter = sourceFile.getLineAndCharacterOfPosition(item.pos); 153 item.fileName = sourceFile.fileName;
|
| D | gen_abc_plugin.ts | 106 sourceFile: string property 135 sourceFile: string; property in ModuleInfo 147 this.sourceFile = filePath.replace(projectConfig.projectRootPath + path.sep, ''); 647 let sourceFile: string = output.replace(/\.temp\.js$/, "_.js"); 649 sourceFile = toUnixPath(sourceFile.replace(projectConfig.projectRootPath + path.sep, '')); 651 sourceFile = toUnixPath(sourceFile); 656 …dle.push({path: output, size: fileSize, cacheOutputPath: cacheOutputPath, sourceFile: sourceFile}); 1261 const sourceFile: string = info.sourceFile; constant 1263 filesInfo += `${cacheOutputPath};${recordName};${moduleType};${sourceFile};${abcFilePath}\n`;
|
| 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 | 73 program.getSourceFiles().forEach((sourceFile: ts.SourceFile) => { 74 SOURCE_FILES.set(path.normalize(sourceFile.fileName), sourceFile); 729 const sourceFile: ts.SourceFile = ts.createSourceFile(fileName, source, constant 731 collectComponents(sourceFile); 732 parseAllNode(sourceFile, sourceFile, extendFunctionInfo);
|
| D | process_component_build.ts | 708 posOfNode = transformLog.sourceFile.getLineAndCharacterOfPosition(getRealNodePos(node)); 709 curFileName = transformLog.sourceFile.fileName.replace(/\.ts$/, ''); 2100 const posOfNode: ts.LineAndCharacter = transformLog.sourceFile 2102 const curFileName: string = transformLog.sourceFile.fileName.replace(/\.ts$/, ''); 2722 transformLog.sourceFile,
|
| D | process_ui_syntax.ts | 152 transformLog.sourceFile = node;
|
| D | process_component_member.ts | 787 …ts.factory.createStringLiteral(path.basename(transformLog.sourceFile.fileName, EXTNAME_ETS) + '_'),
|
| /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) => { 134 sourceFile.statements.forEach((node) => { 139 sourceFile = ts.factory.updateSourceFile(sourceFile, newStatements); 141 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 …ingleCmd: any = `${cmd} "${cacheFilePath}" -o "${cacheAbcFilePath}" --source-file "${sourceFile}"`; 59 …content += `${info.cacheFilePath};${info.recordName};${moduleType};${info.sourceFile};${info.packa…
|
| /developtools/ace_ets2bundle/compiler/src/fast_build/ark_compiler/ |
| D | check_import_module.ts | 28 ModuleSourceFile.getSourceFiles().forEach((sourceFile: ModuleSourceFile) => { 29 const id: string = sourceFile.getModuleId();
|
| /developtools/ace_ets2bundle/compiler/src/fast_build/ark_compiler/module/ |
| D | module_mode.ts | 91 sourceFile: string; property in ModuleInfo 94 …lePath: string, cacheFilePath: string, isCommonJs: boolean, recordName: string, sourceFile: string, 101 this.sourceFile = sourceFile; 256 let sourceFile: string = filePath.replace(this.projectConfig.projectRootPath + path.sep, ''); 273 sourceFile = toUnixPath(sourceFile); 276 …ilePath, new ModuleInfo(filePath, cacheFilePath, isCommonJs, recordName, sourceFile, packageName)); 351 …filesInfo += `${info.cacheFilePath};${info.recordName};${moduleType};${info.sourceFile};${info.pac…
|
| /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 | Compressor.java | 1699 private void compress(File sourceFile, ZipOutputStream zipOutputStream, String name, in compress() argument 1704 if (sourceFile.isFile()) { in compress() 1705 ZipEntry zipEntry = getStoredZipEntry(sourceFile, name); in compress() 1707 in = new FileInputStream(sourceFile); in compress() 1714 File[] listFiles = sourceFile.listFiles(); in compress() 1718 ZipEntry zipEntry = getStoredZipEntry(sourceFile, name + "/"); in compress() 1721 ZipEntry zipEntry = getStoredZipEntry(sourceFile, name); in compress() 1747 private ZipEntry getStoredZipEntry(File sourceFile, String name) throws BundleException { in getStoredZipEntry() argument 1750 zipEntry.setCompressedSize(sourceFile.length()); in getStoredZipEntry() 1751 zipEntry.setSize(sourceFile.length()); in getStoredZipEntry() [all …]
|
| /developtools/ace_ets2bundle/compiler/src/fast_build/ets_ui/ |
| D | rollup-plugin-ets-typescript.ts | 309 function validateEts(code: string, id: string, isEntry: boolean, logger: any, sourceFile: ts.Source… 313 const log: LogInfo[] = validateUISyntax(code, code, id, fileQuery, sourceFile);
|