add converter output caching
- add two level caching: per xml conversion result and complete resulting JetFile, so that only modified xmls are actually converted, and if no change has been made to any of those, last successfully built psi file is returned - merge AndroidUIXmlPathProvider and AndroidUIXmlParser - update tests
This commit is contained in:
committed by
Yan Zhulanow
parent
f5b9b155cd
commit
eb7534f369
+2
-3
@@ -178,9 +178,8 @@ public enum TopDownAnalyzerFacadeForJVM {
|
||||
}
|
||||
|
||||
private static Collection<JetFile> searchAndAddAndroidDeclarations(Project project, Collection<JetFile> files) {
|
||||
AndroidUIXmlPathProvider provider = ServiceManager.getService(project, AndroidUIXmlPathProvider.class);
|
||||
Collection<File> paths = provider.getPaths();
|
||||
JetFile file = new AndroidUIXmlParser(project, paths).parseToPsi();
|
||||
AndroidUIXmlParser parser = ServiceManager.getService(project, AndroidUIXmlParser.class);
|
||||
JetFile file = parser.parseToPsi(project);
|
||||
if (file != null) files.add(file);
|
||||
return files;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user