Commit Graph

901 Commits

Author SHA1 Message Date
Martin
4d12a06af5 CodeTools: Resolve generic params when searching in ancestors. 2022-05-03 02:32:26 +02:00
mattias
e18dd7be66 codetools: added OnGetClassUnitName 2022-04-16 09:05:50 +02:00
Martin
de1c148c6e Codetools: Include fdfSearchInAncestors when resolving aliases, specializations or properties. "procedure SearchIdentifier" in "TFindDeclarationTool.FindBaseTypeOfNode". Fix issue #39498
Added test
2022-03-11 16:59:29 +01:00
Martin
0e3c87e83d Codetools: Fix setting "SubParams.Flags" in SearchIdentifier nested in TFindDeclarationTool.FindBaseTypeOfNode.
- "SubParams.Flags" originally copied flags from the outer search (masked with fdfGlobals).
- Before fa76ed282c "SubParams" was named"Params"
- In 2cbc2f4f5a the code was refactored into a subroutine. "Params" became a new local var (with a newly created instance). So "... +(fdfGlobals*Params.Flags);" no longer copied the existing flags.
2022-03-11 16:59:29 +01:00
Juha
2fbce3f5e6 Codetools: Feed UpperKeyword param in PascalReaderTool.PropertyHasSpecifier with uppercase strings. 2022-01-12 17:08:40 +02:00
mattias
947a183c9c codetools: added boolean8, boolean16, boolean32, boolean64 2021-12-22 23:58:25 +01:00
Juha
c3a2bf802b Codetools: Prevent identifier being added many times. A hack but works. Issue #37384. 2021-11-25 15:19:54 +02:00
Juha
021deb1dee Codetools: Formatting, cleanup. 2021-11-25 15:18:22 +02:00
Juha
2849fb27e9 Codetools: Hunt for issue #37384. 2021-11-25 02:18:38 +02:00
Martin
8d41aa5e99 IDE: Fix endless loop in codetools. Issues #39306 and #39387 2021-10-11 13:50:48 +02:00
pascal
4e21c34991 codetools: partly fixed find declaration for members of default array property
git-svn-id: trunk@65069 -
2021-04-30 00:42:41 +00:00
mattias
b9fb3cc8bc codetools: FindDeclarationOfIdentAtParam return proc head instead of proc
git-svn-id: trunk@65010 -
2021-04-17 11:22:26 +00:00
mattias
13450f46a2 codetools: FindReferences for unit names
git-svn-id: trunk@64931 -
2021-04-06 00:11:28 +00:00
mattias
341a3f7a74 codetools: fixed TFindDeclarationTool.FindUnitReferences search in uses section, bug #38559
git-svn-id: trunk@64704 -
2021-02-28 23:34:09 +00:00
mattias
9baf8fe81d codetools: fixed GetSmartHint other unit
git-svn-id: trunk@64603 -
2021-02-17 13:59:24 +00:00
juha
77e6853ca6 Components: Reduce calls to LowerCase().
git-svn-id: trunk@64515 -
2021-02-10 13:43:15 +00:00
juha
4733d3b7a1 Fix compilation with FPC 3.0.4.
git-svn-id: trunk@64498 -
2021-02-05 20:07:12 +00:00
juha
0feb7a5662 Codetools, Debugger: Use a faster compare method for case-insensitive strings and StringLists.
git-svn-id: trunk@64465 -
2021-02-05 11:28:11 +00:00
pascal
da8c2d75b5 codetools: generate local var for Length() with type SizeInt
git-svn-id: trunk@63800 -
2020-08-21 07:43:13 +00:00
pascal
4787a58f27 codetools: fixed identifier completion in or behind empty string. Issue #26964
git-svn-id: trunk@63798 -
2020-08-20 11:41:33 +00:00
mattias
c64cd287c5 codetools: var completion of for-var-in-genericarray, from Pascal Riekenberg, issue #37076
git-svn-id: trunk@63160 -
2020-05-15 09:37:49 +00:00
mattias
36e7acabf5 codetools: fixed AV
git-svn-id: trunk@63138 -
2020-05-12 17:19:27 +00:00
mattias
797768a965 codetools: code completion for "FOR var IN" with generic class, from Pascal Riekenberg
git-svn-id: trunk@63136 -
2020-05-12 16:47:24 +00:00
juha
de408de69e Codetools: Support ArrayToDynArray and other missing modeswitches. Issue #36796.
git-svn-id: trunk@62768 -
2020-03-15 17:55:43 +00:00
ondrej
08b5b4a244 CodeTools: support {$modeswitch multihelpers}. Issue #35911
git-svn-id: trunk@62702 -
2020-03-07 17:03:21 +00:00
juha
29d750ae6a Codetools: Support Codecompletion inside "with begin end" block. May fix other cases, too. Issue #0023782, patch from jefferywa.
git-svn-id: trunk@62470 -
2019-12-30 13:59:12 +00:00
ondrej
86a7065f15 CodeTools: declare for-in variable for interfaces. Issue #35290
git-svn-id: trunk@62239 -
2019-11-15 19:21:40 +00:00
juha
1ff30d6bfd Codetools: Add unit names correctly to project source. Issue #35803.
git-svn-id: trunk@62169 -
2019-11-03 16:45:48 +00:00
juha
45446f15b8 Formatting
git-svn-id: trunk@62168 -
2019-11-03 16:45:42 +00:00
mattias
79aa478b8d codetools: fixed find declaration multidim[,].sub
git-svn-id: trunk@61962 -
2019-10-03 14:35:55 +00:00
mattias
aab3418c8c codetools: fixed objcclass
git-svn-id: trunk@60629 -
2019-03-09 12:12:10 +00:00
juha
c9e4614e17 Delete old deprecated methods.
git-svn-id: trunk@59175 -
2018-09-28 11:06:40 +00:00
mattias
f2f7e9c993 codetools: debug obcclass alloc.init
git-svn-id: trunk@57652 -
2018-04-13 08:35:14 +00:00
mattias
01020fb1c1 codetools: debug FindFileAtCursor
git-svn-id: trunk@56729 -
2017-12-14 18:03:28 +00:00
mattias
5b565ad568 codetools: parse guid in dispinterface, bug #32742
git-svn-id: trunk@56520 -
2017-11-28 09:19:47 +00:00
mattias
2b911c68c1 codetools: FindCodeContext of attribute params
git-svn-id: trunk@56513 -
2017-11-27 21:29:04 +00:00
mattias
727afc4dbd codetools: changed TAtomRing to support longer ring, full two way
git-svn-id: trunk@56465 -
2017-11-22 10:58:30 +00:00
juha
55d8b5ed1a Codetools: Find declaration for a used unit also when caret is at its end. Issue #32606.
git-svn-id: trunk@56366 -
2017-11-11 16:06:39 +00:00
mattias
49e39f4de3 codetools: formatted
git-svn-id: trunk@56276 -
2017-11-04 07:55:39 +00:00
mattias
61d4aa8258 IDE: open file at cursor: show error message on fail
git-svn-id: trunk@56083 -
2017-10-16 14:06:41 +00:00
mattias
8961126033 codetools: added ctnSrcName
git-svn-id: trunk@55951 -
2017-09-30 19:20:56 +00:00
mattias
4cee79f31d codetools: fixed skipping sourcename, added TPascalParserTool.FindUsesNode
git-svn-id: trunk@55946 -
2017-09-30 13:52:10 +00:00
mattias
bfadc91c3c codetools: find declaration of dotted program name
git-svn-id: trunk@55851 -
2017-09-13 18:05:15 +00:00
mattias
b3a9a3d9ce codetools: guess type of default()
git-svn-id: trunk@55331 -
2017-06-12 10:39:42 +00:00
ondrej
8ada97e2b2 codetools: Override function result string types: fix grouped parameter list (e.g. ChangeFileExt).
git-svn-id: trunk@55322 -
2017-06-11 21:21:21 +00:00
mattias
548fbd4852 codetools: added TFindDeclarationTool.FindClassMember
git-svn-id: trunk@55238 -
2017-06-05 13:29:16 +00:00
mattias
eca0a51b27 codetools: undo
git-svn-id: trunk@55236 -
2017-06-05 13:28:15 +00:00
mattias
12ad990c7b codetools: less hints methodjumptool.pas
git-svn-id: trunk@55235 -
2017-06-05 13:25:37 +00:00
juha
e27232d4cc Fix uninitialized variables based on compiler warnings got with dfa (data flow analysis) enabled.
git-svn-id: trunk@55211 -
2017-06-04 15:14:29 +00:00
ondrej
3ec399d85a CodeTools: add "Avoid unnecessary jumps" option, make it default.
git-svn-id: trunk@55031 -
2017-05-21 18:14:51 +00:00