private static ICollection <ILexSymbol> Build(ILexFile file)
        {
            var ret = new LexCacheBuilder();

            file.ProcessDescendants(ret);
            return(ret.GetSymbols());
        }
Esempio n. 2
0
 protected LexDaemonStageProcessBase(IDaemonProcess process, IContextBoundSettingsStore settingsStore)
 {
     myDaemonProcess = process;
     mySettingsStore = settingsStore;
     PsiServices     = process.Solution.GetPsiServices();
     myFile          = LexDaemonStageBase.GetPsiFile(myDaemonProcess.SourceFile);
 }
Esempio n. 3
0
        protected bool IsSupported(IPsiSourceFile sourceFile)
        {
            if (sourceFile == null || !sourceFile.IsValid())
            {
                return(false);
            }

            ILexFile lexFile = GetPsiFile(sourceFile);

            return(lexFile != null && lexFile.Language.Is <LexLanguage>());
        }