Commit Graph

428 Commits

Author SHA1 Message Date
Masaaki Goshima efcf2dec06 Refactor 2020-09-03 22:05:46 +09:00
Masaaki Goshima 34b662b98e Add InterfaceEnd operation 2020-09-03 15:36:11 +09:00
Masaaki Goshima 4f4060f808 Fix index number 2020-09-01 23:23:07 +09:00
Masaaki Goshima 18a6e4cffe Remove codePool 2020-09-01 22:39:20 +09:00
Masaaki Goshima 3aa921e884 Fix encoding engine 2020-09-01 22:26:26 +09:00
Masaaki Goshima 72bc598dd4 Remove state variables from opcode 2020-08-31 21:59:22 +09:00
Masaaki Goshima a6276c4d8e Optimize opcode.idx and seenPtr 2020-08-31 03:14:37 +09:00
Masaaki Goshima 572d4842a5 Reset seenPtr 2020-08-31 00:14:32 +09:00
Masaaki Goshima 70f8f01ef3 Use encodeRuntimeContext.ptrs instead of opcode.ptr 2020-08-30 23:58:58 +09:00
Masaaki Goshima cb194687a0 Add encodeRuntimeContext 2020-08-30 17:52:59 +09:00
Masaaki Goshima a9e2386e42 Add opcodeIndex to opcode 2020-08-30 17:32:26 +09:00
Masaaki Goshima e508ad41ba Refactor indent parameter 2020-08-29 15:35:03 +09:00
Masaaki Goshima 7dcadbd6ce Refactor with encodeCompileContext 2020-08-29 15:11:31 +09:00
Masaaki Goshima e9ad334a8c
Merge pull request #44 from goccy/feature/fix-indent
Fix json.Indent and json.MarshalIndent when use MarshalJSON / MarshalText
2020-08-27 21:22:44 +09:00
Masaaki Goshima b7bb4362cb Omit map example because currently cannot sort map by keys 2020-08-27 21:13:36 +09:00
Masaaki Goshima a75d05a74f Fix unnecessary pointer assignment 2020-08-27 21:05:37 +09:00
Masaaki Goshima 2ddd2d882e Add examples 2020-08-27 21:02:44 +09:00
Masaaki Goshima 8463646eb0 Fix encoding for Indent/MarshalIndent 2020-08-27 21:01:53 +09:00
Masaaki Goshima 15b28f80fd Copy unquoteBytes from encoding/json and use it for UnmarshalText 2020-08-27 21:00:49 +09:00
Masaaki Goshima 0709cb2fa0
Merge pull request #43 from goccy/feature/fix-recursive-call
Fix decoding of recursive structure
2020-08-25 19:25:44 +09:00
Masaaki Goshima e28091e4c7 Improve performance for []byte type 2020-08-25 17:19:41 +09:00
Masaaki Goshima 6681db131f Fix StructFieldHead operation 2020-08-25 17:19:19 +09:00
Masaaki Goshima 99a5b20e5e Fix decoding of recursive type 2020-08-25 17:18:37 +09:00
Masaaki Goshima f38ee9ce45
Merge pull request #42 from goccy/feature/add-test-cases
Add test cases from encoding/json
2020-08-25 11:25:20 +09:00
Masaaki Goshima 18a8684873 Refactor 2020-08-25 11:18:01 +09:00
Masaaki Goshima a9b9597c2e Fix map key type 2020-08-25 11:17:38 +09:00
Masaaki Goshima c9f1d0043e Add test cases 2020-08-25 00:56:23 +09:00
Masaaki Goshima d2bc6b002c Add validation for decode_float 2020-08-25 00:56:01 +09:00
Masaaki Goshima 84486c012b
Merge pull request #41 from goccy/feature/fix-omitempty
Fix processing of omitempty tag
2020-08-24 02:06:24 +09:00
Masaaki Goshima 9ba13f68ff Add special operation for opStructFieldHead and opStructField 2020-08-24 01:50:18 +09:00
Masaaki Goshima 93ce3f8bd2 Add new operation 2020-08-24 01:48:52 +09:00
Masaaki Goshima 1e765df4f7 Fix indent for empty struct 2020-08-23 00:54:43 +09:00
Masaaki Goshima ff33d8e78d Fix condition for indent 2020-08-23 00:54:19 +09:00
Masaaki Goshima f7a6d65195 Fix new line char 2020-08-23 00:53:38 +09:00
Masaaki Goshima 1e4216f0bc Add test case 2020-08-23 00:53:08 +09:00
Masaaki Goshima 76cbb4ce68
Merge pull request #40 from goccy/feature/fix-anonymous-struct
Fix anonymous struct fields
2020-08-22 18:30:21 +09:00
Masaaki Goshima 6a0fd170c6 Fix head operation 2020-08-22 18:28:03 +09:00
Masaaki Goshima 47d7d26a50 Fix head operation 2020-08-22 18:16:06 +09:00
Masaaki Goshima cdf2498285 Fix processing of anonymous field 2020-08-22 18:15:39 +09:00
Masaaki Goshima 45acfe9424 Add test cases 2020-08-22 18:13:58 +09:00
Masaaki Goshima a969fe7aff Fix dump format 2020-08-22 18:13:44 +09:00
Masaaki Goshima 97787fd7b6
Merge pull request #39 from goccy/feature/fix-nil-marshaler
Fix nested embedded structure that has same name fields
2020-08-22 15:48:05 +09:00
Masaaki Goshima 7ada1b2467 Fix conflicted anonymous fields 2020-08-22 15:40:18 +09:00
Masaaki Goshima a718a9a1ef Fix anonymous fields 2020-08-22 12:58:34 +09:00
Masaaki Goshima 3e03bdc53f Fix null validation 2020-08-21 11:51:33 +09:00
Masaaki Goshima 78fe23fc64 Add test cases 2020-08-21 11:08:30 +09:00
Masaaki Goshima 95bfc8c549 Add validation for null value 2020-08-21 11:07:55 +09:00
Masaaki Goshima 991c8c411b
Merge pull request #38 from goccy/feature/fix-encoding-json-number
Fix encoding of json.Number
2020-08-21 01:14:27 +09:00
Masaaki Goshima 445cc4c1af Fix encoding of json.Number 2020-08-21 01:12:29 +09:00
Masaaki Goshima a257c9b964
Merge pull request #37 from goccy/feature/fix-cycle-pointer
Fix cycle pointer value
2020-08-21 01:07:41 +09:00