Commit Graph

923 Commits

Author SHA1 Message Date
Juha
0991e39f7d Codetools: Fix renaming dotted unit names + many functions dealing with dotted indentifiers. Issue #40195, patch by CCRDude. 2023-05-16 20:11:54 +03:00
mattias
37d638661f codetools: added GatherPublishedVarTypes, CompleteComponent with optional CheckUnits 2023-04-13 15:38:12 +02:00
mattias
82edbea0ac codetools: clean up 2023-03-12 22:52:25 +01:00
Martin
cbda39285c Codetools: fix finding types declared in specialized generics (and inside classes in generics). Issue 28989 2023-03-10 15:57:57 +01:00
Martin
258d843914 Codetools: fix "a:=TSpcecialized.Create". When completing/declaring variables find the name of the specialized class. 2023-03-10 14:32:31 +01:00
Martin
44b14e0702 Codetool: nested (inside class) declaration of generic. Issue #37640 2023-03-09 20:21:53 +01:00
Martin
84e5a5ba02 CodeTools: fix guesstype (type for declaration) with generics. 2023-03-08 17:25:09 +01:00
Martin
89ab07a39f Codetools: Find type of generic, if specialized with build-in type (e.g. string) 2023-03-07 22:41:24 +01:00
Martin
b03e3b50fd Codetool: preserve generic-param as result, if it can not be resolved. 2023-03-07 13:10:49 +01:00
Martin
6d1b53067f Codetools: fix FoundProc stack list. 2023-03-07 13:10:49 +01:00
Martin
6fda552055 Codetools: Return generic params for found identifier / Update calling Parameters 2023-03-06 12:53:54 +01:00
Martin
19d12f194d Codetools: Prevent node caching for results in generics. 2023-03-06 11:46:29 +01:00
Martin
ddc435d313 Codetools: Match generic params with the correct specialize. In case of specialize inside of a generic params were mismatched. 2023-03-06 00:30:56 +01:00
Martin
749ab743d6 CodeTools: improve FindDeclaration in nested specialized classes 2023-03-04 15:31:56 +01:00
Ondrej Pokorny
cbef44b7ef CodeTools: fix attribute resolver - remove exception handling 2022-12-28 08:55:51 +01:00
Ondrej Pokorny
0f438c98fe CodeTools: fix attribute resolver 2022-12-28 02:07:17 +01:00
Juha
5719672f10 Codetools: Fix SmartHint for generic specialized types. Issue #29860. 2022-12-23 15:25:06 +02:00
Martin
e1dc8a96d9 Codetool: prevent recursion in ResolveBaseTypeOfIdentifier. Issue 39897
`fdfFunctionResult` will cause `FindExpressionTypeOfTerm` to `ResolveChildren` and recurse forever if the node starts with open brackets. If the cursor is not on an identifier, it should not be a function and the flag is not needed.
2022-10-26 14:58:42 +02:00
Martin
f47e51faf4 Codetool: FindDeclaration, fix "generic array" in fdt_generics_finddeclaration.pas / Fix issue #39738 2022-10-20 21:39:46 +02:00
Martin
d488d45819 CodeTool: Improve tracking specialized generic parameters (e.g. variable class base).
Undo/Replace commits:
- 797768a965, Branch RevNo: 58874
  codetools: code completion for "FOR var IN" with generic class, from Pascal Riekenberg
  git-svn-id: trunk@63136 -
- 4d12a06af5, Branch RevNo: 62044
  CodeTools: Resolve generic params when searching in ancestors.
2022-10-20 13:55:54 +02:00
Pascal Riekenberg
00fca7c4fa codetools: prevent av/error when typing '.' in array definition or float value, issue #34448 2022-06-29 21:38:45 +02:00
Martin
caa6e333a2 Codetools: prevent endless loop in FindExpressionTypeOfTerm 2022-06-06 21:08:57 +02:00
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