27 references to ReturnType
Microsoft.CodeAnalysis.CSharp (16)
_generated\0\Syntax.xml.Main.Generated.cs (1)
2023
=> 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));
_generated\2\Syntax.xml.Syntax.Generated.cs (9)
11251
if (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)
11262
public new DelegateDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.DelegateKeyword, this.
ReturnType
, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken);
11264
public new DelegateDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.DelegateKeyword, this.
ReturnType
, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken);
11265
public DelegateDeclarationSyntax WithDelegateKeyword(SyntaxToken delegateKeyword) => Update(this.AttributeLists, this.Modifiers, delegateKeyword, this.
ReturnType
, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken);
11267
public DelegateDeclarationSyntax WithIdentifier(SyntaxToken identifier) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.
ReturnType
, identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken);
11268
public DelegateDeclarationSyntax WithTypeParameterList(TypeParameterListSyntax? typeParameterList) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.
ReturnType
, this.Identifier, typeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken);
11269
public DelegateDeclarationSyntax WithParameterList(ParameterListSyntax parameterList) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.
ReturnType
, this.Identifier, this.TypeParameterList, parameterList, this.ConstraintClauses, this.SemicolonToken);
11270
public DelegateDeclarationSyntax WithConstraintClauses(SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.
ReturnType
, this.Identifier, this.TypeParameterList, this.ParameterList, constraintClauses, this.SemicolonToken);
11271
public DelegateDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.Modifiers, this.DelegateKeyword, this.
ReturnType
, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, semicolonToken);
Symbols\Source\SourceDelegateMethodSymbol.cs (3)
53
TypeSyntax returnTypeSyntax = syntax.
ReturnType
;
288
var modifierType = binder.GetWellKnownType(WellKnownType.System_Runtime_InteropServices_InAttribute, diagnostics, syntax.
ReturnType
);
318
var location = syntax.
ReturnType
.GetLocation();
Symbols\VarianceSafety.cs (1)
132
return (syntax == null) ? null : syntax.
ReturnType
.Location;
Syntax\SyntaxFacts.cs (1)
182
return ((DelegateDeclarationSyntax)parent).
ReturnType
== node;
Syntax\SyntaxNodeExtensions.cs (1)
270
(current.Parent is DelegateDeclarationSyntax delegateDeclaration && delegateDeclaration.
ReturnType
== current) ||
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
160
return ((DelegateDeclarationSyntax)member).
ReturnType
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\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)
136
AppendType(delegateDeclaration.
ReturnType
, nameBuilder);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
2112
return NotVoid(((DelegateDeclarationSyntax)declaration).
ReturnType
);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
160
return ((DelegateDeclarationSyntax)member).
ReturnType
;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
790
.WithLeadingTrivia(delegateDeclarationSyntax.
ReturnType
.GetLeadingTrivia())
791
.WithTrailingTrivia(delegateDeclarationSyntax.
ReturnType
.GetTrailingTrivia());
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (1)
160
return ((DelegateDeclarationSyntax)member).
ReturnType
;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
790
.WithLeadingTrivia(delegateDeclarationSyntax.
ReturnType
.GetLeadingTrivia())
791
.WithTrailingTrivia(delegateDeclarationSyntax.
ReturnType
.GetTrailingTrivia());