22 references to ReturnType
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder_Lambda.cs (1)
82
if (paren.
ReturnType
is { } returnTypeSyntax)
Symbols\Source\LambdaSymbol.cs (1)
245
private bool HasExplicitReturnType => _syntax is ParenthesizedLambdaExpressionSyntax {
ReturnType
: not null };
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1544
ParenthesizedLambdaExpressionSyntax {
ReturnType
: { } lambdaReturnType } => lambdaReturnType,
Syntax.xml.Main.Generated.cs (1)
1678
=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.
ReturnType
), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), VisitToken(node.ArrowToken), (BlockSyntax?)Visit(node.Block), (ExpressionSyntax?)Visit(node.ExpressionBody));
Syntax.xml.Syntax.Generated.cs (7)
3427
if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || returnType != this.
ReturnType
|| parameterList != this.ParameterList || arrowToken != this.ArrowToken || block != this.Block || expressionBody != this.ExpressionBody)
3438
public new ParenthesizedLambdaExpressionSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.
ReturnType
, this.ParameterList, this.ArrowToken, this.Block, this.ExpressionBody);
3440
public new ParenthesizedLambdaExpressionSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.
ReturnType
, this.ParameterList, this.ArrowToken, this.Block, this.ExpressionBody);
3442
public ParenthesizedLambdaExpressionSyntax WithParameterList(ParameterListSyntax parameterList) => Update(this.AttributeLists, this.Modifiers, this.
ReturnType
, parameterList, this.ArrowToken, this.Block, this.ExpressionBody);
3444
public new ParenthesizedLambdaExpressionSyntax WithArrowToken(SyntaxToken arrowToken) => Update(this.AttributeLists, this.Modifiers, this.
ReturnType
, this.ParameterList, arrowToken, this.Block, this.ExpressionBody);
3446
public new ParenthesizedLambdaExpressionSyntax WithBlock(BlockSyntax? block) => Update(this.AttributeLists, this.Modifiers, this.
ReturnType
, this.ParameterList, this.ArrowToken, block, this.ExpressionBody);
3448
public new ParenthesizedLambdaExpressionSyntax WithExpressionBody(ExpressionSyntax? expressionBody) => Update(this.AttributeLists, this.Modifiers, this.
ReturnType
, this.ParameterList, this.ArrowToken, this.Block, expressionBody);
Syntax\SyntaxFacts.cs (1)
191
return ((ParenthesizedLambdaExpressionSyntax)parent).
ReturnType
== node;
Syntax\SyntaxNodeExtensions.cs (1)
266
(current.Parent is ParenthesizedLambdaExpressionSyntax lambda && lambda.
ReturnType
== current) ||
Syntax\SyntaxNormalizer.cs (1)
901
lambda.
ReturnType
?.GetLastToken() == token)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitlyTypedLambdaExpressionDiagnosticAnalyzer.cs (1)
66
if (explicitLambda.
ReturnType
!= null)
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\CompletionProviders\AwaitCompletionProvider.cs (2)
46
ParenthesizedLambdaExpressionSyntax parenthesizedLambda => (parenthesizedLambda.
ReturnType
as SyntaxNode ?? parenthesizedLambda.ParameterList).SpanStart,
59
ParenthesizedLambdaExpressionSyntax parenthesizedLambda => parenthesizedLambda.
ReturnType
,
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1864
return CombineSpans(parenthesizedLambda.
ReturnType
?.Span ?? default, parenthesizedLambda.ParameterList.Span, defaultSpan: default);
src\Analyzers\CSharp\Analyzers\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitlyTypedLambdaExpressionDiagnosticAnalyzer.cs (1)
66
if (explicitLambda.
ReturnType
!= null)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\LambdaTests.cs (1)
5644
var returnTypeSyntax = lambdaSyntax.
ReturnType
;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (2)
11778
Assert.Null(node.
ReturnType
);
11783
var newNode = node.WithAttributeLists(node.AttributeLists).WithModifiers(node.Modifiers).WithReturnType(node.
ReturnType
).WithParameterList(node.ParameterList).WithArrowToken(node.ArrowToken).WithBlock(node.Block).WithExpressionBody(node.ExpressionBody);