Exemple #1
0
        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;
        }
Exemple #2
0
 public AstScopeNode(JAst jAst, IJProjectEntry projectEntry)
 {
     _ast = jAst;
     _projectEntry = projectEntry;
 }
Exemple #3
0
 internal void UpdateProjectEntry(IProjectEntry newEntry)
 {
     if (newEntry is IJProjectEntry) {
         _projectEntry.OnNewParseTree -= ParserOnNewParseTree;
         _projectEntry = (IJProjectEntry)newEntry;
         _projectEntry.OnNewParseTree += ParserOnNewParseTree;
     }
 }