2 writes to _expression
Microsoft.CodeAnalysis.Features (2)
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (2)
116_expression = _identifierName; 121_expression = (TExpressionSyntax)_expression.Parent!;
22 references to _expression
Microsoft.CodeAnalysis.Features (22)
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (22)
118if (_syntaxFacts.IsNameOfSimpleMemberAccessExpression(_expression) || 119_syntaxFacts.IsNameOfMemberBindingExpression(_expression)) 121_expression = (TExpressionSyntax)_expression.Parent!; 124Contract.ThrowIfNull(_expression.Parent, $"Parent of {_expression} is null."); 165var writeValue = replacer._syntaxFacts.IsOperandOfIncrementExpression(replacer._expression) 211else if (_semanticFacts.IsInOutContext(_semanticModel, _expression, _cancellationToken) || 212_semanticFacts.IsInRefContext(_semanticModel, _expression, _cancellationToken)) 220else if (_syntaxFacts.IsAttributeNamedArgumentIdentifier(_expression)) 228else if (_syntaxFacts.IsLeftSideOfAssignment(_expression)) 237else if (_syntaxFacts.IsLeftSideOfAnyAssignment(_expression)) 244else if (_syntaxFacts.IsOperandOfIncrementOrDecrementExpression(_expression)) 251else if (_syntaxFacts.IsInferredAnonymousObjectMemberDeclarator(_expression.Parent)) //.IsParentKind(SyntaxKind.AnonymousObjectMemberDeclarator)) 255var declarator = _expression.Parent; 282_expression, 291Contract.ThrowIfNull(_expression.Parent, $"Parent of {_expression} is null."); 296_expression.Parent, 322if (_expression is TIdentifierNameSyntax) 348return _expression.ReplaceNode(_identifierName, newIdentifierName); 372_expression.ReplaceNode(_identifierName, newIdentifierName), 399var updatedExpression = _expression.ReplaceNode(_identifierName, newIdentifierName);