1 write to SimpleNameOrMemberAccessExpressionOpt
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
245
SimpleNameOrMemberAccessExpressionOpt
= simpleNameOrMemberAccessExpression;
16 references to SimpleNameOrMemberAccessExpressionOpt
Microsoft.CodeAnalysis.CodeStyle.Fixes (16)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (1)
136
if (syntaxFacts.IsAttributeNamedArgumentIdentifier(state.
SimpleNameOrMemberAccessExpressionOpt
))
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (15)
252
if (syntaxFacts.IsInNamespaceOrTypeContext(
SimpleNameOrMemberAccessExpressionOpt
))
257
IsConstant = syntaxFacts.IsInConstantContext(
SimpleNameOrMemberAccessExpressionOpt
);
272
var semanticInfo = semanticModel.GetSymbolInfo(
SimpleNameOrMemberAccessExpressionOpt
, cancellationToken);
284
if (!TryDetermineTypeToGenerateIn(_document, ContainingType,
SimpleNameOrMemberAccessExpressionOpt
, cancellationToken,
297
IsInRefContext = semanticFacts.IsInRefContext(semanticModel,
SimpleNameOrMemberAccessExpressionOpt
, cancellationToken);
298
IsInInContext = semanticFacts.IsInInContext(semanticModel,
SimpleNameOrMemberAccessExpressionOpt
, cancellationToken);
299
IsInOutContext = semanticFacts.IsInOutContext(semanticModel,
SimpleNameOrMemberAccessExpressionOpt
, cancellationToken);
300
IsWrittenTo = semanticFacts.IsWrittenTo(semanticModel,
SimpleNameOrMemberAccessExpressionOpt
, cancellationToken);
301
IsOnlyWrittenTo = semanticFacts.IsOnlyWrittenTo(semanticModel,
SimpleNameOrMemberAccessExpressionOpt
, cancellationToken);
304
simpleName !=
SimpleNameOrMemberAccessExpressionOpt
||
305
syntaxFacts.IsMemberInitializerNamedAssignmentIdentifier(
SimpleNameOrMemberAccessExpressionOpt
);
328
var simpleName =
SimpleNameOrMemberAccessExpressionOpt
;
430
_document.SemanticModel,
SimpleNameOrMemberAccessExpressionOpt
, objectAsDefault: true,
439
if (syntaxKinds.AddressOfExpression ==
SimpleNameOrMemberAccessExpressionOpt
.Parent?.RawKind)
474
var enclosingMethodSymbol = _document.SemanticModel.GetEnclosingSymbol<IMethodSymbol>(
SimpleNameOrMemberAccessExpressionOpt
.SpanStart, cancellationToken);