56 references to IsKind
Microsoft.CodeAnalysis.CSharp.Features (14)
AddImport\CSharpAddImportFeatureService.cs (2)
336
return namespaceOrTypeSymbol.
IsKind
(SymbolKind.Namespace)
488
usingDirective = namespaceOrTypeSymbol.
IsKind
(SymbolKind.Namespace)
ChangeSignature\CSharpChangeSignatureService.cs (1)
166
if (typeSymbol != null && typeSymbol.
IsKind
(SymbolKind.NamedType) && ((ITypeSymbol)typeSymbol).TypeKind == TypeKind.Delegate)
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (2)
146
if (symbol.
IsKind
(SymbolKind.Field))
151
if (symbol.
IsKind
(SymbolKind.Property) && !((IPropertySymbol)symbol).IsWriteOnly)
Completion\CompletionProviders\SymbolCompletionProvider.cs (2)
249
if (symbol.
IsKind
(SymbolKind.Method) && !context.IsNameOfContext)
257
else if (symbol.
IsKind
(SymbolKind.NamedType) || symbol is IAliasSymbol aliasSymbol && aliasSymbol.Target.IsType)
GenerateType\CSharpGenerateTypeService.cs (4)
205
!leftSymbol.
IsKind
(SymbolKind.Namespace) ||
249
if (leftSymbol != null && leftSymbol.
IsKind
(SymbolKind.Namespace))
431
return memberGroup.ElementAt(0).
IsKind
(SymbolKind.Method) ? (IMethodSymbol)memberGroup.ElementAt(0) : null;
441
if (expressionSymbol.
IsKind
(SymbolKind.Method))
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_DelegateAndFunctionPointerInvoke.cs (1)
30
if (expressionSymbol.
IsKind
(SymbolKind.Event) &&
src\Analyzers\CSharp\Analyzers\NamingStyle\CSharpNamingStyleDiagnosticAnalyzer.cs (1)
30
if (symbol.
IsKind
(SymbolKind.Parameter)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\NullableImpactingSpanWalker.cs (1)
147
if (symbolInfo.Symbol.
IsKind
(SymbolKind.Namespace))
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Rename\CSharpRenameRewriterLanguageService.cs (2)
769
(matchingLocal.
IsKind
(SymbolKind.Local) && ((ILocalSymbol)matchingLocal).Type.IsDelegateType()) ||
770
(matchingLocal.
IsKind
(SymbolKind.Parameter) && ((IParameterSymbol)matchingLocal).Type.IsDelegateType());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (2)
107
if (conflict?.
IsKind
(SymbolKind.NamedType) == true)
281
if (semanticModel.GetSymbolInfo(n, cancellationToken).Symbol.
IsKind
(SymbolKind.Local) == true)
Microsoft.CodeAnalysis.Features (15)
ChangeSignature\AbstractChangeSignatureService.cs (4)
945
.Where(s => s.
IsKind
(SymbolKind.Local) || s.
IsKind
(SymbolKind.Parameter))
950
.Where(s => s.
IsKind
(SymbolKind.Property) || s.
IsKind
(SymbolKind.Field));
Debugging\AbstractBreakpointResolver.cs (1)
272
if (methodOrProperty.
IsKind
(SymbolKind.Method))
GenerateType\AbstractGenerateTypeService.State.cs (1)
297
!symbol.
IsKind
(SymbolKind.NamedType) ||
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (3)
576
if (declaredSymbol.
IsKind
(SymbolKind.Property)
577
|| declaredSymbol.
IsKind
(SymbolKind.Method)
578
|| declaredSymbol.
IsKind
(SymbolKind.Event))
PullMemberUp\AbstractPullMemberUpRefactoringProvider.cs (1)
84
var allDestinations = selectedMembers.All(m => m.
IsKind
(SymbolKind.Field))
PullMemberUp\MemberAndDestinationValidator.cs (3)
48
_ => member.
IsKind
(SymbolKind.Property) || member.
IsKind
(SymbolKind.Event) || member.
IsKind
(SymbolKind.Field),
PullMemberUp\MembersPuller.cs (1)
288
if (memberResult.MakeMemberDeclarationAbstract && !memberResult.Member.
IsKind
(SymbolKind.Field))
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
134
symbolInfo.CandidateSymbols.All(symbol => symbol.
IsKind
(SymbolKind.NamedType) &&
Microsoft.CodeAnalysis.Workspaces (21)
Recommendations\AbstractRecommendationServiceRunner.cs (1)
136
if (!parameterTypeSymbols.Any(static t => t.
IsKind
(SymbolKind.TypeParameter)))
Rename\ConflictEngine\ConflictResolver.cs (7)
233
if (renamedSymbol.ContainingSymbol.
IsKind
(SymbolKind.NamedType))
259
if (renamedSymbol.
IsKind
(SymbolKind.Namespace) && renamedSymbol.ContainingSymbol.
IsKind
(SymbolKind.Namespace))
263
!s.
IsKind
(SymbolKind.Namespace) &&
269
if (renamedSymbol.
IsKind
(SymbolKind.NamedType) && renamedSymbol.ContainingSymbol is INamespaceOrTypeSymbol)
275
var conflictingSymbolLocations = otherThingsNamedTheSame.Where(s => !s.
IsKind
(SymbolKind.Namespace));
276
if (otherThingsNamedTheSame.Any(s => s.
IsKind
(SymbolKind.Namespace)))
Shared\Extensions\IFindReferencesResultExtensions.cs (1)
22
return definition.
IsKind
(SymbolKind.Namespace)
Shared\Extensions\SemanticModelExtensions.cs (1)
123
else if (!declaredSymbol.
IsKind
(SymbolKind.RangeVariable))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
361
SymbolCategory.Other => symbol.
IsKind
((SymbolKind)_kind),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (5)
758
&& symbol.
IsKind
(SymbolKind.Method)
1037
if (receiverType.
IsKind
(SymbolKind.TypeParameter) && !receiverType.IsReferenceType)
1056
return receiverSymbol.
IsKind
(SymbolKind.Method) ||
1058
receiverSymbol.
IsKind
(SymbolKind.Property);
1063
if (originalSymbol.
IsKind
(SymbolKind.Method) || originalSymbol.IsIndexer())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
780
if (!symbol.
IsKind
(kind))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
158
if (symbol.ContainingSymbol.
IsKind
(SymbolKind.DynamicType))
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (3)
144
else if (symbol.
IsKind
(SymbolKind.Assembly) ||
145
symbol.
IsKind
(SymbolKind.NetModule) ||
146
symbol.
IsKind
(SymbolKind.DynamicType))
Microsoft.VisualStudio.LanguageServices (2)
CommonControls\MemberSelectionViewModel.cs (2)
141
var fields = Members.WhereAsArray(memberViewModel => memberViewModel.Symbol.
IsKind
(SymbolKind.Field));
143
WhereAsArray(memberViewModel => !memberViewModel.Symbol.
IsKind
(SymbolKind.Field) && !memberViewModel.Symbol.IsAbstract);