Commit graph

35 commits

Author SHA1 Message Date
Fraser Waters ea09f56740 Add missing count attribute to ExtGetProgramBinarySourceQCOM
Also extends Rewrite to understand the new syntax of "*name".
2017-11-02 09:28:36 +00:00
Fraser Waters 4cdaea4747 Fix bug in Rewrite that didn't detect missing CountAttributes 2017-11-02 09:28:34 +00:00
varon f3044c259a Merge pull request #627 from Nihlus/rewrite-new-1-better-options
Simplify option parsing for Generator.Rewrite
2017-09-03 11:28:09 +02:00
Jarl Gullberg 947162ce6c
Correct altered logic. 2017-08-28 17:01:05 +02:00
Fraser Waters a498da9448 Fix mscorlib 4.0.0.0 reference added by Rewrite.exe 2017-08-26 22:17:04 +01:00
Jarl Gullberg c0060bc681
Update options to the new v2 API. 2017-08-19 18:26:33 +02:00
Jarl Gullberg 4184e6a10e
Inverted unclear check and changed it check the dllimport option directly. 2017-08-19 18:26:33 +02:00
Jarl Gullberg 77ebecb9f7
Removed passing of options and replaced checks with option object access. 2017-08-19 18:26:33 +02:00
Jarl Gullberg fec6c18702
Added some early argument verification. 2017-08-19 18:26:33 +02:00
Jarl Gullberg 20399f2da7
Added option parsing to the main program. 2017-08-19 18:26:33 +02:00
Fraser Waters e9e471f785 Fix out String parameters 2017-08-13 14:38:53 +01:00
Fraser Waters 8914faa216 Remove unused variables in Rewrite 2017-08-13 14:35:04 +01:00
Jarl Gullberg e4d8be5658
Correct comma spacing in Generator.Rewrite. 2017-08-03 11:50:42 +02:00
Fraser Waters d547a81cab Use "out String" parameters instead of "StringBuilder" 2017-07-28 06:16:52 +01:00
Fraser Waters 34d7655274 Emit CountAttributes during binding
Adds a new parameter attribute CountAttribute that is emitted during
binding. CountAttribute is based on the "len" attribute in the
specifications. It describes what the expected count/length of the
parameter is.

During rewrite we remove these attributes.
2017-07-28 06:16:48 +01:00
Fraser Waters f099ae6db7 Print Exception variable in Rewrite 2017-07-23 16:02:23 +01:00
Jarl Gullberg 4f60f95607
Enforced the use of braces for conditional statements. 2017-07-17 19:24:51 +02:00
Jarl Gullberg 5f2d3144c4
Enforced use of explicit private modifiers. 2017-07-17 18:51:54 +02:00
Jarl Gullberg af416b6e3a
Replaced tabs with four spaces across the codebase. 2017-07-05 20:28:30 +02:00
Jarl Gullberg b8975c5626
Added catching of error thrown when the assembly has been rewritten but the debug symbols do not match. 2017-05-30 19:09:27 +02:00
Jarl Gullberg 1cda816b97
Changed signatures back to IEnumerable and added full enumeration to list where needed. 2017-05-29 22:22:26 +02:00
Jarl Gullberg b420ce8735
Changed signature of RemoveNativeSignatures. 2017-05-29 22:08:48 +02:00
Jarl Gullberg 7b65131fb5
Pulled repeated logic out into a helper method. 2017-05-29 22:05:07 +02:00
Jarl Gullberg 8514b5c78e
Added static modifier to methods which could have it. 2017-05-29 20:19:17 +02:00
Jarl Gullberg 57de60ba96
Tightened variable identifier picking even more. 2017-05-29 20:16:43 +02:00
Jarl Gullberg 879da06b29
Added additional identifier constraints. 2017-05-29 19:45:38 +02:00
Jarl Gullberg 19995fdc2e
Removed unused using statement. 2017-05-29 19:00:12 +02:00
Jarl Gullberg 71c900630f
Added ordinal comparison to string index search. 2017-05-29 18:59:37 +02:00
Jarl Gullberg 760e68ed4e
Removed uses of out variables and introduced a generated variable identifier class. 2017-05-29 18:57:13 +02:00
Jarl Gullberg bc981ceccf
Better variable naming and line breaks. 2017-05-29 18:23:33 +02:00
Jarl Gullberg f3f90691e6
Changed manual stream closing to a using statement. 2017-05-29 18:15:49 +02:00
Jarl Gullberg 9f4eb8546e
Removed obsolete manual detection of debug symbol file. 2017-05-29 18:14:46 +02:00
Jarl Gullberg a29f72663c
Changed uses of IEnumerable to List in order to prevent multiple enumerations. 2017-05-29 18:12:43 +02:00
Jarl Gullberg da71abb963
Updated Generator.Rewrite to use the new Cecil API. Dirty fix. 2017-05-26 13:48:00 +02:00
varon 80b8e23620 Moved Generator.Rewrite to src folder 2016-07-17 21:35:51 +02:00
Renamed from Source/Generator.Rewrite/Program.cs (Browse further)