InvokeMemberExpressionAst Class

Definition

The ast that represents the invocation of a method, e.g. $sb.Append('abc') or [math]::Sign($i).

public ref class InvokeMemberExpressionAst : System::Management::Automation::Language::MemberExpressionAst
public class InvokeMemberExpressionAst : System.Management.Automation.Language.MemberExpressionAst
type InvokeMemberExpressionAst = class
    inherit MemberExpressionAst
Public Class InvokeMemberExpressionAst
Inherits MemberExpressionAst
Inheritance
Derived

Constructors

InvokeMemberExpressionAst(IScriptExtent, ExpressionAst, CommandElementAst, IEnumerable<ExpressionAst>, Boolean)

Initializes a new instance of the InvokeMemberExpressionAst class.

InvokeMemberExpressionAst(IScriptExtent, ExpressionAst, CommandElementAst, IEnumerable<ExpressionAst>, Boolean, Boolean)

Initializes a new instance of the InvokeMemberExpressionAst class.

InvokeMemberExpressionAst(IScriptExtent, ExpressionAst, CommandElementAst, IEnumerable<ExpressionAst>, Boolean, Boolean, IList<ITypeName>)

Initializes a new instance of the InvokeMemberExpressionAst class.

InvokeMemberExpressionAst(IScriptExtent, ExpressionAst, CommandElementAst, IEnumerable<ExpressionAst>, Boolean, IList<ITypeName>)

Initializes a new instance of the InvokeMemberExpressionAst class.

Properties

Arguments

The non-empty collection of arguments to pass when invoking the method, or null if no arguments were specified.

Expression

The expression that produces the value to retrieve the member from. This property is never null.

(Inherited from MemberExpressionAst)
Extent

The extent in the source this ast represents.

(Inherited from Ast)
GenericTypeArguments

Gets a list of generic type arguments passed to this method invocation.

Member

The name of the member to retrieve. This property is never null.

(Inherited from MemberExpressionAst)
NullConditional

Gets a value indicating true if the operator used is ?. or ?[].

(Inherited from MemberExpressionAst)
Parent

The parent tree for this node.

(Inherited from Ast)
Static

True if the member to return is static, false if the member is an instance member.

(Inherited from MemberExpressionAst)
StaticType

By default, the static type of an expression is unknown and hence we assume typeof(object).

(Inherited from ExpressionAst)

Methods

Copy()

Copy the InvokeMemberExpressionAst instance.

Find(Func<Ast,Boolean>, Boolean)

Traverse the entire Ast, returning the first node in the tree for which predicate returns true.

(Inherited from Ast)
FindAll(Func<Ast,Boolean>, Boolean)

Traverse the entire Ast, returning all nodes in the tree for which predicate returns true.

(Inherited from Ast)
SafeGetValue()

Constructs the resultant object from the AST and returns it if it is safe.

(Inherited from Ast)
SafeGetValue(Boolean)

Constructs the resultant object from the AST and returns it if it is safe.

(Inherited from Ast)
ToString()

Formats the ast and returns a string.

(Inherited from Ast)
Visit(AstVisitor)

Visit each node in the Ast, calling the methods in astVisitor for each node in the ast.

(Inherited from Ast)
Visit(ICustomAstVisitor)

Visit the Ast using a visitor that can choose how the tree traversal is performed. This visit method is for advanced uses of the visitor pattern where an AstVisitor is insufficient.

(Inherited from Ast)

Applies to