Lines Matching refs:fileName
51 .forEach((fileName: string) => {
52 if (/\.d\.ts$/.test(fileName)) {
53 declarationsFileNames.push(path.resolve(__dirname, '../declarations', fileName));
94 getScriptVersion: fileName =>
95 files[fileName] && files[fileName].version.toString(),
96 getScriptSnapshot: fileName => {
97 if (!fs.existsSync(fileName)) {
100 if (/(?<!\.d)\.(ets|ts)$/.test(fileName)) {
101 const content: string = processContent(fs.readFileSync(fileName).toString());
102 checkUISyntax(content, fileName);
105 return ts.ScriptSnapshot.fromString(fs.readFileSync(fileName).toString());
129 fileExists(fileName: string): boolean {
130 return ts.sys.fileExists(fileName);
132 readFile(fileName: string): string | undefined {
133 return ts.sys.readFile(fileName);
229 host.readFile = (fileName: string) => {
230 if (!fs.existsSync(fileName)) {
233 if (/(?<!\.d)\.(ets|ts)$/.test(fileName)) {
234 const content: string = processContent(fs.readFileSync(fileName).toString());
235 checkUISyntax(content, fileName);
238 return fs.readFileSync(fileName).toString();
258 function checkUISyntax(source: string, fileName: string): void {
259 if (/\.ets$/.test(fileName)) {
261 path.resolve(fileName) !== path.resolve(projectConfig.projectPath, 'app.ets')) {
262 const sourceFile: ts.SourceFile = ts.createSourceFile(fileName, source,