SyntaxFactory.IsCompleteSubmission(SyntaxTree) 方法

定义

确定给定文本是否被视为语法完整的提交。 ArgumentException如果树未编译为交互式提交,则引发。

public:
 static bool IsCompleteSubmission(Microsoft::CodeAnalysis::SyntaxTree ^ tree);
public static bool IsCompleteSubmission (Microsoft.CodeAnalysis.SyntaxTree tree);
static member IsCompleteSubmission : Microsoft.CodeAnalysis.SyntaxTree -> bool
Public Shared Function IsCompleteSubmission (tree As SyntaxTree) As Boolean

参数

tree
SyntaxTree

返回

适用于