Home
last modified time | relevance | path

Searched refs:sourceFile (Results 1 – 22 of 22) sorted by relevance

/developtools/ace_ets2bundle/compiler/src/fast_build/ark_compiler/bundle/
Dbundle_mode.ts59 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/
Dgen-abc.js31 const sourceFile = inputPaths[i].sourceFile;
32 …t singleCmd = `${cmd} "${cacheOutputPath}" -o "${cacheAbcFilePath}" --source-file "${sourceFile}"`;
DgenAbc-plugin.js197 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/
Dgen_abc.ts34 const sourceFile: string = inputPaths[i].sourceFile; constant
35 …gleCmd: any = `${cmd} "${cacheOutputPath}" -o "${cacheAbcFilePath}" --source-file "${sourceFile}"`;
Dvalidate_ui_syntax.ts167 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) {
188sourceFile = 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 …]
Dprocess_import.ts127 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 …]
Dutils.ts75 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;
Dgen_abc_plugin.ts106 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`;
Dgen_module_abc.ts42 …`${info.tempFilePath};${info.recordName};${moduleType};${toUnixPath(info.sourceFile)};${info.packa…
Dgen_merged_abc.ts64 const sourceFile: string = info.filePath.replace(projectConfig.projectRootPath + path.sep, ''); constant
65 …filesInfo += `${info.tempFilePath};${info.recordName};${moduleType};${toUnixPath(sourceFile)};${in…
Dprocess_visual.ts368 const sourceFile: ts.SourceFile = ts.createSourceFile( constant
377 if (sourceFile.statements) {
378 sourceFile.statements.forEach(statement => {
Dets_checker.ts73 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);
Dprocess_component_build.ts708 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,
Dprocess_ui_syntax.ts152 transformLog.sourceFile = node;
Dprocess_component_member.ts787 …ts.factory.createStringLiteral(path.basename(transformLog.sourceFile.fileName, EXTNAME_ETS) + '_'),
/developtools/ace_ets2bundle/compiler/
Dbuild_declarations_file.js111 …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/
Dgen_abc.ts38 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/
Dcheck_import_module.ts28 ModuleSourceFile.getSourceFiles().forEach((sourceFile: ModuleSourceFile) => {
29 const id: string = sourceFile.getModuleId();
/developtools/ace_ets2bundle/compiler/src/fast_build/ark_compiler/module/
Dmodule_mode.ts91 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/
DFileUtils.java342 … 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()
DCompressor.java1699 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/
Drollup-plugin-ets-typescript.ts309 function validateEts(code: string, id: string, isEntry: boolean, logger: any, sourceFile: ts.Source…
313 const log: LogInfo[] = validateUISyntax(code, code, id, fileQuery, sourceFile);