57 references to ReturnType
Microsoft.CodeAnalysis.CSharp (16)
Symbols\Source\SourceDelegateMethodSymbol.cs (3)
53TypeSyntax returnTypeSyntax = syntax.ReturnType; 283var modifierType = binder.GetWellKnownType(WellKnownType.System_Runtime_InteropServices_InAttribute, diagnostics, syntax.ReturnType); 313var location = syntax.ReturnType.GetLocation();
Symbols\VarianceSafety.cs (1)
132return (syntax == null) ? null : syntax.ReturnType.Location;
Syntax.xml.Main.Generated.cs (1)
2011=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), VisitToken(node.DelegateKeyword), (TypeSyntax?)Visit(node.ReturnType) ?? throw new ArgumentNullException("returnType"), VisitToken(node.Identifier), (TypeParameterListSyntax?)Visit(node.TypeParameterList), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), VisitList(node.ConstraintClauses), VisitToken(node.SemicolonToken));
Syntax.xml.Syntax.Generated.cs (9)
11204if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || delegateKeyword != this.DelegateKeyword || returnType != this.ReturnType || identifier != this.Identifier || typeParameterList != this.TypeParameterList || parameterList != this.ParameterList || constraintClauses != this.ConstraintClauses || semicolonToken != this.SemicolonToken) 11215public new DelegateDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11217public new DelegateDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11218public DelegateDeclarationSyntax WithDelegateKeyword(SyntaxToken delegateKeyword) => Update(this.AttributeLists, this.Modifiers, delegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11220public DelegateDeclarationSyntax WithIdentifier(SyntaxToken identifier) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11221public DelegateDeclarationSyntax WithTypeParameterList(TypeParameterListSyntax? typeParameterList) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, typeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken); 11222public DelegateDeclarationSyntax WithParameterList(ParameterListSyntax parameterList) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, parameterList, this.ConstraintClauses, this.SemicolonToken); 11223public DelegateDeclarationSyntax WithConstraintClauses(SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, constraintClauses, this.SemicolonToken); 11224public DelegateDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, semicolonToken);
Syntax\SyntaxFacts.cs (1)
182return ((DelegateDeclarationSyntax)parent).ReturnType == node;
Syntax\SyntaxNodeExtensions.cs (1)
270(current.Parent is DelegateDeclarationSyntax delegateDeclaration && delegateDeclaration.ReturnType == current) ||
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
157return ((DelegateDeclarationSyntax)member).ReturnType;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
790.WithLeadingTrivia(delegateDeclarationSyntax.ReturnType.GetLeadingTrivia()) 791.WithTrailingTrivia(delegateDeclarationSyntax.ReturnType.GetTrailingTrivia());
Microsoft.CodeAnalysis.CSharp.Features (1)
SolutionExplorer\CSharpSolutionExplorerSymbolTreeItemProvider.cs (1)
118AppendType(delegateDeclaration.ReturnType, nameBuilder);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (28)
Generated\Syntax.Test.xml.Generated.cs (2)
13230Assert.NotNull(node.ReturnType); 13236var newNode = node.WithAttributeLists(node.AttributeLists).WithModifiers(node.Modifiers).WithDelegateKeyword(node.DelegateKeyword).WithReturnType(node.ReturnType).WithIdentifier(node.Identifier).WithTypeParameterList(node.TypeParameterList).WithParameterList(node.ParameterList).WithConstraintClauses(node.ConstraintClauses).WithSemicolonToken(node.SemicolonToken);
Parsing\DeclarationParsingTests.cs (26)
2006Assert.NotNull(ds.ReturnType); 2007Assert.Equal("a", ds.ReturnType.ToString()); 2033Assert.NotNull(ds.ReturnType); 2034Assert.Equal("ref a", ds.ReturnType.ToString()); 2061Assert.NotNull(ds.ReturnType); 2062Assert.Equal("ref readonly a", ds.ReturnType.ToString()); 2108Assert.NotNull(ds.ReturnType); 2109Assert.Equal(typeText, ds.ReturnType.ToString()); 2154Assert.NotNull(ds.ReturnType); 2155Assert.Equal("a", ds.ReturnType.ToString()); 2189Assert.NotNull(ds.ReturnType); 2190Assert.Equal("a", ds.ReturnType.ToString()); 2224Assert.NotNull(ds.ReturnType); 2225Assert.Equal("a", ds.ReturnType.ToString()); 2266Assert.NotNull(ds.ReturnType); 2267Assert.Equal("a", ds.ReturnType.ToString()); 2302Assert.NotNull(ds.ReturnType); 2303Assert.Equal("a", ds.ReturnType.ToString()); 2338Assert.NotNull(ds.ReturnType); 2339Assert.Equal("a", ds.ReturnType.ToString()); 2375Assert.NotNull(ds.ReturnType); 2376Assert.Equal("a", ds.ReturnType.ToString()); 2408Assert.NotNull(ds.ReturnType); 2409Assert.Equal("a", ds.ReturnType.ToString()); 2459Assert.NotNull(ds.ReturnType); 2460Assert.Equal("b", ds.ReturnType.ToString());
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
2122return NotVoid(((DelegateDeclarationSyntax)declaration).ReturnType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
157return ((DelegateDeclarationSyntax)member).ReturnType;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
790.WithLeadingTrivia(delegateDeclarationSyntax.ReturnType.GetLeadingTrivia()) 791.WithTrailingTrivia(delegateDeclarationSyntax.ReturnType.GetTrailingTrivia());
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.CodeModelEventCollector.cs (2)
622if (!CompareTypes(oldDelegate.ReturnType, newDelegate.ReturnType))
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
157return ((DelegateDeclarationSyntax)member).ReturnType;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
790.WithLeadingTrivia(delegateDeclarationSyntax.ReturnType.GetLeadingTrivia()) 791.WithTrailingTrivia(delegateDeclarationSyntax.ReturnType.GetTrailingTrivia());