20 references to SymbolOpt
Microsoft.CodeAnalysis.CSharp (20)
BoundTree\BoundExpression.cs (1)
470get { return this.SymbolOpt; }
Compilation\CSharpSemanticModel.cs (5)
2242else if (boundExpr is BoundConversion { ConversionKind: ConversionKind.MethodGroup, Conversion: var exprConversion, Type: { TypeKind: TypeKind.FunctionPointer }, SymbolOpt: var symbol }) 3530var symbol = conversion.SymbolOpt; 3537GetSymbolsAndResultKind(conversion, conversion.SymbolOpt, conversion.OriginalUserDefinedConversionsOpt, out symbols, out resultKind); 4300method = conversion.SymbolOpt; 4304method = nestedMethodGroupConversion.SymbolOpt;
FlowAnalysis\AbstractFlowPass.cs (3)
1738if (node.IsExtensionMethod || ((object)node.SymbolOpt != null && node.SymbolOpt.RequiresInstanceReceiver)) 1746else if (node.SymbolOpt?.OriginalDefinition is LocalFunctionSymbol localFunc)
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (3)
693return DelegateCreation(mg.ReceiverOpt, node.SymbolOpt, node.Type, !node.SymbolOpt.RequiresInstanceReceiver && !node.IsExtensionMethod); 699var method = node.SymbolOpt;
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
553MethodSymbol? symbolOpt = oldNodeOpt.SymbolOpt; 566var method = oldNodeOpt.SymbolOpt;
Operations\CSharpOperationFactory.cs (4)
1036Debug.Assert(boundConversion.SymbolOpt is object); 1038CreateBoundMethodGroupSingleMethodOperation((BoundMethodGroup)boundConversion.Operand, boundConversion.SymbolOpt, suppressVirtualCalls: false), 1130bool isChecked = boundConversion.Checked && (conversion.IsNumeric || (boundConversion.SymbolOpt is not null && SyntaxFacts.IsCheckedOperator(boundConversion.SymbolOpt.Name)));
Operations\CSharpOperationFactory_Methods.cs (2)
150Debug.Assert(boundConversion.SymbolOpt is not null); 152boundConversion.SymbolOpt,