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

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

Member

Description

new

Creates an instance of the attribute.

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.

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

F# Core Library Versions

Supported in: 2.0, 4.0, Portable

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft