1 write to NameOrMemberAccessExpression
Microsoft.CodeAnalysis.Features (1)
GenerateType\AbstractGenerateTypeService.State.cs (1)
122
NameOrMemberAccessExpression
= generateTypeServiceStateOptions.NameOrMemberAccessExpression;
16 references to NameOrMemberAccessExpression
Microsoft.CodeAnalysis.Features (16)
GenerateType\AbstractGenerateTypeService.CodeAction.cs (2)
118
=> _service.IsPublicOnlyAccessibility(state.
NameOrMemberAccessExpression
, project) || _service.IsPublicOnlyAccessibility(state.SimpleName, project);
143
if (_service.TryGetBaseList(state.
NameOrMemberAccessExpression
, out var typeKindValue))
GenerateType\AbstractGenerateTypeService.cs (1)
124
var isSimpleName = state.SimpleName == state.
NameOrMemberAccessExpression
;
GenerateType\AbstractGenerateTypeService.Editor.cs (2)
308
: _state.SimpleName != _state.
NameOrMemberAccessExpression
485
else if (!_service.IsSimpleName(_state.
NameOrMemberAccessExpression
))
GenerateType\AbstractGenerateTypeService.State.cs (11)
134
if (!semanticFacts.IsTypeContext(semanticModel,
NameOrMemberAccessExpression
.SpanStart, cancellationToken) &&
135
!semanticFacts.IsExpressionContext(semanticModel,
NameOrMemberAccessExpression
.SpanStart, cancellationToken) &&
136
!semanticFacts.IsStatementContext(semanticModel,
NameOrMemberAccessExpression
.SpanStart, cancellationToken) &&
137
!semanticFacts.IsInsideNameOfExpression(semanticModel,
NameOrMemberAccessExpression
, cancellationToken) &&
138
!semanticFacts.IsNamespaceContext(semanticModel,
NameOrMemberAccessExpression
.SpanStart, cancellationToken))
210
if (service.IsInCatchDeclaration(
NameOrMemberAccessExpression
))
214
else if (syntaxFacts.IsNameOfAttribute(
NameOrMemberAccessExpression
))
220
var expr = ObjectCreationExpressionOpt ??
NameOrMemberAccessExpression
;
267
=> service.IsInValueTypeConstraintContext(semanticModel,
NameOrMemberAccessExpression
, cancellationToken);
280
return service.IsInInterfaceList(
NameOrMemberAccessExpression
);
346
if (SimpleName !=
NameOrMemberAccessExpression
)