1 write to Symbol
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7603this.Symbol = symbol;
42 references to Symbol
Microsoft.CodeAnalysis.CSharp (42)
Binder\Binder_Expressions.cs (2)
5363CheckParameterModifierMismatchMethodConversion(unboundLambda.Syntax, boundLambda.Symbol, type, invokedAsExtensionMethod: false, diagnostics); 5364CheckLambdaConversion(boundLambda.Symbol, type, diagnostics);
Binder\RefSafetyAnalysis.cs (1)
320var lambda = node.Symbol;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3266if (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)
1749var symbol = lambda.Symbol; 8731LambdaSymbol sourceMethod = lambda.Symbol; 9776ReportNullabilityMismatchWithTargetDelegate(lambda.Symbol.DiagnosticLocation, delegateType, lambda); 9932SetUpdatedSymbol(node, node.Symbol, delegateTypeOpt!); 9937node.Symbol,
FlowAnalysis\VariablesDeclaredWalker.cs (1)
104foreach (var parameter in node.Symbol.Parameters)
Generated\BoundNodes.xml.Generated.cs (4)
7621if (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)) 12025return node.Update(unboundLambda, node.Symbol, body, node.Diagnostics, node.Binder, type); 14579LambdaSymbol symbol = GetUpdatedSymbol(node, node.Symbol); 16839new 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();