55 references to Method
Microsoft.CodeAnalysis.CSharp (55)
Binder\Binder.cs (2)
623if (conversion.IsValid && conversion.Method is object) 625ReportDiagnosticsIfObsolete(diagnostics, conversion.Method, node, hasBaseReceiver);
Binder\Binder.ValueChecks.cs (6)
3570conversion.Conversion.Method.HasUnsupportedMetadata || 3571conversion.Conversion.Method.RefKind == RefKind.None)); 3940conversion.Conversion.Method.HasUnsupportedMetadata || 3941conversion.Conversion.Method.RefKind == RefKind.None); 4343var operatorMethod = conversion.Conversion.Method; 5121var operatorMethod = conversion.Conversion.Method;
Binder\Binder_Conversions.cs (3)
309if (conversion.Method is not null) 311ReportUseSite(conversion.Method, diagnostics, syntax.Location); 417if (conversion.Method is MethodSymbol method && method.IsStatic)
Binder\Binder_Deconstruct.cs (2)
150if (conversion.Method != null) 152CheckImplicitThisCopyInReadOnlyMember(boundRHS, conversion.Method, diagnostics);
Binder\Binder_Expressions.cs (1)
5344return new BoundDelegateCreationExpression(node, methodGroup, conversion.Method, conversion.IsExtensionMethod, wasTargetTyped, type, hasErrors);
Binder\ForEachLoopBinder.cs (2)
547Debug.Assert((object)collectionConversionClassification.Method == null, 549Debug.Assert((object)currentConversionClassification.Method == null,
Binder\Semantics\Conversions\Conversion.cs (7)
584this.Method is object || 1004return this.Method.GetPublicSymbol(); 1165return this.Kind == other.Kind && this.Method == other.Method; 1174return Hash.Combine(this.Method, (int)this.Kind); 1208if (self.Method is object) 1210sub.Add(new TreeDumperNode("method", self.Method.ToDisplayString(), null));
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3318bool result = !_binder.MethodIsCompatibleWithDelegateOrFunctionPointer(node.ReceiverOpt, conv.IsExtensionMethod, conv.Method, delegateType, Location.None, BindingDiagnosticBag.Discarded);
Binder\SwitchBinder.cs (1)
418Debug.Assert(conversion.Method.IsUserDefinedConversion());
BoundTree\BoundExpression.cs (1)
465get { return this.Conversion.Method; }
FlowAnalysis\AbstractFlowPass.cs (1)
2921var method = conversion.Method;
FlowAnalysis\NullableWalker.cs (4)
8688var method = conversion.Method; 9209var method = conversion.Method; 10276if (node.OperandConversion is BoundConversion { Conversion: var operandConversion } && operandConversion.IsUserDefined && operandConversion.Method?.ParameterCount == 1) 10278targetTypeOfOperandConversion = operandConversion.Method.ReturnTypeWithAnnotations;
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
769CheckMethodGroup((BoundMethodGroup)node.Operand, node.Conversion.Method, node.IsExtensionMethod, parentIsConversion: true, node.Type); 816if (_inExpressionLambda && node.Conversion.Method is MethodSymbol method && (method.IsAbstract || method.IsVirtual) && method.IsStatic)
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
216if (conversion.Method.MethodKind == MethodKind.LocalFunction)
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (16)
535Debug.Assert(conversion.Method is null); 773Debug.Assert(conversion.Method is { }); 787if (!TypeSymbol.Equals(rewrittenOperand.Type, conversion.Method.GetParameterType(0), TypeCompareKind.ConsiderEverything2)) 796TypeSymbol userDefinedConversionRewrittenType = conversion.Method.ReturnType; 802conversion.Method.GetParameterType(0).Equals(rewrittenOperand.Type.GetNullableUnderlyingType(), TypeCompareKind.AllIgnoreOptions) && 1125Debug.Assert(conversion.Method is { }); 1131conversion.Method, 1247Debug.Assert(conversion.Method is { } && !conversion.Method.ReturnsVoid && conversion.Method.ParameterCount == 1); 1251var parameterType = conversion.Method.GetParameterType(0); 1268return new BoundReadOnlySpanFromArray(syntax, rewrittenOperand, conversion.Method, rewrittenType) { WasCompilerGenerated = true }; 1276conversion.Method, 1347Debug.Assert(conversion.Method is { }); 1353conversion.Method, 1663var meth = conversion.Method;
Lowering\MethodToClassRewriter.cs (2)
295if (conversion.Method is not null) 297conversion = conversion.SetConversionMethod(VisitMethodSymbol(conversion.Method));
Lowering\SyntheticBoundNodeFactory.cs (3)
1552if (conversion.Method is { } && !TypeSymbol.Equals(conversion.Method.Parameters[0].Type, arg.Type, TypeCompareKind.ConsiderEverything2)) 1554arg = Convert(conversion.Method.Parameters[0].Type, arg);