1 write to NameOrMemberAccessExpression
Microsoft.CodeAnalysis.Features (1)
GenerateType\AbstractGenerateTypeService.State.cs (1)
117
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)
120
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)
129
if (!semanticFacts.IsTypeContext(semanticModel,
NameOrMemberAccessExpression
.SpanStart, cancellationToken) &&
130
!semanticFacts.IsExpressionContext(semanticModel,
NameOrMemberAccessExpression
.SpanStart, cancellationToken) &&
131
!semanticFacts.IsStatementContext(semanticModel,
NameOrMemberAccessExpression
.SpanStart, cancellationToken) &&
132
!semanticFacts.IsInsideNameOfExpression(semanticModel,
NameOrMemberAccessExpression
, cancellationToken) &&
133
!semanticFacts.IsNamespaceContext(semanticModel,
NameOrMemberAccessExpression
.SpanStart, cancellationToken))
205
if (service.IsInCatchDeclaration(
NameOrMemberAccessExpression
))
209
else if (syntaxFacts.IsNameOfAttribute(
NameOrMemberAccessExpression
))
215
var expr = ObjectCreationExpressionOpt ??
NameOrMemberAccessExpression
;
262
=> service.IsInValueTypeConstraintContext(semanticModel,
NameOrMemberAccessExpression
, cancellationToken);
275
return service.IsInInterfaceList(
NameOrMemberAccessExpression
);
341
if (SimpleName !=
NameOrMemberAccessExpression
)