Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix warnings and output xml documentation #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions LicenseToCIL/LicenseToCIL.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<PackageProjectUrl>https://github.com/rspeele/LicenseToCIL</PackageProjectUrl>
<RepositoryUrl>https://github.com/rspeele/LicenseToCIL</RepositoryUrl>
<PackageReleaseNotes>Target .NET standard 2.0.</PackageReleaseNotes>
<DocumentationFile>LicenseToCIL.xml</DocumentationFile>
</PropertyGroup>

<ItemGroup>
Expand Down
20 changes: 10 additions & 10 deletions LicenseToCIL/Ops.fs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ let inline ldc'r4 (r : single) (_ : 'x S) (_ : 'x S S) (il : IL) = il.EmitSingle

let inline ldc'r8 (r : double) (_ : 'x S) (_ : 'x S S) (il : IL) = il.EmitDouble(OpCodes.Ldc_R8, r)

let inline ldstr (s : string) (_ : 'x S) (_ : 'x S S) (il : IL) = il.EmitString(OpCodes.Ldstr, s)
let inline ldstr (str : string) (_ : 'x S) (_ : 'x S S) (il : IL) = il.EmitString(OpCodes.Ldstr, str)

////////////////////////////////////////
// Arithmetic and logic
Expand Down Expand Up @@ -274,10 +274,10 @@ let inline ldelem'u8 (_ : 'x S S S) (_ : 'x S S) (il : IL) = il.Emit(OpCodes.Lde
let inline ldelem'r4 (_ : 'x S S S) (_ : 'x S S) (il : IL) = il.Emit(OpCodes.Ldelem_R4)
let inline ldelem'r8 (_ : 'x S S S) (_ : 'x S S) (il : IL) = il.Emit(OpCodes.Ldelem_R8)
let inline ldelem'ref (_ : 'x S S S) (_ : 'x S S) (il : IL) = il.Emit(OpCodes.Ldelem_Ref)
let inline ldelema (elemTy : Type) (_ : 'x S S S) (_ : 'x S S) (il : IL) = il.EmitTy(OpCodes.Ldelema, elemTy)
let inline ldelema (ty : Type) (_ : 'x S S S) (_ : 'x S S) (il : IL) = il.EmitTy(OpCodes.Ldelema, ty)

/// [array,index,value] -> []
let inline stelem (ty : Type) (_ : 'x S S S S) (_ : 'x S) (il : IL) = il.EmitTy(OpCodes.Stelem, ty)
let inline stelem (elemTy : Type) (_ : 'x S S S S) (_ : 'x S) (il : IL) = il.EmitTy(OpCodes.Stelem, elemTy)
let inline stelem'i (_ : 'x S S S S) (_ : 'x S) (il : IL) = il.Emit(OpCodes.Stelem_I)
let inline stelem'i1 (_ : 'x S S S S) (_ : 'x S) (il : IL) = il.Emit(OpCodes.Stelem_I1)
let inline stelem'i2 (_ : 'x S S S S) (_ : 'x S) (il : IL) = il.Emit(OpCodes.Stelem_I2)
Expand All @@ -291,11 +291,11 @@ let inline stelem'ref (_ : 'x S S S S) (_ : 'x S) (il : IL) = il.Emit(OpCodes.St
// Arguments
////////////////////////////////////////

let inline ldarg i (_ : 'x S) (_ : 'x S S) (il : IL) = CILHelpers.LdArg(i, il)
let inline ldarg num (_ : 'x S) (_ : 'x S S) (il : IL) = CILHelpers.LdArg(num, il)

let inline ldarga i (_ : 'x S) (_ : 'x S S) (il : IL) = CILHelpers.LdArgA(i, il)
let inline ldarga num (_ : 'x S) (_ : 'x S S) (il : IL) = CILHelpers.LdArgA(num, il)

let inline starg i (_ : 'x S S) (_ : 'x S) (il : IL) = CILHelpers.StArg(i, il)
let inline starg num (_ : 'x S S) (_ : 'x S) (il : IL) = CILHelpers.StArg(num, il)

////////////////////////////////////////
// Fields
Expand Down Expand Up @@ -422,10 +422,10 @@ let inline switch (labels : 'x Label seq) (_ : 'x S S) (_ : 'x S) (il : IL) =
let inline ldtoken (ty : Type) (_ : 'x S) (_ : 'x S S) (il : IL) = il.EmitTy(OpCodes.Ldtoken, ty)
let inline ldftn (meth : MethodInfo) (_ : 'x S) (_ : 'x S S) (il : IL) = il.EmitMethod(OpCodes.Ldftn, meth)
let inline ldvirtftn (meth : MethodInfo) (_ : 'x S S) (_ : 'x S S) (il : IL) = il.EmitMethod(OpCodes.Ldvirtftn, meth)
let inline box'val (ty : Type) (_ : 'x S S) (_ : 'x S S) (il : IL) = il.EmitTy(OpCodes.Box, ty)
let inline box'val (valueTy : Type) (_ : 'x S S) (_ : 'x S S) (il : IL) = il.EmitTy(OpCodes.Box, valueTy)
let inline unbox'any (ty : Type) (_ : 'x S S) (_ : 'x S S) (il : IL) = il.EmitTy(OpCodes.Unbox_Any, ty)
let inline unbox'val (ty : Type) (_ : 'x S S) (_ : 'x S S) (il : IL) = il.EmitTy(OpCodes.Unbox, ty)
let inline castclass (ty : Type) (_ : 'x S S) (_ : 'x S S) (il : IL) = il.EmitTy(OpCodes.Castclass, ty)
let inline unbox'val (valueTy : Type) (_ : 'x S S) (_ : 'x S S) (il : IL) = il.EmitTy(OpCodes.Unbox, valueTy)
let inline castclass (toTy : Type) (_ : 'x S S) (_ : 'x S S) (il : IL) = il.EmitTy(OpCodes.Castclass, toTy)
let inline isinst (ty : Type) (_ : 'x S S) (_ : 'x S S) (il : IL) = il.EmitTy(OpCodes.Isinst, ty)
let inline refanyval (ty : Type) (_ : 'x S S) (_ : 'x S S) (il : IL) = il.EmitTy(OpCodes.Refanyval, ty)
let inline refanytype (_ : 'x S S) (_ : 'x S S) (il : IL) = il.Emit(OpCodes.Refanytype)
Expand All @@ -450,7 +450,7 @@ let inline cpblk (_ : 'x S S S S) (_ : 'x S) (il : IL) = il.Emit(OpCodes.Cpblk)
let inline stobj (ty : Type) (_ : 'x S S S) (_ : 'x S) (il : IL) = il.EmitTy(OpCodes.Stobj, ty)
let inline ldobj (ty : Type) (_ : 'x S S) (_ : 'x S S) (il : IL) = il.EmitTy(OpCodes.Ldobj, ty)
let inline cpobj (ty : Type) (_ : 'x S S S) (_ : 'x S) (il : IL) = il.EmitTy(OpCodes.Cpobj, ty)
let inline sizeof (ty : Type) (_ : 'x S) (_ : 'x S S) (il : IL) = il.EmitTy(OpCodes.Sizeof, ty)
let inline sizeof (valueTy : Type) (_ : 'x S) (_ : 'x S S) (il : IL) = il.EmitTy(OpCodes.Sizeof, valueTy)
let inline jmp (meth : MethodInfo) (_ : E S) (_ : E S) (il : IL) = il.EmitMethod(OpCodes.Jmp, meth)
let inline localloc (_ : 'x S S) (_ : 'x S S) (il : IL) = il.Emit(OpCodes.Localloc)
let inline initblk (_ : 'x S S S S) (_ : 'x S) (il : IL) = il.Emit(OpCodes.Initblk)
Expand Down