1 write to SimpleName
Microsoft.CodeAnalysis.Features (1)
GenerateType\AbstractGenerateTypeService.State.cs (1)
94SimpleName = (TSimpleNameSyntax)node;
18 references to SimpleName
Microsoft.CodeAnalysis.Features (18)
GenerateType\AbstractGenerateTypeService.CodeAction.cs (1)
118=> _service.IsPublicOnlyAccessibility(state.NameOrMemberAccessExpression, project) || _service.IsPublicOnlyAccessibility(state.SimpleName, project);
GenerateType\AbstractGenerateTypeService.cs (2)
124var isSimpleName = state.SimpleName == state.NameOrMemberAccessExpression; 252var outerTypeSymbol = semanticModel.GetEnclosingNamedType(state.SimpleName.SpanStart, cancellationToken);
GenerateType\AbstractGenerateTypeService.Editor.cs (6)
308: _state.SimpleName != _state.NameOrMemberAccessExpression 363updatedSolution, modifiedRoot: null, _semanticDocument.Document, _state.SimpleName, 389_state.SimpleName.SpanStart, _cancellationToken); 395new CodeGenerationContext(afterThisLocation: _semanticDocument.SyntaxTree.GetLocation(_state.SimpleName.Span))), 455_state.SimpleName, 554new CodeGenerationContext(contextLocation: _state.SimpleName.GetLocation())),
GenerateType\AbstractGenerateTypeService.State.cs (9)
96syntaxFacts.GetNameAndArityOfSimpleName(SimpleName, out var name, out _); 99NameIsVerbatim = syntaxFacts.IsVerbatimIdentifier(SimpleName.GetFirstToken()); 106if (!service.TryInitializeState(semanticDocument, SimpleName, cancellationToken, out var generateTypeServiceStateOptions)) 126var info = semanticModel.GetSymbolInfo(SimpleName, cancellationToken); 185IsSimpleNameGeneric = service.IsGenericName(SimpleName); 346if (SimpleName != NameOrMemberAccessExpression) 350service.GetLeftSideOfDot(SimpleName), cancellationToken); 360TypeToGenerateInOpt = service.DetermineTypeToGenerateIn(semanticModel, SimpleName, cancellationToken); 367var namespaceSymbol = semanticModel.GetEnclosingNamespace(SimpleName.SpanStart, cancellationToken);