Commit Graph

272 Commits

Author SHA1 Message Date
Juha
54086209c6 IDE, Codetools: Fix renaming non-dotted identifiers. Same function RenameIdentifier is used for dotted unit names. Issue #40195. 2023-05-25 13:02:00 +03:00
mattias
37d638661f codetools: added GatherPublishedVarTypes, CompleteComponent with optional CheckUnits 2023-04-13 15:38:12 +02:00
mattias
aee6888497 codetools: renamed CompleteComponent to AddPublishedVariables, added tests 2023-04-09 19:48:37 +02:00
mattias
a7f2330310 codetools: CheckLFM: variable type with unit name 2023-04-07 14:03:40 +02:00
mattias
7dec126e98 codetools: test wrong object unitname 2023-04-07 11:29:42 +02:00
mattias
d8a835dd17 codetools: test wrong root unitname 2023-04-07 11:29:41 +02:00
mattias
35a67fba04 codetools: started checking type unitnames 2023-04-06 12:33:47 +02:00
mattias
454f272551 codetools: fixed event assignment completion with existing @name 2023-03-31 15:36:20 +02:00
mattias
d3a9a217b2 codetools: test class completion: insert first method body 2023-03-13 05:26:41 +01:00
mattias
d0a8be0821 codetools: add test complete event assignment 2023-03-12 23:11:06 +01:00
Martin
f0901a9512 Codetools: parse specialization as function result (in function type def) Issue #38970 2023-03-10 16:56:06 +01:00
Martin
7172fd48e9 Codetools: test for Issue #28989 2023-03-10 16:27:42 +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
31c8f2dadd Codetools: add testcase for issue 40145 / allow "{completion" after dot. 2023-03-07 20:10:19 +01:00
Martin
04337988d9 Codetools, tests: Add test for issue #32252 2023-03-06 16:53:27 +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
5f053c5a52 CodeTools: test for improve FindDeclaration in nested specialized classes 2023-03-05 21:36:16 +01:00
mattias
4c53c90895 codetools: test CheckLFM: parse unitname 2023-01-18 10:00:42 +01:00
mattias
09c3e47a45 codetools: test CheckLFM child component 2023-01-17 22:41:17 +01:00
mattias
029f775a85 codetools: started testsuite for CheckLFM 2023-01-17 21:50:16 +01:00
mattias
1b490d997c codetools: implemented $if sizeof() for some built-in types 2023-01-13 12:43:46 +01: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
204e3d5734 CodeTools, tests: run "bug*" tests too. 2022-10-26 14:54:02 +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
54aadb67fd Codetools: fixed parsing of directives with in operator + test 2022-07-06 23:32:59 +02:00
Pascal Riekenberg
d5951070d0 Codetools: Tests for: Keep empty () on code completion. Issue #39712. 2022-07-06 22:33:47 +02:00
mattias
66b36cd172 codetools: fixed some tests 2022-06-17 17:35:23 +02:00
mattias
6b9fd935b2 codetools: parse underscore in decimals 2022-06-17 17:20:11 +02:00
Martin
2182681a6e Codetools: Add test for code-completion keywords 2022-05-03 21:59:18 +02:00
Martin
4d12a06af5 CodeTools: Resolve generic params when searching in ancestors. 2022-05-03 02:32:26 +02:00
mattias
e2ad6b3d8d codetools: parse multiline string constant 2022-03-14 16:38:07 +01:00
Martin
12530d0cfe Codetools: Fix testcase. Added "filemask" as long-option, so example invocations from unit TestFindDeclaration will work. 2022-03-11 16:59:30 +01: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
mattias
947a183c9c codetools: added boolean8, boolean16, boolean32, boolean64 2021-12-22 23:58:25 +01:00
Martin
47177f39ca Codetools: Testcase, add a few options for upcoming tests 2021-12-04 14:20:45 +01:00
mattias
de1209eefb codetools: started test for nested alias class 2021-12-04 08:43:25 +01:00
mattias
8f307159a6 codetools: fixed tests when no pas2js found 2021-12-03 12:05:40 +01:00
mattias
f84b6b1c5a codetools: fixed parsing sub proc of anonymous proc 2021-11-18 22:40:39 +01:00
mattias
8fb7b558f3 codetools: test GenericsDelphi_FuncParam
git-svn-id: trunk@65080 -
2021-05-02 15:33:23 +00:00
pascal
246e2a5ac2 codetools: extended test (some are still failing)
git-svn-id: trunk@65072 -
2021-04-30 10:38:31 +00:00
pascal
7a252352cf codetools: added new test: find declaration for generic lists and arrays with member of default array property (still fails for generic array)
git-svn-id: trunk@65071 -
2021-04-30 10:32:34 +00:00
pascal
d1fdd59831 codetools: fixed program name of test
git-svn-id: trunk@65070 -
2021-04-30 04:59:19 +00:00
pascal
88eaecc93d codetools: added new test
git-svn-id: trunk@65068 -
2021-04-30 00:37:11 +00:00
mattias
4a77082939 codetools: test rename proc
git-svn-id: trunk@65009 -
2021-04-17 11:21:39 +00:00
pascal
cb6eb68d7e codetools: added test TTestRefactoring.TestRenameProcReferences
git-svn-id: trunk@64998 -
2021-04-15 12:40:31 +00:00