/// <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) { var tokenOnLeft = root.FindTokenOnLeftOfPosition(position, includeSkipped: true); var dotToken = tokenOnLeft.GetPreviousTokenIfTouchingWord(position); // Has to be a . or a .. token if (!CompletionUtilities.TreatAsDot(dotToken, position - 1)) { return(default);