Table of contents
TOC
Collapse the table of content
Expand the table of content

Core.CompilationMappingAttribute Class (F#)

Den Delimarsky|Last Updated: 7/4/2016
|
1 Contributor

This attribute is inserted automatically by the F# compiler to tag types and methods in the generated Common Language Infrastructure (CLI) code with flags indicating the correspondence with original source constructs. It is used by the functions in the Microsoft.FSharp.Reflection namespace to reverse-map compiled constructs to their original forms. It is not intended for use from user code.

Namespace/Module Path: Microsoft.FSharp.Core

Assembly: FSharp.Core (in FSharp.Core.dll)

Syntax

[<AttributeUsage(AttributeTargets.All, AllowMultiple = false)>]
[<Sealed>]
type CompilationMappingAttribute =
class
new CompilationMappingAttribute : SourceConstructFlags * int * int -> CompilationMappingAttribute
new CompilationMappingAttribute : SourceConstructFlags * int -> CompilationMappingAttribute
new CompilationMappingAttribute : SourceConstructFlags -> CompilationMappingAttribute
member this.SequenceNumber :  int
member this.SourceConstructFlags :  SourceConstructFlags
member this.VariantNumber :  int
end

Remarks

You can also use the short form of the name, CompilationMapping.

Constructors

MemberDescription
newCreates an instance of the attribute.

Instance Members

MemberDescription
SequenceNumberIndicates the sequence number of the entity, if any, in a linear sequence of elements with F# source code.
SourceConstructFlagsIndicates the relationship between the compiled entity and F# source code.
VariantNumberIndicates the variant number of the entity, if any, in a linear sequence of elements with F# source code.

Platforms

Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

Version Information

F# Core Library Versions

Supported in: 2.0, 4.0, Portable

See Also

Microsoft.FSharp.Core Namespace (F#)

© 2016 Microsoft