/
AwaitExpressionInfo.vb
56 lines (49 loc) · 1.88 KB
/
AwaitExpressionInfo.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.Diagnostics
Imports Microsoft.CodeAnalysis.Text
Imports Microsoft.CodeAnalysis.VisualBasic.Symbols
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax
Namespace Microsoft.CodeAnalysis.VisualBasic
''' <summary>
''' Structure containing all semantic information about an Await expression.
''' </summary>
Public Structure AwaitExpressionInfo
''' <summary>
''' Initializes a new instance of the <see cref="AwaitExpressionInfo" /> structure.
''' </summary>
Friend Sub New(getAwaiter As IMethodSymbol, isCompleted As IPropertySymbol, getResult As IMethodSymbol)
_getAwaiter = getAwaiter
_isCompleted = isCompleted
_getResult = getResult
End Sub
Private ReadOnly _getAwaiter As IMethodSymbol
Private ReadOnly _isCompleted As IPropertySymbol
Private ReadOnly _getResult As IMethodSymbol
''' <summary>
''' Gets the "GetAwaiter" method.
''' </summary>
Public ReadOnly Property GetAwaiterMethod As IMethodSymbol
Get
Return _getAwaiter
End Get
End Property
''' <summary>
''' Gets the "GetResult" method.
''' </summary>
Public ReadOnly Property GetResultMethod As IMethodSymbol
Get
Return _getResult
End Get
End Property
''' <summary>
''' Gets the "IsCompleted" property.
''' </summary>
Public ReadOnly Property IsCompletedProperty As IPropertySymbol
Get
Return _isCompleted
End Get
End Property
End Structure
End Namespace