Lines Matching full:filename
57 .forEach((fileName: string) => {
58 if (/\.d\.ts$/.test(fileName)) {
59 declarationsFileNames.push(path.resolve(__dirname, '../declarations', fileName));
111 getScriptVersion: fileName =>
112 files[fileName] && files[fileName].version.toString(),
113 getScriptSnapshot: fileName => {
114 if (!fs.existsSync(fileName)) {
117 if (/(?<!\.d)\.(ets|ts)$/.test(fileName)) {
118 let content: string = processContent(fs.readFileSync(fileName).toString());
120 content = instanceInsteadThis(content, fileName, extendFunctionInfo);
123 return ts.ScriptSnapshot.fromString(fs.readFileSync(fileName).toString());
134 getTagNameNeededCheckByFile: (fileName, sourceFileName) => {
137 isCardFile(fileName)) {
257 if (containFormError(message) && !isCardFile(diagnostic.file.fileName)) {
267 … `ArkTS:ERROR File: ${diagnostic.file.fileName}:${line + 1}:${character + 1}\n ${message}\n`) :
269 … `ArkTS:ERROR File: ${diagnostic.file.fileName}:${line + 1}:${character + 1}\n ${message}\n`);
297 if (diagnostic.file && cache[path.resolve(diagnostic.file.fileName)]) {
298 cache[path.resolve(diagnostic.file.fileName)].error = true;
351 fileExists(fileName: string): boolean {
352 return ts.sys.fileExists(fileName);
354 readFile(fileName: string): string | undefined {
355 return ts.sys.readFile(fileName);
474 rootFileNames.forEach(fileName => {
475 hotReloadSupportFiles.add(fileName);
501 host.readFile = (fileName: string) => {
502 if (!fs.existsSync(fileName)) {
505 if (/(?<!\.d)\.(ets|ts)$/.test(fileName)) {
506 let content: string = processContent(fs.readFileSync(fileName).toString());
508 content = instanceInsteadThis(content, fileName, extendFunctionInfo);
511 return fs.readFileSync(fileName).toString();
523 function instanceInsteadThis(content: string, fileName: string, extendFunctionInfo: extendInfo[]): …
524 checkUISyntax(content, fileName, extendFunctionInfo);
548 function checkUISyntax(source: string, fileName: string, extendFunctionInfo: extendInfo[]): void {
549 if (/\.ets$/.test(fileName)) {
551 path.resolve(fileName) !== path.resolve(projectConfig.projectPath, 'app.ets')) {
552 const sourceFile: ts.SourceFile = ts.createSourceFile(fileName, source,