public Analyze ( IPsiSourceFile sourceFile ) : IEnumerable |
||
sourceFile | IPsiSourceFile | |
return | IEnumerable |
public ContainerRegistrationAnalysisStageProcess(IDaemonProcess process, IContextBoundSettingsStore settingsStore, ITypeUsageManager typeUsageManager, SolutionAnalyzer solutionAnalyzer) { this.process = process; this.settingsStore = settingsStore; this.typeUsageManager = typeUsageManager; cachedComponentRegistrations = solutionAnalyzer.Analyze().ToList(); }
protected void RunTest(string testName, Action<IEnumerable<RegistrationInfo>> action) { string fileName = testName + Extension; var dataPath = new DirectoryInfo(Path.Combine(SolutionItemsBasePath, RelativeTypesPath)); var fileSet = dataPath.GetFiles("*.cs").SelectNotNull(fileInfo => Path.Combine(RelativeTypesPath, fileInfo.Name)).Concat(new[] { fileName }); WithSingleProject(fileSet, (lifetime, project) => RunGuarded(() => { var searchDomainFactory = ShellInstance.GetComponent<SearchDomainFactory>(); var patternSearcher = new PatternSearcher(searchDomainFactory); var solutionnAnalyzer = new SolutionAnalyzer(patternSearcher); solutionnAnalyzer.AddContainer(ContainerInfo); var componentRegistrations = solutionnAnalyzer.Analyze(); action(componentRegistrations); })); }
private IEnumerable <RegistrationInfo> ProcessSourceFile(IPsiSourceFile sourceFile) { return(solutionAnalyzer.Analyze(sourceFile)); }
public RegisteredComponentsContextSearch(SolutionAnalyzer solutionAnalyzer, IShellLocks locks) { this.locks = locks; cachedRegistrations = solutionAnalyzer.Analyze(); }