Base:
property
ContainingSymbol
Microsoft.CodeAnalysis.CSharp.Symbol.ContainingSymbol
8 references to ContainingSymbol
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Expressions.cs (2)
1927
primaryCtor.
ContainingSymbol
is NamedTypeSymbol { IsRecord: false, IsRecordStruct: false } ||
2038
(object)containingMember.ContainingSymbol != primaryCtor.
ContainingSymbol
); // The member doesn't belong to our type, i.e. from nested type
Compilation\SyntaxTreeSemanticModel.cs (3)
2419
Debug.Assert((object)declaredSymbol.GetSymbol() == (object)entryPoint.
ContainingSymbol
);
2455
Debug.Assert((object)declaredSymbol.GetSymbol() == (object)ctor.
ContainingSymbol
);
2483
Debug.Assert((object)declaredSymbol.GetSymbol() == (object)ctor.
ContainingSymbol
);
FlowAnalysis\NullableWalker.cs (1)
2090
methodThisParameter?.ContainingSymbol.ContainingSymbol == (object)primaryConstructor.
ContainingSymbol
&&
Symbols\Source\SourceDelegateMethodSymbol.cs (2)
193
return (SourceNamedTypeSymbol)
ContainingSymbol
;
206
return OneOrMany.Create(((SourceNamedTypeSymbol)
ContainingSymbol
).GetAttributeDeclarations());