55 references to Method
Microsoft.CodeAnalysis.CSharp (55)
Binder\Binder.cs (2)
626if (conversion.IsValid && conversion.Method is object) 628ReportDiagnosticsIfObsolete(diagnostics, conversion.Method, node, hasBaseReceiver);
Binder\Binder.ValueChecks.cs (6)
3607conversion.Conversion.Method.HasUnsupportedMetadata || 3608conversion.Conversion.Method.RefKind == RefKind.None)); 3977conversion.Conversion.Method.HasUnsupportedMetadata || 3978conversion.Conversion.Method.RefKind == RefKind.None); 4380var operatorMethod = conversion.Conversion.Method; 5158var operatorMethod = conversion.Conversion.Method;
Binder\Binder_Conversions.cs (3)
305if (conversion.Method is not null) 307ReportUseSite(conversion.Method, diagnostics, syntax.Location); 413if (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)
5382return 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)
588this.Method is object || 1022return this.Method.GetPublicSymbol(); 1183return this.Kind == other.Kind && this.Method == other.Method; 1192return Hash.Combine(this.Method, (int)this.Kind); 1226if (self.Method is object) 1228sub.Add(new TreeDumperNode("method", self.Method.ToDisplayString(), null));
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3580bool 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)
3011var method = conversion.Method;
FlowAnalysis\NullableWalker.cs (4)
8846var method = conversion.Method; 9378var method = conversion.Method; 10433if (node.OperandConversion is BoundConversion { Conversion: var operandConversion } && operandConversion.IsUserDefined && operandConversion.Method?.ParameterCount == 1) 10435targetTypeOfOperandConversion = operandConversion.Method.ReturnTypeWithAnnotations;
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
791CheckMethodGroup((BoundMethodGroup)node.Operand, node.Conversion.Method, node.IsExtensionMethod, parentIsConversion: true, node.Type); 838if (_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); 870Debug.Assert(conversion.Method is { }); 884if (!TypeSymbol.Equals(rewrittenOperand.Type, conversion.Method.GetParameterType(0), TypeCompareKind.ConsiderEverything2)) 893TypeSymbol userDefinedConversionRewrittenType = conversion.Method.ReturnType; 899conversion.Method.GetParameterType(0).Equals(rewrittenOperand.Type.GetNullableUnderlyingType(), TypeCompareKind.AllIgnoreOptions) && 1222Debug.Assert(conversion.Method is { }); 1228conversion.Method, 1344Debug.Assert(conversion.Method is { } && !conversion.Method.ReturnsVoid && conversion.Method.ParameterCount == 1); 1348var parameterType = conversion.Method.GetParameterType(0); 1365return new BoundReadOnlySpanFromArray(syntax, rewrittenOperand, conversion.Method, rewrittenType) { WasCompilerGenerated = true }; 1373conversion.Method, 1444Debug.Assert(conversion.Method is { }); 1450conversion.Method, 1760var meth = conversion.Method;
Lowering\MethodToClassRewriter.cs (2)
295if (conversion.Method is not null) 297conversion = conversion.SetConversionMethod(VisitMethodSymbol(conversion.Method));
Lowering\SyntheticBoundNodeFactory.cs (3)
1496if (conversion.Method is { } && !TypeSymbol.Equals(conversion.Method.Parameters[0].Type, arg.Type, TypeCompareKind.ConsiderEverything2)) 1498arg = Convert(conversion.Method.Parameters[0].Type, arg);