4 references to IsReturnableConstruct
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
SyntaxNodeExtensions.cs (2)
527=> node.DescendantNodes(n => n == node || !n.IsReturnableConstruct()).Any(IsYield); 533=> node.IsReturnableConstruct() || (node is CompilationUnitSyntax compilationUnit && compilationUnit.Members.Any(SyntaxKind.GlobalStatement));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
CSharpTypeInferenceService.TypeInferrer.cs (2)
2030var declaration = yieldStatement.FirstAncestorOrSelf<SyntaxNode>(n => n.IsReturnableConstruct()); 2073var ancestor = returnStatement.FirstAncestorOrSelf<SyntaxNode>(n => n.IsReturnableConstruct());