예제 #1
0
 /// <summary>
 /// Gets the dot-like token we're after, and also the start of the expression we'd want to place any text before.
 /// </summary>
 private static (SyntaxToken dotLikeToken, int expressionStart) GetDotAndExpressionStart(SyntaxNode root, int position, CancellationToken cancellationToken)
 {
     if (CompletionUtilities.GetDotTokenLeftOfPosition(root.SyntaxTree, position, cancellationToken) is not SyntaxToken dotToken)
     {
         return(default);