File: https://github.com/dotnet/roslyn/blob/master/src/Compilers/Core/Portable/CvtRes.cs Issues: - `using BYTE = System.Byte;` should probably be `type BYTE = System.Byte` instead of `open System.Byte` - `sizeof(DWORD)` currently `UnknownNode` should be `sizeof<DWORD>` - Property intitializer: ``` new RESOURCE() { HeaderSize = cbHdr, DataSize = cbData }; ``` - do-while loop ``` do { sb.Append(curChar); curChar = fhIn.ReadChar(); } while (curChar != 0); ``` - Binary negate operator: `stream.Position <- stream.Position + 3 & ~3` -> `ERROR UnknownPrefixOperator "~"` - Generates `raise new ResourceException(CodeAnalysisResources.CoffResourceInvalidSectionSize)`, which doesn't compile as parethesis are required (or <|) Probably more, I'll edit as needed and might fix some of them.
File: https://github.com/dotnet/roslyn/blob/master/src/Compilers/Core/Portable/CvtRes.cs
Issues:
using BYTE = System.Byte;should probably betype BYTE = System.Byteinstead ofopen System.Bytesizeof(DWORD)currentlyUnknownNodeshould besizeof<DWORD>stream.Position <- stream.Position + 3 & ~3->ERROR UnknownPrefixOperator "~"raise new ResourceException(CodeAnalysisResources.CoffResourceInvalidSectionSize), which doesn't compile as parethesis are required (or <|)Probably more, I'll edit as needed and might fix some of them.