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