1 implementation of IsTypeDeclaration
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1227
public bool
IsTypeDeclaration
(SyntaxNode node)
7 references to IsTypeDeclaration
Microsoft.CodeAnalysis.CSharp.Features (1)
Formatting\CSharpAccessibilityModifiersNewDocumentFormattingProvider.cs (1)
41
var typeDeclarations = root.DescendantNodes().Where(node => syntaxFacts.
IsTypeDeclaration
(node));
Microsoft.CodeAnalysis.Features (5)
EmbeddedLanguages\EmbeddedLanguageDetector.cs (1)
376
var typeDeclaration = tokenParent.AncestorsAndSelf().FirstOrDefault(syntaxFacts.
IsTypeDeclaration
);
ExtractClass\AbstractExtractClassRefactoringProvider.cs (2)
91
var containingTypeDeclarationNode = selectedMemberNodes.First().FirstAncestorOrSelf<SyntaxNode>(syntaxFacts.
IsTypeDeclaration
);
99
if (selectedMemberNodes.Any(m => m.FirstAncestorOrSelf<SyntaxNode>(syntaxFacts.
IsTypeDeclaration
) != containingTypeDeclarationNode))
Shared\Utilities\ExtractTypeHelpers.cs (1)
104
var declarationNode = syntaxRoot.DescendantNodes().First(syntaxFacts.
IsTypeDeclaration
);
src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
175
.Where(syntaxFacts.
IsTypeDeclaration
);
Microsoft.CodeAnalysis.Workspaces (1)
Rename\Renamer.RenameSymbolDocumentAction.cs (1)
74
var typeDeclarations = syntaxRoot.DescendantNodesAndSelf(n => !syntaxFacts.IsMethodBody(n)).Where(syntaxFacts.
IsTypeDeclaration
);