bool IsInPreprocessorDirective() { var text = GetMemberTextToCaret().Item1; var miniLexer = new MiniLexer(text); miniLexer.Parse(); return miniLexer.IsInPreprocessorDirective; }