17 references to Syntax
Microsoft.CodeAnalysis.CSharp (17)
FlowAnalysis\NullableWalker.cs (1)
3350enforceMemberNotNull(((LocalFunctionSymbol)lambdaOrFunctionSymbol).Syntax, this.State);
Symbols\Source\LocalFunctionSymbol.cs (16)
144addTo.Add(ErrorCode.WRN_MainIgnored, Syntax.Identifier.GetLocation(), this); 198this.Syntax.ParameterList, 251TypeSyntax returnTypeSyntax = Syntax.ReturnType; 320var firstParam = Syntax.ParameterList.Parameters.FirstOrDefault(); 331public override string Name => Syntax.Identifier.ValueText ?? ""; 333public SyntaxToken NameToken => Syntax.Identifier; 337public override ImmutableArray<Location> Locations => ImmutableArray.Create(Syntax.Identifier.GetLocation()); 339public override Location TryGetFirstLocation() => Syntax.Identifier.GetLocation(); 349return OneOrMany.Create(Syntax.AttributeLists); 374internal bool IsExpressionBodied => Syntax is { Body: null, ExpressionBody: object _ }; 411var typeParameters = Syntax.TypeParameterList?.Parameters ?? default; 474var syntax = Syntax; 504var syntax = Syntax; 522return Syntax.GetHashCode(); 530return localFunction?.Syntax == Syntax;