Lines Matching refs:sourceFile
167 fileQuery: string, sourceFile: ts.SourceFile = null): LogInfo[] {
171 const res: LogInfo[] = checkComponentDecorator(source, filePath, fileQuery, sourceFile);
177 checkUISyntax(filePath, allComponentNames, content, log, sourceFile, fileQuery);
185 fileQuery: string, sourceFile: ts.SourceFile | null): LogInfo[] | null {
187 if (!sourceFile) {
188 …sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.ETS…
190 if (sourceFile && sourceFile.statements && sourceFile.statements.length) {
195 sourceFile.statements.forEach((item, index, arr) => {
206 checkDecorators(item.decorators, result, item.name, log, sourceFile, item);
209 addLog(LogType.WARN, message, item.getStart(), log, sourceFile);
213 addLog(LogType.ERROR, message, item.getStart(), log, sourceFile);
221 addLog(LogType.ERROR, message, item.getStart(), log, sourceFile);
229 storedFileInfo.wholeFileInfo[path.resolve(sourceFile.fileName)].hasEntry = true;
231 storedFileInfo.wholeFileInfo[path.resolve(sourceFile.fileName)].hasEntry = false;
234 validateEntryAndPreviewCount(result, fileQuery, sourceFile.fileName, projectConfig.isPreview,
296 …component: ts.Identifier, log: LogInfo[], sourceFile: ts.SourceFile, node: ts.StructDeclaration): …
308 checkEntryComponent(node, log, sourceFile);
333 addLog(LogType.WARN, message, pos, log, sourceFile);
338 addLog(LogType.WARN, message, component.pos, log, sourceFile);
343 addLog(LogType.ERROR, message, component.pos, log, sourceFile);
348 addLog(LogType.ERROR, message, component.pos, log, sourceFile);
353 sourceFile: ts.SourceFile): void {
356 addLog(LogType.ERROR, message, node.decorators!.pos, log, sourceFile);
360 addLog(LogType.ERROR, message, node.decorators!.pos, log, sourceFile);
368 addLog(LogType.ERROR, message, node.decorators!.pos, log, sourceFile);
392 log: LogInfo[], sourceFile: ts.SourceFile | null, fileQuery: string): void {
393 if (!sourceFile) {
394 …sourceFile = ts.createSourceFile(filePath, content, ts.ScriptTarget.Latest, true, ts.ScriptKind.ET…
396 visitAllNode(sourceFile, sourceFile, allComponentNames, log, false, fileQuery);
1226 function checkEntryComponent(node: ts.StructDeclaration, log: LogInfo[], sourceFile: ts.SourceFile)…
1232 addLog(LogType.WARN, message, node.getStart(), log, sourceFile);