Core.CompilationMappingAttribute クラス (F#)

この属性は、F# コンパイラによって自動的に挿入されます。生成された共通言語基盤 (CLI) コード内の型とメソッドに、元のソース構造との対応を示すフラグでタグを付けます。これは、Microsoft.FSharp.Reflection 名前空間内の関数で、コンパイル済みの構成要素を元の形式に逆マップするために使用されます。ユーザー コードで使用するためのものではありません。

名前空間/モジュール パス: Microsoft.FSharp.Core

アセンブリ: FSharp.Core (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

解説

短縮形の名前である CompilationMapping も使用できます。

コンストラクター

メンバー

説明

new

属性のインスタンスを作成します。

インスタンス メンバー

メンバー

説明

SequenceNumber

F# ソース コードの要素のリニア シーケンス内にエンティティがある場合、そのエンティティのシーケンス番号を示します。

SourceConstructFlags

コンパイルされたエンティティと F# ソース コードとの関係を示します。

VariantNumber

F# ソース コードの要素のリニア シーケンス内にエンティティがある場合、そのエンティティのバリアント番号を示します。

プラットフォーム

Windows 8、Windows 7、Windows Server 2012 で Windows Server 2008 R2

バージョン情報

F# コア ライブラリのバージョン

サポート: ポータブル 2.0、4.0

参照

関連項目

Microsoft.FSharp.Core 名前空間 (F#)