Commit Graph

138 Commits

Author SHA1 Message Date
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
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
270e2c18bf fix: @TypeOf() now rendering 2022-07-19 19:10:11 -07:00
Vallahor
1a4d00d832 add: handling some anytype cases 2022-07-19 19:10:11 -07:00
Vallahor
7b11c23da6 fix: comptimeExpr working with generated data 2022-07-19 19:10:11 -07:00
Vallahor
4da1f1fb32 add: handling comptimeExpr in js 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
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
646079c968 add: rendering sentinel in js and some fixes in autodoc 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
ae4b5c29b2 autodoc: fix final js type error 2022-07-19 19:10:11 -07:00
Loris Cro
cc71003cfc autodoc: improved rendering container fields and fixed rendering of func
args
2022-07-19 19:10:11 -07:00
Loris Cro
d85259989e autodoc: var 2 let in main.js 2022-07-19 19:10:11 -07:00
Loris Cro
67da1b8c88 autodoc: fixed all type errors in main.js 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
919b8e400c autodoc: more typechecking in main.js 2022-07-19 19:10:11 -07:00
Loris Cro
72e5b4fb74 autodoc: improve type checking in main.js 2022-07-19 19:10:11 -07:00
Loris Cro
64feb222b5 autodoc: make links respect internal docs mode 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
Reece Van Atta
5f0ab34cc5 autodoc: add type comments to main.js file 2022-07-19 19:10:11 -07:00
ABuffSeagull
e39d1ae78f autodoc: fix missing variable declaration for strict mode 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
ec7f4d1faa autodoc: add support for anytype and improve semantics for array length 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
1e2cd421b9 autodoc: add support for array decls 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
580e633777 autodoc: added support for non-lazy decl paths 2022-07-19 19:10:11 -07:00
Loris Cro
253e7e112e autodoc: add frontend support for optionals & generic cleanup 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
4a868fa2be autodoc: escape html in decl ref names 2022-07-19 19:10:11 -07:00
Loris Cro
564d6c4960 autodocs: improve function rendering 2022-07-19 19:10:10 -07:00
Loris Cro
b296f5ac02 autodocs: added basic support for functions 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
Loris Cro
ce40f34cbc autodocs: added support for some non-type values 2022-07-19 19:10:10 -07:00
Loris Cro
29771440b2 autodocs: add support for int values 2022-07-19 19:10:10 -07:00
Loris Cro
0135d22716 autodocs: add support for indirect decl references 2022-07-19 19:10:10 -07:00
Loris Cro
38281c8ed4 autodoc: add declval support to docs js 2022-07-19 19:10:10 -07:00
Andrew Kelley
ec95e00e28 flatten lib/std/special and improve "pkg inside another" logic
stage2: change logic for detecting whether the main package is inside
the std package. Previously it relied on realpath() which is not portable.
This uses resolve() which is how imports already work.

 * stage2: fix cleanup bug when creating Module
 * flatten lib/std/special/* to lib/*
   - this was motivated by making main_pkg_is_inside_std false for
     compiler_rt & friends.
 * rename "mini libc" to "universal libc"
2022-05-06 22:41:00 -07:00