Microsoft.R.Core.AST.AstRoot.ReflectTextChanges C# (CSharp) Method

ReflectTextChanges() public method

Updates positions of nodes in the tree reflecting multiple changes made to the source text buffer.
public ReflectTextChanges ( IReadOnlyCollection textChanges, ITextProvider newText ) : void
textChanges IReadOnlyCollection
newText ITextProvider
return void
        public void ReflectTextChanges(IReadOnlyCollection<TextChangeEventArgs> textChanges, ITextProvider newText) {
            foreach (TextChangeEventArgs curChange in textChanges) {
                ReflectTextChange(curChange.Start, curChange.OldLength, curChange.NewLength, newText);
            }
        }