2 types derived from Declaration
Microsoft.CodeAnalysis.CSharp (2)
Declarations\MergedNamespaceOrTypeDeclaration.cs (1)
13internal abstract class MergedNamespaceOrTypeDeclaration : Declaration
Declarations\SingleNamespaceOrTypeDeclaration.cs (1)
11internal abstract class SingleNamespaceOrTypeDeclaration : Declaration
22 references to Declaration
Microsoft.CodeAnalysis.CSharp (22)
Compilation\CSharpCompilation.cs (3)
4836private readonly PooledDictionary<Declaration, NamespaceOrTypeSymbol> _cache; 4846_cache = PooledDictionary<Declaration, NamespaceOrTypeSymbol>.GetInstance(); 4912foreach (var child in current.Children)
Declarations\Declaration.cs (2)
59public ImmutableArray<Declaration> Children 68protected abstract ImmutableArray<Declaration> GetDeclarationChildren();
Declarations\DeclarationTable.cs (10)
200private static readonly Predicate<Declaration> s_isNamespacePredicate = d => d.Kind == DeclarationKind.Namespace; 201private static readonly Predicate<Declaration> s_isTypePredicate = d => d.Kind != DeclarationKind.Namespace; 203private static ISet<string> GetTypeNames(Declaration declaration) 208private static ISet<string> GetNamespaceNames(Declaration declaration) 213private static ISet<string> GetNames(Declaration declaration, Predicate<Declaration> predicate) 216var stack = new Stack<Declaration>(); 221var current = stack.Pop(); 232foreach (var child in current.Children) 361foreach (var child in current.Children)
Declarations\MergedNamespaceDeclaration.cs (2)
84protected override ImmutableArray<Declaration> GetDeclarationChildren() 86return StaticCast<Declaration>.From(this.Children);
Declarations\MergedTypeDeclaration.cs (2)
235protected override ImmutableArray<Declaration> GetDeclarationChildren() 237return StaticCast<Declaration>.From(this.Children);
Declarations\SingleNamespaceOrTypeDeclaration.cs (2)
59protected override ImmutableArray<Declaration> GetDeclarationChildren() 61return StaticCast<Declaration>.From(this.GetNamespaceOrTypeDeclarationChildren());
Symbols\Source\SourceNamespaceSymbol.cs (1)
276foreach (var declaration in _mergedDeclaration.Children)