1 write to _method
Microsoft.CodeAnalysis.CSharp (1)
CodeGen\CodeGenerator.cs (1)
99_method = method;
24 references to _method
Microsoft.CodeAnalysis.CSharp (24)
CodeGen\CodeGenerator.cs (14)
168Debug.Assert(!_method.ReturnsVoid, "returning something from void method?"); 169var slotConstraints = _method.RefKind == RefKind.None 173var returnTypeWithAnnotations = _method.ReturnTypeWithAnnotations; 174if (_method.IsAsync && _module.Compilation.IsRuntimeAsyncEnabledIn(_method)) 189int syntaxOffset = _method.CalculateLocalSyntaxOffset(LambdaUtilities.GetDeclaratorPosition(bodySyntax), bodySyntax.SyntaxTree); 190var localSymbol = new SynthesizedLocal(_method, returnTypeWithAnnotations, SynthesizedLocalKind.FunctionReturnValue, bodySyntax); 286if (_emitPdbSequencePoints && _method.IsImplicitlyDeclared) 324Debug.Assert(_method.ReturnsVoid == (_returnTemp == null) 325|| (_method.IsAsync 326&& _module.Compilation.IsRuntimeAsyncEnabledIn(_method) 327&& ((InternalSpecialType)_method.ReturnType.ExtendedSpecialType) is InternalSpecialType.System_Threading_Tasks_Task or InternalSpecialType.System_Threading_Tasks_ValueTask)); 329if (_emitPdbSequencePoints && !_method.IsIterator && !_method.IsAsync)
CodeGen\EmitAddress.cs (1)
467=> HasHome(expression, addressKind, _method, IsPeVerifyCompatEnabled(), _stackLocals);
CodeGen\EmitConversion.cs (1)
361method = method.GetConstructedLeastOverriddenMethod(_method.ContainingType, requireSameReturnType: true);
CodeGen\EmitExpression.cs (4)
179var thisType = _method.ContainingType; 1980actualMethodTargetedByTheCall = method.GetConstructedLeastOverriddenMethod(_method.ContainingType, requireSameReturnType: true); 2001(object)actualMethodTargetedByTheCall.ContainingModule == (object)_method.ContainingModule) 4100Debug.Assert(_method.GenerateDebugInfo, "Implied by this.emitSequencePoints");
CodeGen\EmitStatement.cs (4)
847return _ilEmitStyle == ILEmitStyle.Debug && _method.GenerateDebugInfo && _methodBodySyntaxOpt?.IsKind(SyntaxKind.Block) == true || 858(boundReturnStatement.Syntax.IsKind(SyntaxKind.Block) || _method?.IsImplicitConstructor == true) && 873var unexpectedTemp = this.EmitAddress(expressionOpt, this._method.RefKind == RefKind.RefReadOnly ? AddressKind.ReadOnlyStrict : AddressKind.Writeable); 1875int syntaxOffset = _method.CalculateLocalSyntaxOffset(LambdaUtilities.GetDeclaratorPosition(syntax), syntax.SyntaxTree);