Commit Graph

96 Commits

Author SHA1 Message Date
Loris Cro c5afefec42 autodoc: fix autodoc analysis for @typeInfo
We were previously erroneously saving it as a `@TypeOf`.
2022-08-02 17:49:36 +02:00
Loris Cro 622714b76b autodoc: fix frontend crash while rendering std.mem
Previously we expected to only find decl refs in a `foo.bar.baz`
type of expression. This would crash when trying to render something
like `@typeInfo(T).Int.bits`. We now properly account for builtins
and other components.
2022-08-02 17:49:36 +02:00
Loris Cro 2375658da9 Merge pull request #12276 from r00ster91/shortdesc
autodoc: better short description algorithm
2022-08-02 16:32:08 +02:00
Ryan Liptak 921ba6cad4 autodoc: Add borders to field docs to make it clear which field they are associated with 2022-07-30 17:26:29 -07:00
r00ster91 2c7387aef5 autodoc: better short description algorithm 2022-07-28 21:37:36 +02:00
Andrew Kelley aa1a06bf9b Autodoc: small polish on the html 2022-07-19 19:10:12 -07:00
Loris Cro 572f9a5602 Autodoc: add warning banner to html 2022-07-19 19:10:12 -07:00
Loris Cro ad7bc57919 autodoc: fix rendering of function arguments 2022-07-19 19:10:12 -07:00
Loris Cro 8ec34eb046 autodoc: handle result location instructions 2022-07-19 19:10:12 -07:00
Loris Cro 947eff6e39 autodoc: handle special case of autodoc for std 2022-07-19 19:10:12 -07:00
Vallahor fed9dcff24 autodoc: @as behavior in js 2022-07-19 19:10:12 -07:00
Vallahor 341431b15c autodoc: handling more values sections 2022-07-19 19:10:12 -07:00
Loris Cro 24a79426ec autodoc: update array analysis to new Zir 2022-07-19 19:10:12 -07:00
Vallahor 866bbb2e7a autodoc: fiedRef type rendering 2022-07-19 19:10:12 -07:00
Vallahor e7476fd81c autodoc: handling refPath and fieldRef 2022-07-19 19:10:12 -07:00
Vallahor 81147dd101 autodoc: initial work in opaque_decl 2022-07-19 19:10:12 -07:00
Loris Cro 45e3b1a23d autodoc: remove type annotations from main.js 2022-07-19 19:10:12 -07:00
Vallahor 02bd5fe93a autodoc: experiment get line info 2022-07-19 19:10:12 -07:00
Loris Cro d2baf404a5 autodoc: enabled packages 2022-07-19 19:10:12 -07:00
Loris Cro a5e7b0e4db autodoc: restore support for zig version + cleanup & init work to fix packages 2022-07-19 19:10:12 -07:00
Vallahor f189e46b8e autodoc: add some tags 2022-07-19 19:10:12 -07:00
Vallahor f13db1ce18 autodoc: add cmpxchg_strong/weak 2022-07-19 19:10:12 -07:00
Vallahor 5e52666c83 autodoc: add some builtin functions and float128 2022-07-19 19:10:12 -07:00
Vallahor 9613aca417 autodoc: refactoring binOp 2022-07-19 19:10:12 -07:00
Loris Cro 918475e2e2 autodoc: new design for function list 2022-07-19 19:10:12 -07:00
Vallahor dd9a018185 fix: slice_start, slice_end and slice_sentinel typeRef are now showing the slice type 2022-07-19 19:10:12 -07:00
Vallahor 1f5df0e034 add: slice_start, slice_end and slice_sentinel 2022-07-19 19:10:12 -07:00
Vallahor b9fa91002e add: builtins functions 2022-07-19 19:10:12 -07:00
Vallahor a0ec87be71 add: merge_error_sets and @alignOf() need a checkin to confirm it's fully work 2022-07-19 19:10:12 -07:00
Loris Cro d858f26139 autodoc: fixes to generic fn support plus linking support 2022-07-19 19:10:12 -07:00
Loris Cro 413cfd4066 autodoc: init generic function support 2022-07-19 19:10:12 -07:00
Vallahor f07534069d WIP: switch_block tag 2022-07-19 19:10:12 -07:00
Vallahor 9be9e4d02c add: @enumToInt() WIP 2022-07-19 19:10:12 -07:00
Vallahor 5fcf0b0565 add: handling @bitSizeOf() need to check why not working correctly with align() 2022-07-19 19:10:12 -07:00
Vallahor a529d747c9 add: binOp @alignCast and bit_or 2022-07-19 19:10:12 -07:00
Vallahor f59bb65ff5 add: handling @bitCast as binOp 2022-07-19 19:10:12 -07:00
Vallahor 8e835fd3a2 add: handling binOp div 2022-07-19 19:10:12 -07:00
Vallahor 1213123ad0 fix: *.{} array are now printed as type *[]comptime 2022-07-19 19:10:12 -07:00
Vallahor d23ccdb8d9 fix: "match failure" in c.zig file @check other files and handling floats and undefined values in js 2022-07-19 19:10:12 -07:00
Vallahor 462f751902 binOp now showing better it's need a better struture, right now it's has a hack one 2022-07-19 19:10:11 -07:00
Vallahor 9f6bdc4bbe add: binOp WIP 2022-07-19 19:10:11 -07:00
Vallahor c0c9925255 fix: apparently doing this the @as problem is solved @check 2022-07-19 19:10:11 -07:00
Vallahor d55761f07e fix: print align() in pointers 2022-07-19 19:10:11 -07:00
Vallahor b823f01141 add: extra information in extendedFn 2022-07-19 19:10:11 -07:00
Vallahor 927f087a40 fix: calling convention 2022-07-19 19:10:11 -07:00
Vallahor 0e5a2bbd63 fix: NoReturn and WIP in calling_conventions 2022-07-19 19:10:11 -07:00
Vallahor ec8d29ff25 fix: anyopaque_type. it was showing *[1]anyopaque now *anyopaque 2022-07-19 19:10:11 -07:00
Vallahor 11eb11d7d6 fix: slices 2022-07-19 19:10:11 -07:00
Vallahor f04f23a3aa add: extern, callconv and return errors 2022-07-19 19:10:11 -07:00
Vallahor 76e934dba8 fix: comptime not showing in all anytype params anymore. add: pointer flags 2022-07-19 19:10:11 -07:00