Beispiel #1
0
        internal void NotifyTextChange(int start, int oldLength, int newLength)
        {
            TextChangeEventArgs        change  = new TextChangeEventArgs(start, start, oldLength, newLength);
            List <TextChangeEventArgs> changes = new List <TextChangeEventArgs>(1);

            changes.Add(change);

            _astRoot.ReflectTextChanges(changes);
        }
Beispiel #2
0
        internal void NotifyTextChange(int start, int oldLength, int newLength)
        {
            TextChangeEventArgs        change  = new TextChangeEventArgs(start, start, oldLength, newLength);
            List <TextChangeEventArgs> changes = new List <TextChangeEventArgs>(1);

            changes.Add(change);

            _astRoot.ReflectTextChanges(changes, new TextProvider(TextBuffer.CurrentSnapshot));
        }
Beispiel #3
0
        internal void NotifyTextChanges(IReadOnlyCollection <TextChangeEventArgs> textChanges)
        {
            _astRoot.ReflectTextChanges(textChanges);

            if (ReflectTextChange != null)
            {
                foreach (TextChangeEventArgs curChange in textChanges)
                {
                    ReflectTextChange(this, curChange);
                }
            }
        }