private ReadOnlyCollection<DropDownEntryInfo> _topLevelEntries; // entries for top-level members of the file #endregion Fields #region Constructors public DropDownBarClient(IWpfTextView textView, IJProjectEntry jProjectEntry) { Debug.Assert(textView != null); Debug.Assert(jProjectEntry != null); _projectEntry = jProjectEntry; _projectEntry.OnNewParseTree += ParserOnNewParseTree; _textView = textView; _topLevelEntries = _nestedEntries = EmptyEntries; _dispatcher = Dispatcher.CurrentDispatcher; _textView.Caret.PositionChanged += CaretPositionChanged; }
public AstScopeNode(JAst jAst, IJProjectEntry projectEntry) { _ast = jAst; _projectEntry = projectEntry; }
internal void UpdateProjectEntry(IProjectEntry newEntry) { if (newEntry is IJProjectEntry) { _projectEntry.OnNewParseTree -= ParserOnNewParseTree; _projectEntry = (IJProjectEntry)newEntry; _projectEntry.OnNewParseTree += ParserOnNewParseTree; } }