Граф коммитов

20 Коммитов

Автор SHA1 Сообщение Дата
pCYSl5EDgo 8da2ab05f9
Fix nullable annotation errorneous handling (#1395)
* Fix nullable member file name handling

Generating multiple files including the letter '?'.
Invalid file name char should be avoided.
2022-02-12 14:14:41 -07:00
pCYSl5EDgo 1ce9b213a5 Global Using and File scoped namespace test 2021-12-30 07:34:01 +09:00
pCYSl5EDgo 54b155f6e5
Avoid C#10 global using name collisions (#1368) 2021-12-27 08:06:20 -07:00
pCYSl5EDgo fed033dd7b
.NET 6 Update (#1355)
* Update versions of MPC dependencies
* Add net6.0 target

Co-authored-by: Andrew Arnott <andrewarnott@live.com>
2021-12-24 21:58:25 -07:00
Andrew Arnott 4ff278b8b0
Update mpc roslyn dependency to 3.10.0
This fixes #1274 by updating to a compiler version that supports C# 9 `record` type declarations.
2021-07-15 15:56:57 -06:00
pCYSl5EDgo 1caa7743ea Target net5.0 2020-11-19 16:53:04 +09:00
pCYSl5EDgo 1fba6ccb57 Partial solution of #1085: mpc.exe #1092
commit d7a50b9d9a8de447a4dec61219fd584e862095a3
Merge: 02ae418 5a6cda6
Author: pCYSl5EDgo <pCYSl5EDgo@yahoo.co.jp>
Date:   Mon Oct 26 09:33:45 2020 +0900

    Merge remote-tracking branch 'upstream/develop' into solution#1085-mpc

commit 02ae418a39cdd6d5bbdab7b900eb5169d80fa7e9
Author: pCYSl5EDgo <pCYSl5EDgo@yahoo.co.jp>
Date:   Mon Oct 26 09:25:20 2020 +0900

    Update: Loop demonstration

commit d84ae759892b2ab9fc10d8d434902fca10ee88c1
Author: pCYSl5EDgo <pCYSl5EDgo@yahoo.co.jp>
Date:   Mon Oct 26 09:24:31 2020 +0900

    Change: drop deserialized value -> reader.Skip()

commit 9b0d4a21a8824dc277a48ac63180e901b6f9890e
Author: pCYSl5EDgo <pCYSl5EDgo@yahoo.co.jp>
Date:   Mon Oct 26 00:27:10 2020 +0900

    Fix: remove unused boolean local variables

commit fdfabeb2f1fc8b87bc41419fb0ccaee2c354b98a
Author: pCYSl5EDgo <pCYSl5EDgo@yahoo.co.jp>
Date:   Mon Oct 26 00:00:28 2020 +0900

    Update: Make the same as Dynamic

commit bef4692e10cc47b137b7c647acb11feffb177206
Author: pCYSl5EDgo <pCYSl5EDgo@yahoo.co.jp>
Date:   Sun Oct 25 19:37:11 2020 +0900

    Add test project

commit a8fac80ec561f476f122d35ad2cbcd831a955d41
Author: pCYSl5EDgo <pCYSl5EDgo@yahoo.co.jp>
Date:   Sun Oct 25 18:55:27 2020 +0900

    Add types to sandbox

commit 6ffc3c309b6b47728e927799b574fc23b37fa2c8
Author: pCYSl5EDgo <pCYSl5EDgo@yahoo.co.jp>
Date:   Sun Oct 25 18:45:40 2020 +0900

    Update: string-key mpc.exe

commit 44819e6d551961598c29fdab5aa0bf65d53ed0e6
Author: pCYSl5EDgo <pCYSl5EDgo@yahoo.co.jp>
Date:   Sun Oct 25 18:05:24 2020 +0900

    Update: int-key mpc.exe

commit 0a2fef4d2f3ae7f568bd34a554792f006ec31275
Author: pCYSl5EDgo <pCYSl5EDgo@yahoo.co.jp>
Date:   Sun Oct 25 12:12:57 2020 +0900

    Fix: var -> global::MessagePack.IFormatterResolver

commit 086aa11e7ce4fb0723014c8bda554104b3b38463
Author: pCYSl5EDgo <pCYSl5EDgo@yahoo.co.jp>
Date:   Sun Oct 25 12:05:21 2020 +0900

    Fix: Line Feed

commit 39d3d0844848f1d742820e2786528baf2bd1627c
Author: pCYSl5EDgo <pCYSl5EDgo@yahoo.co.jp>
Date:   Sun Oct 25 12:03:37 2020 +0900

    Fix: space

commit c57f423a49fed8e1c1b365310017a2ec382b5f07
Author: pCYSl5EDgo <pCYSl5EDgo@yahoo.co.jp>
Date:   Sun Oct 25 12:00:32 2020 +0900

    Change: var to globall::
    Revert: DepthStep position
    Revert: }#> -> } #>

commit de6fd239491b3fb7aa373644a384a71772d23b43
Author: pCYSl5EDgo <pCYSl5EDgo@yahoo.co.jp>
Date:   Sat Oct 24 11:04:44 2020 +0900

     fix CRLF

commit 4b6ae7c6089f7d6732691a0af7f1d93424ccaa95
Author: pCYSl5EDgo <pCYSl5EDgo@yahoo.co.jp>
Date:   Sat Oct 24 10:59:50 2020 +0900

    Change the format to decrease template part lines.

    Change the iterator `i` type from `int` to `var`.

commit 95f41adff75a0ff605e760d5cdc485de10ee13be
Author: pCYSl5EDgo <pCYSl5EDgo@yahoo.co.jp>
Date:   Fri Oct 23 21:03:54 2020 +0900

    This is a cherry-pick of #1074.
    This is a refactoring of int-key mpc.exe tt file.
2020-10-27 20:27:47 +09:00
pCYSl5EDgo f6de4d19bf
mpc: More aggressive ahead of time optimization for string-key type formatter. (#861)
* More performant (de)serialization of string-key type formatter.

FormatterTemplte : generates only int-key type formatter.
IFomatterTemplate : common method/property between FormatterTemplate and StringKeyFormatterTemplate.
CodeGenerator : objectFormatterTemplates is IFormatterTemplate[]
ShouldUseFormatterResolverHelper : Optimization of IFormatterResolver.

* fix: Should use formatter resolver when custom formatter is not defined and target type is not primitive type.

* code format fix: insert line.

* update: Add Comment for switch cases and if statemets for readability.
When ULong value consists purely of ASCII characters, 8 ascii chars are printed as a comment.

* update: Following the advise of neuecc. ____stringByteKeys[Number] is now ____stringByteKeys_[MemberName].

* Refactor: EmbedMemberAssignment split into method

* Code Format and delete unnecessary heap allocation

* Code Format

* fix global json

* Proper check for MessagePackObjectAttribute and multi cs files

* remove unused static field and add comment to display string key

* fix: Japanese header to English

* Merge master and fix conflicts

* Change the generated codes of sandbox.

* Use AutomataKeyGen.GetKey.

* Regenerate Sandbox

* Suppress warning

* Remove suppress warning.

* Less embed

* Make embedded byte sequence common.

* Fix: add brace

* Revert some unnecessary diffs to make the PR simpler

* Consolidate primitive lists and optimize `byte[]`

* Reorder Serialize and Deserialize

Fix format of StringKeyFormatterTemplate.tt
reader.Skip() optimization
C#9 Record preparation

* Fix: t4 auto gen Japanese to English

* Fix: t4 again

Co-authored-by: Andrew Arnott <andrewarnott@gmail.com>
2020-09-27 07:31:15 -06:00
Andrew Arnott 54aa38228d
Update Generated.cs files 2020-08-14 18:42:44 -06:00
Andrew Arnott 34d70cf1bc
Add codegen runs to Azure Pipelines 2020-08-14 18:42:43 -06:00
neuecc 5f4ff192a7 mpc support enum in nested type, remove duplicate metadata loading 2020-03-17 18:48:28 +09:00
Andrew Arnott 4696f08073
Update a bunch of package references 2019-11-02 10:13:09 -06:00
Andrew Arnott d41b77d190
Remove MessagePackWriter.WriteFixedArrayHeaderUnsafe
This "unsafe" API accomplished skipping a single branch instruction, so most likely was not a significant perf win, yet added complexity to callers and code generators, and brought the risk that folks would call it inappropriately, leading to data corruption.

Closes #506
2019-07-25 22:33:49 -06:00
Andrew Arnott 3d816272e7
Apply StyleCop.Analyzers and conform to it
Freshen copyright and license
Include "contributors" as shared owners, and use modern nuget-preferred style license indicator.

Closes #480
2019-07-14 07:20:01 -06:00
Andrew Arnott e09b00b494
Consolidate package versions 2018-12-11 22:31:50 -08:00
Andrew Arnott fc5b0acee2
Freshen up build authoring (#2) 2018-12-11 20:05:55 -08:00
Yoshifumi Kawai fbc2fde7d9 WIP, Additional Built-in Unity Type Support #178 2017-12-22 01:06:46 +09:00
neuecc 679a2f0d65 improve mpc.exe stringkey serialization performance 2017-09-08 17:30:35 +09:00
neuecc 2f2e3ae1d1 fix mpc.exe, can not generate when target property uses override #126 2017-09-08 16:19:54 +09:00
neuecc 06ea365088 check for #126 2017-09-08 15:18:40 +09:00