17 references to Syntax
Microsoft.CodeAnalysis.CSharp (17)
FlowAnalysis\NullableWalker.cs (1)
3289enforceMemberNotNull(((LocalFunctionSymbol)lambdaOrFunctionSymbol).Syntax, this.State);
Symbols\Source\LocalFunctionSymbol.cs (16)
143addTo.Add(ErrorCode.WRN_MainIgnored, Syntax.Identifier.GetLocation(), this); 197this.Syntax.ParameterList, 250TypeSyntax returnTypeSyntax = Syntax.ReturnType; 319var firstParam = Syntax.ParameterList.Parameters.FirstOrDefault(); 330public override string Name => Syntax.Identifier.ValueText ?? ""; 332public SyntaxToken NameToken => Syntax.Identifier; 336public override ImmutableArray<Location> Locations => ImmutableArray.Create(Syntax.Identifier.GetLocation()); 338public override Location TryGetFirstLocation() => Syntax.Identifier.GetLocation(); 348return OneOrMany.Create(Syntax.AttributeLists); 373internal bool IsExpressionBodied => Syntax is { Body: null, ExpressionBody: object _ }; 410var typeParameters = Syntax.TypeParameterList?.Parameters ?? default; 473var syntax = Syntax; 503var syntax = Syntax; 521return Syntax.GetHashCode(); 529return localFunction?.Syntax == Syntax;