-
Notifications
You must be signed in to change notification settings - Fork 790
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #3113 by porting the relevant roslyn codeand integrate it into th…
…e codebase (#7024)
- Loading branch information
1 parent
041c40b
commit c22fa0b
Showing
12 changed files
with
1,065 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
module internal FSharp.Compiler.AbstractIL.Internal.CVTres | ||
|
||
open System | ||
open System.IO | ||
|
||
type BYTE = System.Byte | ||
type DWORD = System.UInt32 | ||
type WCHAR = System.Char | ||
type WORD = System.UInt16 | ||
|
||
[<Class>] | ||
type RESOURCE_STRING = | ||
member Ordinal: WORD with get, set | ||
member theString : string with get, set | ||
|
||
[<Class>] | ||
type RESOURCE = | ||
member pstringType : RESOURCE_STRING with get, set | ||
member pstringName : RESOURCE_STRING with get, set | ||
member DataSize : DWORD with get, set | ||
member HeaderSize : DWORD with get, set | ||
member DataVersion : DWORD with get, set | ||
member MemoryFlags : WORD with get, set | ||
member LanguageId : WORD with get, set | ||
member Version : DWORD with get, set | ||
member Characteristics : DWORD with get, set | ||
member data : byte[] with get, set | ||
|
||
[<Class>] | ||
type CvtResFile = | ||
static member ReadResFile : stream:Stream -> System.Collections.Generic.List<RESOURCE> | ||
|
||
[<Class>] | ||
type Win32ResourceConversions = | ||
static member AppendIconToResourceStream : resStream:Stream * iconStream:Stream -> unit | ||
static member AppendVersionToResourceStream : resStream:Stream * isDll:System.Boolean * fileVersion:string * originalFileName:string * internalName:string * productVersion:string * assemblyVersion:Version * ?fileDescription:string * ?legalCopyright:string * ?legalTrademarks:string * ?productName:string * ?comments:string * ?companyName:string -> unit | ||
static member AppendManifestToResourceStream : resStream:Stream * manifestStream:Stream * isDll:System.Boolean -> unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.