36 references to ThisParameter
Microsoft.CodeAnalysis.CSharp (36)
Binder\Binder.ValueChecks.cs (4)
3402
var thisParam = ((MethodSymbol)_symbol).
ThisParameter
;
3728
var thisParam = ((MethodSymbol)_symbol).
ThisParameter
;
4072
var thisParam = ((MethodSymbol)_symbol).
ThisParameter
;
4764
var thisParam = ((MethodSymbol)_symbol).
ThisParameter
;
Binder\Binder_Expressions.cs (1)
2133
else if (primaryCtor is {
ThisParameter
.RefKind: not RefKind.None } &&
Compiler\MethodBodySynthesizer.cs (3)
183
var thisSymbol = accessor.
ThisParameter
;
280
field.IsStatic ? null : new BoundThisReference(syntax, accessor.
ThisParameter
.Type),
350
ParameterSymbol thisParameter = accessor.
ThisParameter
;
Compiler\MethodCompiler.cs (1)
1440
method.
ThisParameter
,
FlowAnalysis\NullableWalker.cs (1)
2025
var thisParameter = method?.
ThisParameter
;
FlowAnalysis\ReadWriteWalker.cs (1)
94
var thisParameter = m.
ThisParameter
;
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (2)
495
AddIfCaptured(_topLevelMethod.
ThisParameter
, node.Syntax);
501
var thisParam = _topLevelMethod.
ThisParameter
;
Lowering\ClosureConversion\ClosureConversion.cs (4)
790
symbol == _currentMethod.
ThisParameter
&&
810
symbol != _currentMethod.
ThisParameter
||
842
return (_currentMethod == _topLevelMethod || _topLevelMethod.
ThisParameter
== null ?
1577
_currentFrameThis = synthesizedMethod.
ThisParameter
;
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (6)
68
walker.CaptureVariable(method.
ThisParameter
, node.Syntax);
297
var thisSymbol = topLevelMethod.
ThisParameter
;
306
CaptureVariable(topLevelMethod.
ThisParameter
, node.Syntax);
312
CaptureVariable(topLevelMethod.
ThisParameter
, node.Syntax);
400
Capture(_topLevelMethod.
ThisParameter
, node.Syntax);
406
Capture(_topLevelMethod.
ThisParameter
, node.Syntax);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (4)
137
var thisParameter = originalMethod.
ThisParameter
;
928
CapturedSymbolReplacement proxy = proxies[this.OriginalMethod.
ThisParameter
];
945
var thisParameter = this.OriginalMethod.
ThisParameter
;
979
CapturedSymbolReplacement proxy = proxies[this.OriginalMethod.
ThisParameter
];
Lowering\StateMachineRewriter\StateMachineRewriter.cs (5)
309
Debug.Assert((object)method.
ThisParameter
!= null);
312
if (proxies.TryGetValue(method.
ThisParameter
, out proxy))
440
if (method.IsStatic || method.
ThisParameter
.Type.IsReferenceType)
466
if (copyDest.TryGetValue(method.
ThisParameter
, out proxy))
473
var rightExpression = copySrc[method.
ThisParameter
].Replacement(F.Syntax, static (stateMachineType, F) => F.This(), F);
Lowering\SyntheticBoundNodeFactory.cs (2)
217
return new BoundThisReference(Syntax, CurrentFunction.
ThisParameter
.Type) { WasCompilerGenerated = true };
1187
NamedTypeSymbol baseType = CurrentFunction.
ThisParameter
.Type.BaseTypeNoUseSiteDiagnostics;
Symbols\SymbolExtensions.cs (2)
176
return method.
ThisParameter
;
195
return type.IsScriptClass ? type.InstanceConstructors.Single().
ThisParameter
: null;