File: Lowering\AsyncRewriter\ClosureKind.vb
Web Access
Project: src\src\Compilers\VisualBasic\Portable\Microsoft.CodeAnalysis.VisualBasic.vbproj (Microsoft.CodeAnalysis.VisualBasic)
' 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.
 
Namespace Microsoft.CodeAnalysis.VisualBasic
    Friend Enum ClosureKind
        ''' <summary>
        ''' The closure doesn't declare any variables. 
        ''' Display class Is a singleton And may be shared with other top-level methods.
        ''' </summary>
        [Static]
 
        ''' <summary>
        ''' The closure only contains a reference to the containing class instance ("Me").
        ''' We don't emit a display class, lambdas are emitted directly to the containing class as its instance methods.
        ''' </summary>
        ThisOnly
 
        '''  <summary>
        '''  General closure.
        '''  Display class may only contain lambdas defined in the same top-level method.
        '''  </summary>
        General
    End Enum
End Namespace