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)
3584conversion.Conversion.Method.HasUnsupportedMetadata || 3585conversion.Conversion.Method.RefKind == RefKind.None)); 3954conversion.Conversion.Method.HasUnsupportedMetadata || 3955conversion.Conversion.Method.RefKind == RefKind.None); 4356var operatorMethod = conversion.Conversion.Method; 5140var 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)
5417return new BoundDelegateCreationExpression(node, methodGroup, conversion.Method, conversion.IsExtensionMethod, wasTargetTyped, type, hasErrors);
Binder\ForEachLoopBinder.cs (2)
549Debug.Assert((object)collectionConversionClassification.Method == null, 551Debug.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)
3625bool 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)
3015var method = conversion.Method;
FlowAnalysis\NullableWalker.cs (4)
8907var method = conversion.Method; 9439var method = conversion.Method; 10494if (node.OperandConversion is BoundConversion { Conversion: var operandConversion } && operandConversion.IsUserDefined && operandConversion.Method?.ParameterCount == 1) 10496targetTypeOfOperandConversion = 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)
533Debug.Assert(conversion.Method is null); 868Debug.Assert(conversion.Method is { }); 882if (!TypeSymbol.Equals(rewrittenOperand.Type, conversion.Method.GetParameterType(0), TypeCompareKind.ConsiderEverything2)) 891TypeSymbol userDefinedConversionRewrittenType = conversion.Method.ReturnType; 897conversion.Method.GetParameterType(0).Equals(rewrittenOperand.Type.GetNullableUnderlyingType(), TypeCompareKind.AllIgnoreOptions) && 1220Debug.Assert(conversion.Method is { }); 1226conversion.Method, 1342Debug.Assert(conversion.Method is { } && !conversion.Method.ReturnsVoid && conversion.Method.ParameterCount == 1); 1346var parameterType = conversion.Method.GetParameterType(0); 1363return new BoundReadOnlySpanFromArray(syntax, rewrittenOperand, conversion.Method, rewrittenType) { WasCompilerGenerated = true }; 1371conversion.Method, 1442Debug.Assert(conversion.Method is { }); 1448conversion.Method, 1758var meth = conversion.Method;
Lowering\MethodToClassRewriter.cs (2)
295if (conversion.Method is not null) 297conversion = conversion.SetConversionMethod(VisitMethodSymbol(conversion.Method));
Lowering\SyntheticBoundNodeFactory.cs (3)
1504if (conversion.Method is { } && !TypeSymbol.Equals(conversion.Method.Parameters[0].Type, arg.Type, TypeCompareKind.ConsiderEverything2)) 1506arg = Convert(conversion.Method.Parameters[0].Type, arg);