Base:
property
ContainingSymbol
Microsoft.CodeAnalysis.CSharp.Symbol.ContainingSymbol
9 references to ContainingSymbol
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Expressions.cs (2)
2088
primaryCtor.
ContainingSymbol
is NamedTypeSymbol { IsRecord: false, IsRecordStruct: false } ||
2222
(object)containingMember.ContainingSymbol != primaryCtor.
ContainingSymbol
); // The member doesn't belong to our type, i.e. from nested type
Compilation\SyntaxTreeSemanticModel.cs (3)
2423
Debug.Assert((object)declaredSymbol.GetSymbol() == (object)entryPoint.
ContainingSymbol
);
2459
Debug.Assert((object)declaredSymbol.GetSymbol() == (object)ctor.
ContainingSymbol
);
2487
Debug.Assert((object)declaredSymbol.GetSymbol() == (object)ctor.
ContainingSymbol
);
FlowAnalysis\NullableWalker.cs (1)
2138
methodThisParameter?.ContainingSymbol.ContainingSymbol == (object)primaryConstructor.
ContainingSymbol
&&
Symbols\Source\SourceDelegateMethodSymbol.cs (2)
183
return (SourceNamedTypeSymbol)
ContainingSymbol
;
196
return OneOrMany.Create(((SourceNamedTypeSymbol)
ContainingSymbol
).GetAttributeDeclarations());
Symbols\Source\SourceMemberMethodSymbol.cs (1)
566
this.
ContainingSymbol
.ForceComplete(locationOpt: null, filter: null, cancellationToken: CancellationToken.None);