本文整理汇总了C#中Cursor.MoveToNextSibling方法的典型用法代码示例。如果您正苦于以下问题:C# Cursor.MoveToNextSibling方法的具体用法?C# Cursor.MoveToNextSibling怎么用?C# Cursor.MoveToNextSibling使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cursor
的用法示例。
在下文中一共展示了Cursor.MoveToNextSibling方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SkipOldToken
private void SkipOldToken()
{
Debug.Assert(!_oldTreeCursor.IsFinished);
// First, move down so that we're actually pointing at a token. If we're already
// pointing at a token, then we'll just stay there.
_oldTreeCursor = _oldTreeCursor.MoveToFirstToken();
var node = _oldTreeCursor.CurrentNodeOrToken;
// Now, skip past it.
_changeDelta += node.FullWidth;
_oldDirectives = node.ApplyDirectives(_oldDirectives);
_oldTreeCursor = _oldTreeCursor.MoveToNextSibling();
// If our cursor is now after any changes, then just skip past them while upping
// the changeDelta length. This will let us know that we need to read tokens
// from the new text to try to sync up.
this.SkipPastChanges();
}