1 write to Symbol
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7602this.Symbol = symbol;
42 references to Symbol
Microsoft.CodeAnalysis.CSharp (42)
Binder\Binder_Expressions.cs (2)
5360CheckParameterModifierMismatchMethodConversion(unboundLambda.Syntax, boundLambda.Symbol, type, invokedAsExtensionMethod: false, diagnostics); 5361CheckLambdaConversion(boundLambda.Symbol, type, diagnostics);
Binder\RefSafetyAnalysis.cs (1)
320var lambda = node.Symbol;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3245if (lambda.Symbol.IsAsync)
BoundTree\BoundExpression.cs (1)
577get { return this.Symbol; }
BoundTree\UnboundLambda.cs (4)
78MethodSymbol IBoundLambdaOrFunction.Symbol { get { return Symbol; } } 156inferredReturnType = InferReturnType(returnTypes, node: this, Binder, delegateType, Symbol.IsAsync, conversions); 801(lambdaSymbol = returnInferenceLambda.Symbol).RefKind == refKind && 1255.OrderBy(lambda => GetLambdaSortString(lambda.Value.Symbol))
Compilation\CSharpSemanticModel.cs (3)
2101conversion = new Conversion(ConversionKind.AnonymousFunction, lambda.Symbol, false); 2228conversion = new Conversion(ConversionKind.AnonymousFunction, lambda.Symbol, delegateCreation.IsExtensionMethod); 2234conversion = new Conversion(ConversionKind.AnonymousFunction, lambda.Symbol, delegateCreation.IsExtensionMethod);
FlowAnalysis\AbstractRegionDataFlowPass.cs (1)
42MakeSlots(node.Symbol.Parameters);
FlowAnalysis\DefiniteAssignment.cs (5)
2425this.CurrentSymbol = node.Symbol; 2428VisitAttributes(node.Symbol.BindMethodAttributes()); 2437if (!node.WasCompilerGenerated) EnterParameters(node.Symbol.Parameters); 2443LeaveParameters(node.Symbol.Parameters, node.Syntax, null); 2452LeaveParameters(node.Symbol.Parameters, pending.Branch.Syntax, null);
FlowAnalysis\NullableWalker.cs (5)
1688var symbol = lambda.Symbol; 8673LambdaSymbol sourceMethod = lambda.Symbol; 9718ReportNullabilityMismatchWithTargetDelegate(lambda.Symbol.DiagnosticLocation, delegateType, lambda); 9874SetUpdatedSymbol(node, node.Symbol, delegateTypeOpt!); 9879node.Symbol,
FlowAnalysis\VariablesDeclaredWalker.cs (1)
104foreach (var parameter in node.Symbol.Parameters)
Generated\BoundNodes.xml.Generated.cs (4)
7620if (unboundLambda != this.UnboundLambda || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(symbol, this.Symbol) || body != this.Body || diagnostics != this.Diagnostics || binder != this.Binder || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 11988return node.Update(unboundLambda, node.Symbol, body, node.Diagnostics, node.Binder, type); 14542LambdaSymbol symbol = GetUpdatedSymbol(node, node.Symbol); 16802new TreeDumperNode("symbol", node.Symbol, null),
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
710_F.CurrentFunction = node.Symbol;
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (2)
448_methodsConvertedToDelegates.Add(node.Symbol.OriginalDefinition); 449var result = VisitNestedFunction(node.Symbol, node.Body);
Lowering\ClosureConversion\ClosureConversion.cs (2)
1627node = node.Update(node.UnboundLambda, node.Symbol, newBody, node.Diagnostics, node.Binder, newType); 1651RemapLambdaOrLocalFunction(node.Syntax, node.Symbol, default(ImmutableArray<TypeWithAnnotations>), closureKind, ref referencedMethod, out receiver, out constructedFrame);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
839foreach (var p in node.Symbol.Parameters) 860foreach (var p in node.Symbol.Parameters)
Lowering\DiagnosticsPass_ExpressionTrees.cs (3)
564var lambda = node.Symbol; 640if (node.Symbol.IsStatic) 642_staticLocalOrAnonymousFunction = node.Symbol;
Lowering\LocalRewriter\LocalRewriter.cs (2)
337if (node.Symbol.Parameters.LastOrDefault(static (p) => p.IsParamsCollection) is { } parameter) 351var lambda = node.Symbol;
Lowering\SpillSequenceSpiller.cs (1)
1397_F.CurrentFunction = node.Symbol;
Operations\CSharpOperationFactory.cs (1)
996IMethodSymbol symbol = boundLambda.Symbol.GetPublicSymbol();