SyntaxGenerator.ReturnStatement(SyntaxNode) 方法

定义

创建一个语句,该语句可用于从方法正文返回值。

public abstract Microsoft.CodeAnalysis.SyntaxNode ReturnStatement (Microsoft.CodeAnalysis.SyntaxNode expression = default);
public abstract Microsoft.CodeAnalysis.SyntaxNode ReturnStatement (Microsoft.CodeAnalysis.SyntaxNode? expression = default);
abstract member ReturnStatement : Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function ReturnStatement (Optional expression As SyntaxNode = Nothing) As SyntaxNode

参数

expression
SyntaxNode

可返回的可选表达式。

返回

适用于