C# Class ICSharpCode.NRefactory.CSharp.Resolver.AwaitResolveResult

Represents the result of an await expression.
Inheritance: ResolveResult
Mostra file Open project: 0xd4d/NRefactory

Public Properties

Property Type Description
AwaiterType IType
GetAwaiterInvocation ResolveResult
GetResultMethod IMethod
IsCompletedProperty IProperty
OnCompletedMethod IMethod

Public Methods

Method Description
AwaitResolveResult ( IType resultType, ResolveResult getAwaiterInvocation, IType awaiterType, IProperty isCompletedProperty, IMethod onCompletedMethod, IMethod getResultMethod ) : System
GetChildResults ( ) : IEnumerable

Method Details

AwaitResolveResult() public method

public AwaitResolveResult ( IType resultType, ResolveResult getAwaiterInvocation, IType awaiterType, IProperty isCompletedProperty, IMethod onCompletedMethod, IMethod getResultMethod ) : System
resultType IType
getAwaiterInvocation ResolveResult
awaiterType IType
isCompletedProperty IProperty
onCompletedMethod IMethod
getResultMethod IMethod
return System

GetChildResults() public method

public GetChildResults ( ) : IEnumerable
return IEnumerable

Property Details

AwaiterType public_oe property

Awaiter type. Will not be null (but can be UnknownType).
public IType AwaiterType
return IType

GetAwaiterInvocation public_oe property

The method representing the GetAwaiter() call. Can be an InvocationResolveResult or a DynamicInvocationResolveResult.
public ResolveResult GetAwaiterInvocation
return ResolveResult

GetResultMethod public_oe property

Method representing the GetResult method on the awaiter type. Can be null if the awaiter type or the method was not found, or when awaiting a dynamic expression.
public IMethod GetResultMethod
return IMethod

IsCompletedProperty public_oe property

Property representing the IsCompleted property on the awaiter type. Can be null if the awaiter type or the property was not found, or when awaiting a dynamic expression.
public IProperty IsCompletedProperty
return IProperty

OnCompletedMethod public_oe property

Method representing the OnCompleted method on the awaiter type. Can be null if the awaiter type or the method was not found, or when awaiting a dynamic expression. This can also refer to an UnsafeOnCompleted method, if the awaiter type implements System.Runtime.CompilerServices.ICriticalNotifyCompletion.
public IMethod OnCompletedMethod
return IMethod