Microsoft.R.Core.AST.TokenNode.ShiftStartingFrom C# (CSharp) Метод

ShiftStartingFrom() публичный Метод

public ShiftStartingFrom ( int position, int offset ) : void
position int
offset int
Результат void
        public override void ShiftStartingFrom(int position, int offset) {
            if (this.Token.Start < position && position < this.Token.End) {
                // Leaf nodes are not composite range so we cannot shift parts.
                // Instead, we will expoand the range and next parsing pass
                // will generate actual new tokens
                this.Token.Expand(0, offset);
            } else if (position <= this.Token.Start) {
                this.Token.Shift(offset);
            }
        }
        #endregion