Home
last modified time | relevance | path

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

/developtools/ace-ets2bundle/compiler/src/
Dresult_process.ts45 const sourceFile: ts.SourceFile = transformLog.sourceFile; constant
49 … const posOfNode: ts.LineAndCharacter = sourceFile.getLineAndCharacterOfPosition(item.pos);
57 item.fileName = item.fileName || sourceFile.fileName;
Dprocess_import.ts113 let sourceFile: ts.SourceFile;
116 sourceFile = IMPORT_FILE_ASTCACHE.get(fileResolvePath);
123sourceFile = ts.createSourceFile(filePath, content, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS…
124 IMPORT_FILE_ASTCACHE[fileResolvePath] = sourceFile;
126 …visitAllNode(sourceFile, sourceFile, defaultName, asName, path.dirname(fileResolvePath), log, new …
134 function visitAllNode(node: ts.Node, sourceFile: ts.SourceFile, defaultNameFromParent: string, asNa…
191 validateModuleName(item.name, log, sourceFile, fileResolvePath);
249 …node.getChildren().reverse().forEach((item: ts.Node) => visitAllNode(item, sourceFile, defaultName…
431 function validateModuleName(moduleNode: ts.Identifier, log: LogInfo[], sourceFile?: ts.SourceFile,
440 if (sourceFile && fileResolvePath) {
[all …]
Dvalidate_ui_syntax.ts154 const sourceFile: ts.SourceFile = ts.createSourceFile(filePath, source, constant
156 if (sourceFile && sourceFile.statements && sourceFile.statements.length) {
161 sourceFile.statements.forEach((item, index, arr) => {
172 checkDecorators(item.decorators, result, item.name, log, sourceFile, item);
175 addLog(LogType.WARN, message, item.getStart(), log, sourceFile);
179 addLog(LogType.ERROR, message, item.getStart(), log, sourceFile);
187 addLog(LogType.ERROR, message, item.getStart(), log, sourceFile);
201 validateEntryAndPreviewCount(result, fileQuery, sourceFile.fileName, projectConfig.isPreview,
262 …component: ts.Identifier, log: LogInfo[], sourceFile: ts.SourceFile, node: ts.StructDeclaration): …
271 checkEntryComponent(node, log, sourceFile);
[all …]
Dutils.ts52 public get sourceFile() { method in FileLog
56 public set sourceFile(newValue: ts.SourceFile) { method in FileLog
88 sourceFile: ts.SourceFile) {
89 const posOfNode: ts.LineAndCharacter = sourceFile.getLineAndCharacterOfPosition(pos);
95 fileName: sourceFile.fileName
Dpre_process.ts85 const sourceFile: ts.SourceFile = ts.createSourceFile(resourcePath, content, constant
88 if (sourceFile.statements) {
89 sourceFile.statements.forEach(statement => {
Dets_checker.ts262 const sourceFile: ts.SourceFile = ts.createSourceFile(fileName, source, constant
264 collectComponents(sourceFile);
265 parseAllNode(sourceFile, sourceFile);
Dprocess_ui_syntax.ts93 transformLog.sourceFile = node;
Dprocess_component_build.ts354 posOfNode = transformLog.sourceFile.getLineAndCharacterOfPosition(getRealNodePos(node));
355 curFileName = transformLog.sourceFile.fileName.replace(/\.ts$/, '');
/developtools/ace-ets2bundle/compiler/
Dbuild_declarations_file.js100 …let sourceFile = ts.createSourceFile(fileName, content, ts.ScriptTarget.Latest, true, ts.ScriptKin…
102 if (sourceFile.statements && sourceFile.statements.length) {
104 sourceFile.statements.forEach((node) => {
123 sourceFile.statements.forEach((node) => {
128 sourceFile = ts.factory.updateSourceFile(sourceFile, newStatements);
130 const result = printer.printNode(ts.EmitHint.Unspecified, sourceFile, sourceFile);
/developtools/ace-js2bundle/ace-loader/src/
Dgen-abc.js28 let sourceFile = inputPaths[i].path.replace(/\.temp\.js$/, "_.js");
30 let singleCmd = `${cmd} "${input}" -o "${abcFilePath}" --source-file "${sourceFile}"`;
/developtools/packing_tool/adapter/ohos/
DCompressor.java1086 private void compress(File sourceFile, ZipOutputStream zipOutputStream, String name, in compress() argument
1091 if (sourceFile.isFile()) { in compress()
1092 ZipEntry zipEntry = getStoredZipEntry(sourceFile, name); in compress()
1094 in = new FileInputStream(sourceFile); in compress()
1101 File[] listFiles = sourceFile.listFiles(); in compress()
1105 ZipEntry zipEntry = getStoredZipEntry(sourceFile, name + "/"); in compress()
1108 ZipEntry zipEntry = getStoredZipEntry(sourceFile, name); in compress()
1134 private ZipEntry getStoredZipEntry(File sourceFile, String name) throws BundleException { in getStoredZipEntry() argument
1137 zipEntry.setCompressedSize(sourceFile.length()); in getStoredZipEntry()
1138 zipEntry.setSize(sourceFile.length()); in getStoredZipEntry()
[all …]