Base:
property
ContainingSymbol
Microsoft.CodeAnalysis.CSharp.Symbol.ContainingSymbol
44 references to ContainingSymbol
Microsoft.CodeAnalysis.CSharp (44)
FlowAnalysis\DefiniteAssignment.cs (1)
1890
if (parameter is SourceComplexParameterSymbolBase {
ContainingSymbol
: LocalFunctionSymbol or LambdaSymbol } sourceComplexParam)
Symbols\Source\SourceComplexParameterSymbol.cs (29)
82
private Binder WithTypeParametersBinderOpt => (
ContainingSymbol
as SourceMethodSymbolWithAttributes)?.WithTypeParametersBinder;
381
Debug.Assert(binder.ContainingMemberOrLambda ==
ContainingSymbol
);
390
bool hasErrors = ParameterHelpers.ReportDefaultParameterErrors(binder,
ContainingSymbol
, parameterSyntax, this, valueBeforeConversion, convertedExpression, diagnostics);
422
var sourceMethod = this.
ContainingSymbol
as SourceOrdinaryMethodSymbol;
473
ImmutableArray<ParameterSymbol> implParameters = this.
ContainingSymbol
switch
485
Debug.Assert(!this.
ContainingSymbol
.IsPartialImplementation());
494
ImmutableArray<ParameterSymbol> defParameters = this.
ContainingSymbol
switch
506
Debug.Assert(!this.
ContainingSymbol
.IsPartialDefinition());
689
var parameters =
ContainingSymbol
.GetParameters();
1034
private bool IsValidCallerInfoContext(AttributeSyntax node) => !
ContainingSymbol
.IsExplicitInterfaceImplementation()
1035
&& !
ContainingSymbol
.IsOperator()
1049
var implParameter = this.
ContainingSymbol
.IsPartialImplementation() ? this : PartialImplementationPart;
1076
else if (!HasExplicitDefaultValue && !
ContainingSymbol
.IsPartialImplementation()) // attribute applied to parameter without default
1104
else if (!HasExplicitDefaultValue && !
ContainingSymbol
.IsPartialImplementation()) // attribute applied to parameter without default
1137
else if (!HasExplicitDefaultValue && !
ContainingSymbol
.IsPartialImplementation()) // attribute applied to parameter without default
1178
else if (!HasExplicitDefaultValue && !
ContainingSymbol
.IsPartialImplementation()) // attribute applied to parameter without default
1228
else if (this.
ContainingSymbol
is MethodSymbol method &&
1263
ImmutableArray<ParameterSymbol> containingSymbolParameters =
ContainingSymbol
.GetParameters();
1345
if (!
ContainingSymbol
.RequiresInstanceReceiver() ||
ContainingSymbol
is MethodSymbol { MethodKind: MethodKind.Constructor or MethodKind.DelegateInvoke or MethodKind.LambdaMethod })
1348
diagnostics.Add(ErrorCode.ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName, arguments.AttributeSyntaxOpt.Location,
ContainingSymbol
);
1359
diagnostics.Add(ErrorCode.ERR_InvalidInterpolatedStringHandlerArgumentName, arguments.AttributeSyntaxOpt.Location, name,
ContainingSymbol
);
1568
var binder = GetDefaultParameterValueBinder(syntax).WithContainingMemberOrLambda(
ContainingSymbol
); // this binder is good for our purpose
1619
diagnostics.Add(ErrorCode.ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember, syntax, reportAsLessVisible,
ContainingSymbol
);
1627
var binder = GetDefaultParameterValueBinder(syntax).WithContainingMemberOrLambda(
ContainingSymbol
); // this binder is good for our purpose
1643
if (
ContainingSymbol
.ContainingSymbol is NamedTypeSymbol) // No need to check for lambdas or local function
1663
bool result = method.IsAsRestrictive(
ContainingSymbol
, ref useSiteInfo) &&
1664
method.ContainingType.IsAtLeastAsVisibleAs(
ContainingSymbol
, ref useSiteInfo);
1674
diagnostics.Add(ErrorCode.ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember, syntax, method,
ContainingSymbol
);
Symbols\Source\SourceDelegateClonedParameterSymbolForBeginAndEndInvoke.cs (1)
33
(SourceDelegateMethodSymbol)
ContainingSymbol
,
Symbols\Source\SourceParameterSymbol.cs (5)
132
this.
ContainingSymbol
,
146
Debug.Assert(!(
ContainingSymbol
is LocalFunctionSymbol));
149
this.
ContainingSymbol
,
209
=>
ContainingSymbol
.AddDeclarationDiagnostics(diagnostics);
290
MethodSymbol owningMethod =
ContainingSymbol
as MethodSymbol;
Symbols\Source\SourcePropertyClonedParameterSymbolForAccessors.cs (1)
29
this.
ContainingSymbol
);
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
101
return parameter.
ContainingSymbol
is SynthesizedPrimaryConstructor &&
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (6)
38
if (
ContainingSymbol
is SourcePropertyAccessorSymbol propertyAccessor && propertyAccessor.AssociatedSymbol is SourcePropertySymbolBase property)
70
get { return (SourceMemberMethodSymbol)this.
ContainingSymbol
; }
76
var accessor = (SourceMemberMethodSymbol)this.
ContainingSymbol
;
84
if (
ContainingSymbol
is SourcePropertyAccessorSymbol propertyAccessor && propertyAccessor.AssociatedSymbol is SourcePropertySymbolBase property)
107
public override TypeWithAnnotations TypeWithAnnotations => ((PropertySymbol)((SourcePropertyAccessorSymbol)
ContainingSymbol
).AssociatedSymbol).TypeWithAnnotations;
143
(SourceEventAccessorSymbol)this.
ContainingSymbol
);