AstToWorkflowConverter.ValidateAst(FunctionDefinitionAst) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The PowerShell AST correpsponding to the job's definition.
Returns
A collection of PSParseErrors corresponding to any semantic issues in the AST.