private static ICollection <ILexSymbol> Build(ILexFile file) { var ret = new LexCacheBuilder(); file.ProcessDescendants(ret); return(ret.GetSymbols()); }
protected LexDaemonStageProcessBase(IDaemonProcess process, IContextBoundSettingsStore settingsStore) { myDaemonProcess = process; mySettingsStore = settingsStore; PsiServices = process.Solution.GetPsiServices(); myFile = LexDaemonStageBase.GetPsiFile(myDaemonProcess.SourceFile); }
protected bool IsSupported(IPsiSourceFile sourceFile) { if (sourceFile == null || !sourceFile.IsValid()) { return(false); } ILexFile lexFile = GetPsiFile(sourceFile); return(lexFile != null && lexFile.Language.Is <LexLanguage>()); }