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