C# Class Lens.SyntaxTree.Expressions.InvocationNode

A node representing a method being invoked.
Inheritance: Lens.SyntaxTree.Expressions.InvocationNodeBase
显示文件 Open project: impworks/lens Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
ProcessClosures ( Lens.Compiler.Context ctx ) : void
ToString ( ) : string

Protected Methods

Method Description
Equals ( InvocationNode other ) : bool
emitCode ( Lens.Compiler.Context ctx, bool mustReturn ) : void
getChildren ( ) : IEnumerable
recreateSelfWithArgs ( IEnumerable newArgs ) : Lens.SyntaxTree.Expressions.InvocationNodeBase
resolve ( Lens.Compiler.Context ctx, bool mustReturn ) : Type

Private Methods

Method Description
resolveExpression ( Lens.Compiler.Context ctx, NodeBase node ) : void

Resolves a method from the expression, considering it an instance of a delegate type.

resolveGetIdentifier ( Lens.Compiler.Context ctx, Lens.SyntaxTree.Expressions.GetIdentifierNode node ) : void

Resolves the method as a global function, imported property or a local variable with a delegate.

resolveGetMember ( Lens.Compiler.Context ctx, Lens.SyntaxTree.Expressions.GetMemberNode node ) : void

Resolves the method if the expression was a member getter (obj.field or type::field).

Method Details

Equals() protected method

protected Equals ( InvocationNode other ) : bool
other InvocationNode
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

ProcessClosures() public method

public ProcessClosures ( Lens.Compiler.Context ctx ) : void
ctx Lens.Compiler.Context
return void

ToString() public method

public ToString ( ) : string
return string

emitCode() protected method

protected emitCode ( Lens.Compiler.Context ctx, bool mustReturn ) : void
ctx Lens.Compiler.Context
mustReturn bool
return void

getChildren() protected method

protected getChildren ( ) : IEnumerable
return IEnumerable

recreateSelfWithArgs() protected method

protected recreateSelfWithArgs ( IEnumerable newArgs ) : Lens.SyntaxTree.Expressions.InvocationNodeBase
newArgs IEnumerable
return Lens.SyntaxTree.Expressions.InvocationNodeBase

resolve() protected method

protected resolve ( Lens.Compiler.Context ctx, bool mustReturn ) : Type
ctx Lens.Compiler.Context
mustReturn bool
return System.Type