AstToWorkflowConverter.ValidateAst(FunctionDefinitionAst) Method

Definition

Provides the opportunity for job converters to validate the semantics of the AST before compilation. This stage should be light-weight and as efficient as possible.

public:
 virtual System::Collections::Generic::List<System::Management::Automation::Language::ParseError ^> ^ ValidateAst(System::Management::Automation::Language::FunctionDefinitionAst ^ ast);
public System.Collections.Generic.List<System.Management.Automation.Language.ParseError> ValidateAst (System.Management.Automation.Language.FunctionDefinitionAst ast);
abstract member ValidateAst : System.Management.Automation.Language.FunctionDefinitionAst -> System.Collections.Generic.List<System.Management.Automation.Language.ParseError>
override this.ValidateAst : System.Management.Automation.Language.FunctionDefinitionAst -> System.Collections.Generic.List<System.Management.Automation.Language.ParseError>
Public Function ValidateAst (ast As FunctionDefinitionAst) As List(Of ParseError)

Parameters

ast
FunctionDefinitionAst

The PowerShell AST correpsponding to the job's definition.

Returns

A collection of PSParseErrors corresponding to any semantic issues in the AST.

Implements

Applies to