2 overrides of ReturnStatement
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
76 references to ReturnStatement
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Features (4)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (10)
CodeGeneration\SyntaxGeneratorTests.cs (10)
538VerifySyntax<ReturnStatementSyntax>(Generator.ReturnStatement(), "return;");
539VerifySyntax<ReturnStatementSyntax>(Generator.ReturnStatement(Generator.IdentifierName("x")), "return x;");
735Generator.ValueReturningLambdaExpression("x", [Generator.ReturnStatement(Generator.IdentifierName("y"))]),
739Generator.ValueReturningLambdaExpression(new[] { Generator.LambdaParameter("x"), Generator.LambdaParameter("y") }, [Generator.ReturnStatement(Generator.IdentifierName("z"))]),
743Generator.ValueReturningLambdaExpression(new SyntaxNode[] { }, [Generator.ReturnStatement(Generator.IdentifierName("y"))]),
3409Generator.GetAccessorDeclaration(Accessibility.NotApplicable, [Generator.ReturnStatement()])),
3415Generator.GetAccessorDeclaration(Accessibility.Protected, [Generator.ReturnStatement()])),
3421Generator.SetAccessorDeclaration(Accessibility.Protected, [Generator.ReturnStatement()])),
3430Generator.GetAccessorDeclaration(Accessibility.Protected, [Generator.ReturnStatement()])),
3436Generator.SetAccessorDeclaration(Accessibility.Protected, [Generator.ReturnStatement()])),
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.Features (11)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (13)
CodeGeneration\SyntaxGeneratorTests.vb (13)
478VerifySyntax(Of ReturnStatementSyntax)(Generator.ReturnStatement(), "Return")
479VerifySyntax(Of ReturnStatementSyntax)(Generator.ReturnStatement(Generator.IdentifierName("x")), "Return x")
738Generator.ValueReturningLambdaExpression("x", {Generator.ReturnStatement(Generator.IdentifierName("y"))}),
744Generator.ValueReturningLambdaExpression({Generator.LambdaParameter("x"), Generator.LambdaParameter("y")}, {Generator.ReturnStatement(Generator.IdentifierName("z"))}),
750Generator.ValueReturningLambdaExpression(New SyntaxNode() {}, {Generator.ReturnStatement(Generator.IdentifierName("y"))}),
862Generator.MethodDeclaration("m", returnType:=Generator.IdentifierName("x"), statements:={Generator.ReturnStatement(Generator.IdentifierName("y"))}),
1181Generator.GetAccessorDeclaration(Accessibility.NotApplicable, {Generator.ReturnStatement()})),
1191Generator.GetAccessorDeclaration(Accessibility.NotApplicable, {Generator.ReturnStatement()}),
1192Generator.SetAccessorDeclaration(Accessibility.NotApplicable, {Generator.ReturnStatement()})),
1206Generator.GetAccessorDeclaration(Accessibility.Protected, {Generator.ReturnStatement()})),
1216Generator.SetAccessorDeclaration(Accessibility.Protected, {Generator.ReturnStatement()})),
1229Generator.GetAccessorDeclaration(Accessibility.Protected, {Generator.ReturnStatement()})),
1239Generator.SetAccessorDeclaration(Accessibility.Protected, {Generator.ReturnStatement()})),
Microsoft.CodeAnalysis.Workspaces (17)