Skip to main content
Version: 3.10

Return 输出参数

1. 结构声明

class Return extends BaseNode {
name: string = '';
description?: string;
typeAnnotation?: TypeAnnotation;
defaultValue?: DefaultValue;
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "Return",
"name": "result",
"description": ""
}

对应的代码如下:

result