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)
389internal override bool TryGetThisParameter(out ParameterSymbol? thisParameter)
Symbols\Source\SourceMemberMethodSymbol.cs (1)
814internal sealed override bool TryGetThisParameter(out ParameterSymbol thisParameter)
Symbols\SubstitutedMethodSymbol.cs (1)
312internal 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)
17 references to TryGetThisParameter
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder.ValueChecks.cs (1)
2413method.TryGetThisParameter(out thisParameter) &&
Binder\RefSafetyAnalysis.cs (1)
612return method.TryGetThisParameter(out var thisParameter) ? thisParameter : null;
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)
639method.TryGetThisParameter(out var thisParameter); 2198if (enclosingMemberMethod?.TryGetThisParameter(out ParameterSymbol methodThisParameter) == true && 7191if (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)
320if (!OriginalDefinition.TryGetThisParameter(out originalThisParameter))