8 overrides of TryGetThisParameter
Microsoft.CodeAnalysis.CSharp (8)
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
437internal override bool TryGetThisParameter(out ParameterSymbol thisParameter)
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
259internal override bool TryGetThisParameter(out ParameterSymbol? thisParameter)
Symbols\Source\LambdaSymbol.cs (1)
207internal override bool TryGetThisParameter(out ParameterSymbol? thisParameter)
Symbols\Source\LocalFunctionSymbol.cs (1)
388internal override bool TryGetThisParameter(out ParameterSymbol? thisParameter)
Symbols\Source\SourceMemberMethodSymbol.cs (1)
814internal sealed override bool TryGetThisParameter(out ParameterSymbol thisParameter)
Symbols\SubstitutedMethodSymbol.cs (1)
311internal sealed override bool TryGetThisParameter(out ParameterSymbol thisParameter)
Symbols\Synthesized\SynthesizedInstanceMethodSymbol.cs (1)
45internal override bool TryGetThisParameter(out ParameterSymbol thisParameter)
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
88internal override bool TryGetThisParameter(out ParameterSymbol? thisParameter)
16 references to TryGetThisParameter
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder.ValueChecks.cs (1)
2413method.TryGetThisParameter(out thisParameter) &&
FlowAnalysis\AbstractFlowPass.cs (2)
484(_symbol as MethodSymbol)?.TryGetThisParameter(out thisParameter); 1438else if (method.TryGetThisParameter(out var thisParameter)
FlowAnalysis\DefiniteAssignment.cs (1)
1824if (method.TryGetThisParameter(out ParameterSymbol thisParameter) && thisParameter is not null)
FlowAnalysis\NullableWalker.cs (3)
638method.TryGetThisParameter(out var thisParameter); 2137if (enclosingMemberMethod?.TryGetThisParameter(out ParameterSymbol methodThisParameter) == true && 7130if (current.TryGetThisParameter(out var thisParameter) && thisParameter is not null)
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (2)
211if (!_topLevelMethod.TryGetThisParameter(out var thisParam) || 345_topLevelMethod.TryGetThisParameter(out var thisParam);
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
392if (_topLevelMethod.TryGetThisParameter(out var thisParam) && (object)thisParam != null)
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
231method.TryGetThisParameter(out var methodThisParameter); 233interceptor.TryGetThisParameter(out var interceptorThisParameter) ? interceptorThisParameter : null;
Symbols\MethodSymbol.cs (2)
277/// Call <see cref="TryGetThisParameter"/> and throw if it returns false. 284if (!TryGetThisParameter(out thisParameter))
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
261if (!_underlyingMethod.TryGetThisParameter(out var underlyingParameter))
Symbols\SubstitutedMethodSymbol.cs (1)
319if (!OriginalDefinition.TryGetThisParameter(out originalThisParameter))