Share via


PredictionContext(Ast, Token[]) Constructor

Definition

Initializes a new instance of the PredictionContext class from the AST and tokens that represent the user input.

public PredictionContext (System.Management.Automation.Language.Ast inputAst, System.Management.Automation.Language.Token[] inputTokens);
new System.Management.Automation.Subsystem.Prediction.PredictionContext : System.Management.Automation.Language.Ast * System.Management.Automation.Language.Token[] -> System.Management.Automation.Subsystem.Prediction.PredictionContext
Public Sub New (inputAst As Ast, inputTokens As Token())

Parameters

inputAst
Ast

The Ast object from parsing the current command line input.

inputTokens
Token[]

The Token objects from parsing the current command line input.

Applies to