Share via


Core.CompilationMappingAttribute Class (F#)

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)

[<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

Member

Description

new

Creates an instance of the attribute.

Instance Members

Member

Description

SequenceNumber

Indicates the sequence number of the entity, if any, in a linear sequence of elements with F# source code.

SourceConstructFlags

Indicates the relationship between the compiled entity and F# source code.

VariantNumber

Indicates 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

Reference

Microsoft.FSharp.Core Namespace (F#)