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)
118
if (_syntaxFacts.IsNameOfSimpleMemberAccessExpression(
_expression
) ||
119
_syntaxFacts.IsNameOfMemberBindingExpression(
_expression
))
121
_expression = (TExpressionSyntax)
_expression
.Parent!;
124
Contract.ThrowIfNull(
_expression
.Parent, $"Parent of {
_expression
} is null.");
165
var writeValue = replacer._syntaxFacts.IsOperandOfIncrementExpression(replacer.
_expression
)
211
else if (_semanticFacts.IsInOutContext(_semanticModel,
_expression
, _cancellationToken) ||
212
_semanticFacts.IsInRefContext(_semanticModel,
_expression
, _cancellationToken))
220
else if (_syntaxFacts.IsAttributeNamedArgumentIdentifier(
_expression
))
228
else if (_syntaxFacts.IsLeftSideOfAssignment(
_expression
))
237
else if (_syntaxFacts.IsLeftSideOfAnyAssignment(
_expression
))
244
else if (_syntaxFacts.IsOperandOfIncrementOrDecrementExpression(
_expression
))
251
else if (_syntaxFacts.IsInferredAnonymousObjectMemberDeclarator(
_expression
.Parent)) //.IsParentKind(SyntaxKind.AnonymousObjectMemberDeclarator))
255
var declarator =
_expression
.Parent;
282
_expression
,
291
Contract.ThrowIfNull(
_expression
.Parent, $"Parent of {
_expression
} is null.");
296
_expression
.Parent,
322
if (
_expression
is TIdentifierNameSyntax)
348
return
_expression
.ReplaceNode(_identifierName, newIdentifierName);
372
_expression
.ReplaceNode(_identifierName, newIdentifierName),
399
var updatedExpression =
_expression
.ReplaceNode(_identifierName, newIdentifierName);