• Home
  • Raw
  • Download

Lines Matching refs:fileName

71     SOURCE_FILES.set(path.normalize(sourceFile.fileName), sourceFile);
78 .forEach((fileName: string) => {
79 if (/\.d\.ts$/.test(fileName)) {
80 declarationsFileNames.push(path.resolve(__dirname, '../declarations', fileName));
166 function getCheckJSDocTagNameConfig(fileName: string, sourceFileName: string): CheckJSDocTagNameCon…
170 if (isCardFile(fileName)) {
196 rootFileNames.forEach((fileName: string) => {
197 files[fileName] = {version: 0};
201 getScriptVersion: fileName => {
202 if (!files[path.resolve(fileName)]) {
203 files[path.resolve(fileName)] = {version: 0};
205 return files[path.resolve(fileName)].version.toString();
207 getScriptSnapshot: fileName => {
208 if (!fs.existsSync(fileName)) {
211 if (/(?<!\.d)\.(ets|ts)$/.test(fileName)) {
212 appComponentCollection.set(path.join(fileName), new Set());
213 let content: string = processContent(fs.readFileSync(fileName).toString(), fileName);
215 content = instanceInsteadThis(content, fileName, extendFunctionInfo);
218 return ts.ScriptSnapshot.fromString(fs.readFileSync(fileName).toString());
230 getTagNameNeededCheckByFile: (fileName: string, sourceFileName: string) => {
231 return getCheckJSDocTagNameConfig(fileName, sourceFileName);
276 rootFileNames.forEach(fileName => {
277 hotReloadSupportFiles.add(fileName);
368 if (containFormError(message) && !isCardFile(diagnostic.file.fileName)) {
383 …logMessage = `ArkTS:${logPrefix} File: ${diagnostic.file.fileName}:${line + 1}:${character + 1}\n …
416 if (diagnostic.file && cache[path.resolve(diagnostic.file.fileName)]) {
417 cache[path.resolve(diagnostic.file.fileName)].error = true;
462 fileExists(fileName: string): boolean {
463 return ts.sys.fileExists(fileName);
465 readFile(fileName: string): string | undefined {
466 return ts.sys.readFile(fileName);
644 rootFileNames.forEach(fileName => {
645 hotReloadSupportFiles.add(fileName);
672 host.readFile = (fileName: string) => {
673 if (!fs.existsSync(fileName)) {
676 if (/(?<!\.d)\.(ets|ts)$/.test(fileName)) {
677 let content: string = processContent(fs.readFileSync(fileName).toString(), fileName);
679 content = instanceInsteadThis(content, fileName, extendFunctionInfo);
682 return fs.readFileSync(fileName).toString();
695 export function instanceInsteadThis(content: string, fileName: string, extendFunctionInfo: extendIn…
696 checkUISyntax(content, fileName, extendFunctionInfo);
720 function checkUISyntax(source: string, fileName: string, extendFunctionInfo: extendInfo[]): void {
721 if (/\.ets$/.test(fileName)) {
723 path.resolve(fileName) !== path.resolve(projectConfig.projectPath, 'app.ets')) {
724 const sourceFile: ts.SourceFile = ts.createSourceFile(fileName, source,
739 appComponentCollection.get(path.join(node.fileName)).add(key);
767 appComponentCollection.get(path.join(sourceFileNode.fileName)).add(COMPONENT_IF);
960 …((diagnostics.file.fileName.indexOf('/oh_modules/') !== -1) || diagnostics.file.fileName.indexOf('…
964 const fileName = diagnostics.file?.fileName; constant
965 if (projectConfig.etsLoaderPath === undefined || fileName === undefined) {
969 return path.resolve(fileName).startsWith(sdkPath);
1016 Object.values(entryObj).forEach((fileName: string) => {
1017 rootFileNames.push(path.resolve(fileName));