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