-
-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
PipeScript already extends the PowerShell AST quite a bit (#145), and yet, there is always more to do.
Wrapping the C# AST has given some inspiration in this department, and it would be nice if both ASTs could be made to follow some similar patterns.
-
[Ast].get_ID
#569 -
Ast.FindAny
should Find any instance of a type or series of conditions #575 -
Ast.FindEvery
should Find every instance of a type or series of conditions #576 -
[Ast]/[ScriptBlock]
.IsEmpty #494 -
[AST].ByType
should get all children by type #639 -
[AST].get_Commands
should get all[CommandAST]
nodes #640 -
[AST].get_Variables
should get all[VariableExpressionAst]
nodes #641 -
[AST].get_Types
should get all[TypeExpressionAst]
nodes #642 -
[AST].get_Defines
should get all[FunctionDefinitionAst]
and[TypeDefinitionAst]
nodes #643 - [AST].get_Parameters should get all [ParameterAst] nodes #650
-
Ast/ScriptBlock.IsEquivalentTo
should attempt to determine equivalency #775 -
Ast.get_First
should the first nested node that is not this node. #801 -
Ast.FirstElements($n)
should the first n nested node that is not this node. #802 -
[ExpandableStringExpressionAst].Expand
#803 -
AST.get_Unique
should get unique elements #845
Additionally, this inspires some housekeeping of existing AST extensions:
-
TypeConstraintAst.Parameters/ArgumentList
are in need of documentation and examples
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request