• Home
  • Raw
  • Download

Lines Matching full:filename

110     .forEach((fileName: string) => {
111 if (/\.d\.ts$/.test(fileName)) {
112 declarationsFileNames.push(path.resolve(__dirname, '../declarations', fileName));
118 const buildInfoWriteFile: ts.WriteFileCallback = (fileName: string, data: string) => {
119 if (fileName.includes(TS_BUILD_INFO_SUFFIX)) {
120 const fd: number = fs.openSync(fileName, 'w');
280 export const fileHashScriptVersion: (fileName: string) => string = (fileName: string) => {
281 if (!fs.existsSync(fileName)) {
285 let fileContent: string = fs.readFileSync(fileName).toString();
286 let cacheInfo: CacheFileName = cache[path.resolve(fileName)];
311 getScriptSnapshot: function(fileName) {
312 if (!fs.existsSync(fileName)) {
315 if (/(?<!\.d)\.(ets|ts)$/.test(fileName)) {
317 appComponentCollection.set(path.join(fileName), new Set());
318 let content: string = processContent(fs.readFileSync(fileName).toString(), fileName);
320 content = instanceInsteadThis(content, fileName, extendFunctionInfo, this.uiProps);
324 return ts.ScriptSnapshot.fromString(fs.readFileSync(fileName).toString());
483 rootFileNames.forEach(fileName => {
484 hotReloadSupportFiles.add(fileName);
553 const fileName = toUnixPath(sourceFile.fileName); constant
554 if (!fileName.startsWith(projectRootPath)) {
557 allSourceFilePaths.add(fileName);
558 allModuleIds.add(sourceFile.fileName);
560 // while fileName of sourceFile is the original path (including uppercase).
562 …rceFile, 'version') !== filesBuildInfo.get(isMacOrWin ? tryToLowerCasePath(fileName) : fileName)) {
563 allResolvedModules.add(fileName);
617 let writeFile = (fileName: string, text: string, writeByteOrderMark: boolean): void => {
711 sourceFile.fileName &&
712 (!isInSDK(sourceFile.fileName) || (/\.(c|m)?js$/).test(sourceFile.fileName)) &&
713 !resolvedTypeReferenceDirectivesFiles.has(sourceFile.fileName) &&
714 fileToIgnoreDiagnostics.add(toUnixPath(sourceFile.fileName));
727 if (fileToIgnoreDiagnostics && diagnostic.file && diagnostic.file.fileName &&
728 fileToIgnoreDiagnostics.has(toUnixPath(diagnostic.file.fileName))) {
738 if (containFormError(message) && !isCardFile(diagnostic.file.fileName)) {
753 …logMessage = `ArkTS:${logPrefix} File: ${diagnostic.file.fileName}:${line + 1}:${character + 1}\n …
790 let cacheInfo: CacheFileName = cache[path.resolve(diagnostic.file.fileName)];
846 fileExists: (fileName: string): boolean => {
847 let exists = fileExistsCache.get(fileName);
849 exists = ts.sys.fileExists(fileName);
850 fileExistsCache.set(fileName, exists);
862 readFile(fileName: string): string | undefined {
863 return ts.sys.readFile(fileName);
886 const typeName = isString(entry) ? entry : entry.fileName.toLowerCase();
1059 rootFileNames.forEach(fileName => {
1060 hotReloadSupportFiles.add(fileName);
1092 host.readFile = (fileName: string) => {
1093 if (!fs.existsSync(fileName)) {
1096 if (/(?<!\.d)\.(ets|ts)$/.test(fileName)) {
1097 let content: string = processContent(fs.readFileSync(fileName).toString(), fileName);
1099 content = instanceInsteadThis(content, fileName, extendFunctionInfo, props);
1102 return fs.readFileSync(fileName).toString();
1115 export function instanceInsteadThis(content: string, fileName: string, extendFunctionInfo: extendIn…
1117 checkUISyntax(content, fileName, extendFunctionInfo, props);
1140 function checkUISyntax(source: string, fileName: string, extendFunctionInfo: extendInfo[], props: s…
1141 if (/\.ets$/.test(fileName)) {
1143 path.resolve(fileName) !== path.resolve(projectConfig.projectPath, 'app.ets')) {
1144 const sourceFile: ts.SourceFile = ts.createSourceFile(fileName, source,
1192 appComponentCollection.get(path.join(node.fileName)).add(key);
1218 appComponentCollection.get(path.join(sourceFileNode.fileName)).add(COMPONENT_IF);
1452 if (diagnostics.file?.fileName === undefined) {
1455 return isInSDK(diagnostics.file.fileName) && diagnostics.file.fileName.endsWith('.ets');
1460 …((diagnostics.file.fileName.indexOf('/oh_modules/') !== -1) || diagnostics.file.fileName.indexOf('…
1463 function isInSDK(fileName: string | undefined): boolean {
1464 if (projectConfig.etsLoaderPath === undefined || fileName === undefined) {
1468 return path.resolve(fileName).startsWith(sdkPath);
1588 Object.values(entryObj).forEach((fileName: string) => {
1589 rootFileNames.push(path.resolve(fileName));