Share via


SyntaxGenerator.GetNamespaceImports(SyntaxNode) Method

Definition

Gets the namespace imports that are part of the declaration.

public:
 abstract System::Collections::Generic::IReadOnlyList<Microsoft::CodeAnalysis::SyntaxNode ^> ^ GetNamespaceImports(Microsoft::CodeAnalysis::SyntaxNode ^ declaration);
public abstract System.Collections.Generic.IReadOnlyList<Microsoft.CodeAnalysis.SyntaxNode> GetNamespaceImports (Microsoft.CodeAnalysis.SyntaxNode declaration);
abstract member GetNamespaceImports : Microsoft.CodeAnalysis.SyntaxNode -> System.Collections.Generic.IReadOnlyList<Microsoft.CodeAnalysis.SyntaxNode>
Public MustOverride Function GetNamespaceImports (declaration As SyntaxNode) As IReadOnlyList(Of SyntaxNode)

Parameters

declaration
SyntaxNode

Returns

Applies to