Commit Graph

1172 Commits

Author SHA1 Message Date
WebFreak001 22f65d51fe Resolve ptr, array & aa in types, add typeOf field
typeOf field is new tab-delimited field in dcd-client output, so you no
longer need to manually guess types / parse code. Calltips still yield
the actual written type, but in case of "auto", the typeOf column may
contain more useful info.
2023-03-16 16:45:25 +01:00
WebFreak001 690d6254db Properly implement pointer types
- special DCD pointer symbols are actually inserted now
- they are implicitly dereferenced (max 1 deref) for member access
- index accessing them yields proper types (one pointer removed)
- they return standard type properties on pointer pointers
2023-03-16 16:45:25 +01:00
WebFreak001 795ea87f80 add missing development files to gitignore 2023-03-16 16:13:06 +01:00
WebFreak001 24f67f3b63 remove PR introduced unused variable 2023-03-16 16:08:23 +01:00
WebFreak001 c196130c78 fix destroying of unowned symbols 2023-03-16 16:08:23 +01:00
WebFreak001 a6eead7c81 improve code style in utility function 2023-03-16 16:08:23 +01:00
davu 810b77fe06 PR changes round 1 2023-03-16 16:08:23 +01:00
davu 0c22a2bf7e refixing ufcs calltips 2023-03-16 16:08:23 +01:00
davu 2fd33fc27f Adding non contrainted templates into ufcs completion 2023-03-16 16:08:23 +01:00
davu e6b94622f0 dsymbol deduces ufcs 2023-03-16 16:08:23 +01:00
davu 6c3c67fa2f updating dcd tests 2023-03-16 16:08:23 +01:00
davu a739070310 moving utils to dsymbol 2023-03-16 16:08:23 +01:00
davu c336004ed8 moving ufcs logic to dsymbol 2023-03-08 15:56:43 +01:00
Vushu 1b67f493d4
Adding return type symbol (#720) 2023-03-05 17:00:50 +00:00
davu 92f2d73731 Added max recusion guard depth 2023-02-25 21:29:39 +01:00
davu 434a838d20 Updated for PR 2023-02-25 21:29:39 +01:00
davu de001983c2 Adding alias this to symbol and match algorithm 2023-02-25 21:29:39 +01:00
davu 86cb518b27 added alias this test 2023-02-25 21:29:39 +01:00
davu 086fc5bd73 added integer promotion, implicit upcast 2023-02-21 21:37:00 +01:00
davu cad3f3d747 changing naming to respect .gitignore 2023-02-21 21:37:00 +01:00
davu 66b11109fc updating readme for UFCS 2023-02-21 21:37:00 +01:00
davu 5ff0b74550 adding test for ufcs fundamental types 2023-02-21 21:37:00 +01:00
WebFreak001 5a04cd2404 allow arbitrary libdparse versions in dsymbol 2023-02-15 08:38:10 +02:00
WebFreak001 4fa9a42974 upgrade to libdparse 0.22.0 2023-02-15 08:38:10 +02:00
ryuukk 1c54fc9873
Move third phase to its own module (#708) 2023-02-06 14:38:10 +00:00
ryuukk 0f69db00fb
Public import recurse fix (#706)
* Add a 3rd phase to tesolve missing types that were parsed recursively
* store the type name into its own field, so we could resolve templates later

Fixes https://github.com/dlang-community/DCD/issues/678
2023-02-03 10:56:10 +00:00
WebFreak001 c2051b0a62 downgrade ubuntu version for ABI compatibility
Build on Ubuntu 20.04 instead of 22.04 for more linux compatibility with
pre-built binaries.
2023-01-30 14:59:55 +01:00
WebFreak001 4946d49abd upgrade msgpack to ~>1.0, add dub.selections.json
Fixes msgpack-d deprecations, allows minor bumps upstream

The dub.selections.json allows
2023-01-06 01:30:14 +02:00
WebFreak001 4c426d73d1 bump libdparse to 0.21.1
Mainly adds some new syntax parsing support
2022-12-30 16:22:50 +01:00
Crsi 0f68143929
Improve non-linux testing (#698) 2022-12-08 19:41:26 +00:00
Chris e1977b4db8 Updated the CI checkout action version to v3 2022-12-08 20:40:32 +01:00
WebFreak001 39baba327e fixed shared logger usage 2022-12-07 22:19:47 +01:00
WebFreak001 2457f70b8e use `isCallableWithArg` in paren completion
For consistency and to allow future changes to type matching (e.g.
implicit type conversion)
2022-12-07 21:18:52 +01:00
davu 4fd12cf485 adding null check for firstSymbol 2022-12-07 19:39:23 +01:00
davu 6c3a4d3797 Added paren completion for UFCS 2022-12-07 19:39:23 +01:00
WebFreak001 15ae4e5f00
change `body` to `do` in util.d
Fixes deprecation, brings file in alignment with rest of code
2022-11-14 13:02:20 +01:00
WebFreak001 11628dd931 make sure all request types await responses
On OSX ARM accepting sockets would fail because the sender side
(dcd-client) was generating, sending the whole packet and closing the
socket faster than phobos was with accepting the socket, causing an
exception in setOption inside socket.accept, which is now commented in
the code as well.
2022-11-13 03:20:15 +01:00
WebFreak001 cc8f088eef make sure large requests are properly sent 2022-11-13 03:20:15 +01:00
Garrett D'Amore 758c78145f
Do not depend on rdmd. (#692)
Co-authored-by: Jan Jurzitza <gh@webfreak.org>
2022-11-09 19:52:34 +01:00
davu 29dba75ce9 UFCS using new completion kind F 2022-10-18 23:31:20 +02:00
davu 642a0e0a14 minor adjustments 2022-10-18 23:31:20 +02:00
Vushu 78740cc1b1 update readme for UFCS description
Co-authored-by: Jan Jurzitza <gh@webfreak.org>
2022-10-18 23:31:20 +02:00
davu 52c0298c3a UFSC implementation using functionParameters instead and update tests for UFSC 2022-10-18 23:31:20 +02:00
davu 951870e06f hide private functions 2022-10-18 23:31:20 +02:00
davu 98d09a2fe5 Removing unsused cases 2022-10-18 23:31:20 +02:00
davu 9e60ab8b2c Adding Simple UFCS
Added UFCS navigation

Adding test cases for ufcs

With ufcs update expected test

Updated UFCS with templating support

Removing template function.
2022-10-18 23:31:20 +02:00
WebFreak001 2d9084ff77 add containers 0.9.0 2022-10-14 13:22:29 +02:00
WebFreak001 f033a8d595 Remove stdx-allocator submodule
It's no longer used within DCD

Temporary commit to change containers to dlang-community
2022-10-14 13:22:29 +02:00
WebFreak001 5c529f300d use GC nearly everywhere 2022-10-13 18:18:53 +02:00
WebFreak001 e7c7f86455 fix mutating list while iterating over it 2022-10-13 18:18:53 +02:00