9318 Commits

Author SHA1 Message Date
Vallahor
2809b01b2f add: noreturn keyword at end of the fn decl 2022-07-19 19:10:11 -07:00
Vallahor
a3f44b0d21 fixes: @check 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
Vallahor
c449788b11 fix: typeOf_peer working in all cases 2022-07-19 19:10:11 -07:00
Vallahor
4bd359a849 add: handling typeof_peer 2022-07-19 19:10:11 -07:00
Vallahor
1792842808 fix: typeOf "match failed" with a call after @TypeOf() 2022-07-19 19:10:11 -07:00
Vallahor
270e2c18bf fix: @TypeOf() now rendering 2022-07-19 19:10:11 -07:00
Vallahor
e1d55385ff add: typeof_builtin (not fully implemented) 2022-07-19 19:10:11 -07:00
Vallahor
cadee07ef4 fix: paths working on windows 2022-07-19 19:10:11 -07:00
Vallahor
2a3fb341aa fix: handling more types of sentinels. now can be structs too 2022-07-19 19:10:11 -07:00
Loris Cro
d707cd6e6d autodoc: improve decl categorization and fix enumliteral arrays/ptrs 2022-07-19 19:10:11 -07:00
Vallahor
bde1caa4ce fix: array_init_anon know working 2022-07-19 19:10:11 -07:00
Vallahor
21fd4a7a8b fix: printing const in types and fn decl and sentinel in strings 2022-07-19 19:10:11 -07:00
Vallahor
019fd45617 fix: sentinel working with types and in fn decls 2022-07-19 19:10:11 -07:00
Vallahor
5b20b1f2a7 add: array init refs 2022-07-19 19:10:11 -07:00
Vallahor
646079c968 add: rendering sentinel in js and some fixes in autodoc 2022-07-19 19:10:11 -07:00
Vallahor
5a4005323f add: sentiel 2022-07-19 19:10:11 -07:00
Loris Cro
aa545dbd1e autodoc: improve frontend rendering 2022-07-19 19:10:11 -07:00
Loris Cro
cf685c1132 autodoc: collect type information for some expressions 2022-07-19 19:10:11 -07:00
Loris Cro
0339e1c7d4 update to new code from master branch 2022-07-19 19:10:11 -07:00
Loris Cro
80f9490e06 autodoc: more js type fixes 2022-07-19 19:10:11 -07:00
Loris Cro
53fa75c852 autodoc: improved frontend rendering 2022-07-19 19:10:11 -07:00
Loris Cro
36c4b1aac9 autodoc: improve rendering and add "show priv decls" checkbox 2022-07-19 19:10:11 -07:00
Loris Cro
df3074aa98 autodoc: fix offset math for decls and change TODOs from panics to just
prints
2022-07-19 19:10:11 -07:00
Reece Van Atta
9cd9a390ae autodoc: add typedef to zigAnalysis file, just in case 2022-07-19 19:10:11 -07:00
Loris Cro
40a2844c30 autodoc: decl paths become ref paths
originally I thought `foo.bar.baz` was a path of decls, but turns out
other language constructs require to make this model more general.
originally a decl path was an array of decl indexes, now it's an array
of `WalkResult`s
2022-07-19 19:10:11 -07:00
Loris Cro
63be9e65ed autodoc: added support for error sets and extended functions 2022-07-19 19:10:11 -07:00
Loris Cro
67f1d2b967 autodoc: add basic support for more builtin 2022-07-19 19:10:11 -07:00
Loris Cro
ec7f4d1faa autodoc: add support for anytype and improve semantics for array length 2022-07-19 19:10:11 -07:00
Loris Cro
d745dde54f autodoc: improve comments 2022-07-19 19:10:11 -07:00
Loris Cro
4f949163a5 autodoc: add support for enum literals 2022-07-19 19:10:11 -07:00
Loris Cro
056ba8e57c autodoc: add support for @This and improve call support in decl paths 2022-07-19 19:10:11 -07:00
Loris Cro
3eb90a110f autodoc: add support for pointers and comptime expressions in decl paths 2022-07-19 19:10:11 -07:00
Loris Cro
03d3929232 autodoc: add simplified support for tests 2022-07-19 19:10:11 -07:00
Loris Cro
1e2cd421b9 autodoc: add support for array decls 2022-07-19 19:10:11 -07:00
Loris Cro
eced8c065d autodoc: add support for solving decl paths depending on other
decl paths
2022-07-19 19:10:11 -07:00
Loris Cro
8bb529b395 autodoc: add support for generic functions & generic function calls 2022-07-19 19:10:11 -07:00
Loris Cro
195231b212 autodoc: add support for non-generic function calls 2022-07-19 19:10:11 -07:00
Loris Cro
028c8a3c91 autodoc: added support for same-file lazy resolution of decl paths 2022-07-19 19:10:11 -07:00
Loris Cro
580e633777 autodoc: added support for non-lazy decl paths 2022-07-19 19:10:11 -07:00
Loris Cro
fbf0d0bee9 autodoc: fix decltest offset errors
while it would be preferable to not save decltests as first-class decls
(and just embed their information inside the decl they refer), adding
logic to skip them complicates the code too much so we should consider
this an optimization for the future.
2022-07-19 19:10:11 -07:00
Jacob G-W
a0ff7c8078 add decltests to the autodoc backend 2022-07-19 19:10:11 -07:00
Loris Cro
5d4c88c741 autodoc: added basic support for unresolved comptime expressions 2022-07-19 19:10:11 -07:00
Loris Cro
ee16eddecf autodoc: added basic support for @import 2022-07-19 19:10:11 -07:00
Loris Cro
b296f5ac02 autodocs: added basic support for functions 2022-07-19 19:10:10 -07:00
Loris Cro
5a31126d89 autodocs: output data support for more types 2022-07-19 19:10:10 -07:00
Loris Cro
ef5a2e8d6f autodocs: added basic support for unions 2022-07-19 19:10:10 -07:00
Loris Cro
a04045c709 autodocs: fix rendering of non-type decls 2022-07-19 19:10:10 -07:00