Commit Graph

870 Commits

Author SHA1 Message Date
mattias
0ca8f14eff codetools: added tests for type helpers
git-svn-id: trunk@50102 -
2015-10-18 13:55:49 +00:00
mattias
0075408ba2 codetools: fixed resolving dot after pointer in mode delphi
git-svn-id: trunk@50101 -
2015-10-18 13:38:49 +00:00
mattias
a5c1278946 codetools: fixed resolving dot after class, bug #28876
git-svn-id: trunk@50100 -
2015-10-18 13:32:15 +00:00
mattias
174015662d codetools: fixed resolve first identifier in term
git-svn-id: trunk@50085 -
2015-10-16 17:45:47 +00:00
mattias
ccd0eeebaf codetools: find declaration of string constant dot identifier
git-svn-id: trunk@50083 -
2015-10-16 15:37:23 +00:00
mattias
80b57e35e4 codetools: less verbose
git-svn-id: trunk@50082 -
2015-10-16 09:41:01 +00:00
mattias
de4a5aaa57 codetools: FindStartOfTerm: allow numbers and string constants, needed for type helpers
git-svn-id: trunk@50080 -
2015-10-16 09:39:55 +00:00
mattias
38c4e5243b cody: find overloads: check compatibility
git-svn-id: trunk@50055 -
2015-10-14 13:25:43 +00:00
mattias
b3ff6d8167 codetools: fixed find declaration default property, bug #28847
git-svn-id: trunk@50050 -
2015-10-13 20:13:05 +00:00
mattias
7895129320 codetools: finddeclaration: cache in ctnWithVar instead of ctnWithStatement
git-svn-id: trunk@50041 -
2015-10-12 21:58:15 +00:00
mattias
ced7b32ee9 codetools: FindExpressionTypeOfTerm: removed obsolete FindBaseTypeOfNode
git-svn-id: trunk@50021 -
2015-10-09 12:24:52 +00:00
mattias
0ba4515139 codetools: fixed finding default property in class helper, bug #28809, patch from Ondrej
git-svn-id: trunk@50017 -
2015-10-09 10:14:21 +00:00
mattias
fb472b1555 codetools: fixed find enumerator in class helper
git-svn-id: trunk@50014 -
2015-10-09 08:57:29 +00:00
mattias
b605c39631 codetools: code completion: support class constructors/destructors, patch #25130 from Ondrej Pokorny
git-svn-id: trunk@49996 -
2015-10-08 14:20:54 +00:00
mattias
60e08d1047 codetools: fixed using last found helper
git-svn-id: trunk@49994 -
2015-10-08 13:53:33 +00:00
mattias
851bfd3a7d codetools: replace helper: keep AVLNode, it may be in use by the iterator
git-svn-id: trunk@49993 -
2015-10-08 13:38:33 +00:00
mattias
c18721377e codetools: debugging
git-svn-id: trunk@49992 -
2015-10-08 10:27:52 +00:00
mattias
62736acf82 codetools: identifier completion+events: simplified collecting helpers
git-svn-id: trunk@49983 -
2015-10-07 23:08:11 +00:00
mattias
7eec3d4b45 codetools: identifier completion+events: fixed collecting helpers, patch #28794
git-svn-id: trunk@49982 -
2015-10-07 22:44:05 +00:00
mattias
7625688d59 cody: find overloads: add nodes for classes and ancestors
git-svn-id: trunk@49959 -
2015-10-06 17:38:06 +00:00
mattias
5086ce6b4a codetools: fixed TFindDeclarationParams.Create calls, bug #28410
git-svn-id: trunk@49887 -
2015-09-28 18:10:26 +00:00
mattias
ff65e8f6c6 codetools: fixed FindHelpers when params.ContextNode changes
git-svn-id: trunk@49882 -
2015-09-27 20:02:29 +00:00
mattias
0896a48942 codetools: fixed TFindDeclarationParams.Create to only allocate, not changing Tool.CurPos, collect helpers on demand
git-svn-id: trunk@49875 -
2015-09-27 10:44:39 +00:00
mattias
2e36d4e2c3 codetools: fixed MoveToLastIdentifierThroughDots from Ondrej
git-svn-id: trunk@49868 -
2015-09-22 15:28:51 +00:00
mattias
f4836cb1da codetools: GetSmartHint: ctnSetType: fixed
git-svn-id: trunk@49837 -
2015-09-16 08:50:37 +00:00
mattias
fca3ce09ec codetools: GetSmartHint: ctnSetType: limitless
git-svn-id: trunk@49836 -
2015-09-16 08:23:22 +00:00
mattias
ca9e9967a2 codetools: GetSmartHint: ctnSetType: append initial value, from Ondrej Pokorny
git-svn-id: trunk@49835 -
2015-09-16 08:22:26 +00:00
mattias
87f3fd5da2 codetools: GetSmartHint: ctnSetType fixed copy
git-svn-id: trunk@49834 -
2015-09-16 08:19:40 +00:00
mattias
9aaf5b19da codetools: improved smart hint for set and enums from Ondrej Pokorny
git-svn-id: trunk@49829 -
2015-09-15 20:32:16 +00:00
mattias
8d32bb263f codetools: use camelcase for system unit under Delphi, make ExpressionTypeDescNames a var, patch #28648 from Ondrej Pokorny
git-svn-id: trunk@49796 -
2015-09-09 11:16:09 +00:00
mattias
f9f232ea0b codetools: improved smarthints, show definition, patch #28610, from Ondrej Pokorny
git-svn-id: trunk@49740 -
2015-09-02 11:27:34 +00:00
mattias
631feb2095 codetools: find declaration: nobjcprotocol has no default ancestor
git-svn-id: trunk@49679 -
2015-08-16 10:57:46 +00:00
mattias
e96a385420 codetools: find declaration of objcclass.alloc
git-svn-id: trunk@49678 -
2015-08-16 09:11:02 +00:00
mattias
aa33066937 codetools: searching all compatible objccategory
git-svn-id: trunk@49666 -
2015-08-14 09:42:29 +00:00
mattias
18825bf47b codetools: test for type helper
git-svn-id: trunk@49665 -
2015-08-14 08:11:08 +00:00
mattias
26b480004f codetools: find declaration: resolve expr type of objccategory
git-svn-id: trunk@49662 -
2015-08-13 08:16:38 +00:00
mattias
40688b9497 codetools: split helper coder for objccategory
git-svn-id: trunk@49661 -
2015-08-13 07:01:44 +00:00
mattias
c4df72ddfa codetools: simplified CompareHelpersList
git-svn-id: trunk@49654 -
2015-08-11 13:32:40 +00:00
mattias
3efaeb10b7 codetools: simplified CompareHelpersList
git-svn-id: trunk@49653 -
2015-08-11 13:31:37 +00:00
mattias
fbf5029f32 codetools: simplified
git-svn-id: trunk@49652 -
2015-08-11 13:26:14 +00:00
mattias
348bc7ef4c codetools: allow "helper" variable in object
git-svn-id: trunk@49645 -
2015-08-11 12:13:32 +00:00
mattias
bb5f1d11a6 codetools: modeswitch objectivec1,2: check keywords objcclass,category,protocol only in this mode switch, fixed finding NSObject, hack for searching objccategory removed
git-svn-id: trunk@49641 -
2015-08-11 11:56:02 +00:00
juha
82acb31da2 Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild.
git-svn-id: trunk@49508 -
2015-07-07 15:35:28 +00:00
juha
653b5dd43a Codetools, unit FileProcs: Disable conditionally wrapper functions. For testing define DisableWrapperFunctions and build Lazarus.
git-svn-id: trunk@49504 -
2015-07-07 11:43:38 +00:00
mattias
eec44bce79 codetools: add compiler functions into system., filter predefined compiler functions, patch #28320
git-svn-id: trunk@49474 -
2015-06-30 09:22:06 +00:00
mattias
699bdb9e8f codetools: class helpers: find declaration and code completion, patch #28266, from Ondrej Pokorny
git-svn-id: trunk@49405 -
2015-06-22 10:02:11 +00:00
mattias
2f643bd4d4 codetools: move Find*UsesSection to TPascalParserTool, issue #28285
git-svn-id: trunk@49342 -
2015-06-16 09:22:42 +00:00
mattias
b1acac9beb codetools: clean up
git-svn-id: trunk@48661 -
2015-04-06 17:39:43 +00:00
mattias
e0a471dc07 codetools: clean up
git-svn-id: trunk@48660 -
2015-04-06 17:35:11 +00:00
mattias
ca91821012 codetools: fixed find nested ancestor of nested class
git-svn-id: trunk@48537 -
2015-03-30 16:23:22 +00:00
juha
232c983159 CodeTools: Initialize variables based on compiler warnings. Contains ToDo items.
git-svn-id: trunk@48480 -
2015-03-24 17:51:40 +00:00
mattias
c292a5e843 codetools: fixed crash if Result not in function
git-svn-id: trunk@48414 -
2015-03-18 17:13:09 +00:00
mattias
6eca89bfee codetools: jvm: has no iinterface
git-svn-id: trunk@48329 -
2015-03-13 00:27:39 +00:00
mattias
d48e548ada codetools: fixed search in ancestor and search ancestor
git-svn-id: trunk@48317 -
2015-03-12 23:11:19 +00:00
mattias
6cfb990ccf codetools: fixed searching ancestor class *not* in ancestors (loop) and search it in ancestors of enclosing class
git-svn-id: trunk@48292 -
2015-03-12 10:26:21 +00:00
mattias
5e1973260e codetools: fixed loop in FindEnumInContext
git-svn-id: trunk@48281 -
2015-03-12 00:41:37 +00:00
mattias
00d2898a47 codetools: implemented parsing jvm class external as no forrward, searching indirect ancestors
git-svn-id: trunk@48268 -
2015-03-11 17:21:34 +00:00
mattias
4a8bc5f9b6 codetools: find declaration: result in nested proc
git-svn-id: trunk@48085 -
2015-03-01 15:56:29 +00:00
mattias
c1329874e0 codetools: clean up
git-svn-id: trunk@47729 -
2015-02-13 08:08:16 +00:00
paul
99930b2227 codetools:
- don't stop parse of unit name on a dot while generating a hint in more cases

git-svn-id: trunk@47713 -
2015-02-12 03:34:57 +00:00
paul
1458325314 codetools:
- don't stop parse of unit name on a dot while generating a hint

git-svn-id: trunk@47712 -
2015-02-12 02:59:08 +00:00
mattias
8e7bf9cf79 codetools: code completion compiler function Assigned
git-svn-id: trunk@46962 -
2014-11-22 11:01:04 +00:00
mattias
2daf3e1e32 codetools: code completion compiler function Ord
git-svn-id: trunk@46961 -
2014-11-22 10:57:47 +00:00
mattias
eb43af9a27 codetools: code completion compiler function Assigned
git-svn-id: trunk@46960 -
2014-11-22 10:55:11 +00:00
mattias
f5e2ee41a5 codetools: find declaration and gather identifiers: labels, issue #26882
git-svn-id: trunk@46592 -
2014-10-18 10:22:38 +00:00
mattias
9ddf3d4196 codetools: FindAbstractMethods: search class interfaces
git-svn-id: trunk@45593 -
2014-06-21 15:35:46 +00:00
mattias
334403f906 codetools: find gdb line: search implementation, started searching members
git-svn-id: trunk@44935 -
2014-05-06 15:43:42 +00:00
mattias
719b45dcec codetools: fixed FindDeclaration fsfFindMainDeclaration for ctnUnit
git-svn-id: trunk@44593 -
2014-04-03 15:59:58 +00:00
juha
32adb07f4c Codetools: Prevent a wrong error message about ancestor having same name. Issue #24502, patch from ocean.
git-svn-id: trunk@44513 -
2014-03-24 22:29:25 +00:00
mattias
c8dcad58c9 codetools: identifier completion: list global properties
git-svn-id: trunk@44254 -
2014-02-26 19:11:12 +00:00
juha
3a50e1c7f2 Remove assertion in TFindDeclarationTool.FindIdentifierInInterface. Not needed after BuildInterfaceIdentifierCache return value was fixed.
git-svn-id: trunk@43574 -
2013-12-21 12:59:53 +00:00
juha
490e3b3df5 Codetools: fix return value of TFindDeclarationTool.BuildInterfaceIdentifierCache
git-svn-id: trunk@43549 -
2013-12-16 00:11:16 +00:00
mattias
fc9c962339 codetools: FindUnitSource: fixed error message if not cursor pos known
git-svn-id: trunk@43209 -
2013-10-11 15:37:55 +00:00
mattias
7d402a8415 codetools: fixed checking if resolving edged bracket open is allowed, bug #25045
git-svn-id: trunk@42868 -
2013-09-18 21:29:59 +00:00
mattias
612b486281 IDE: implement find references of used unit
git-svn-id: trunk@42686 -
2013-09-08 22:47:26 +00:00
mattias
5364c52f95 codetools: FindUsedUnitReferences
git-svn-id: trunk@42681 -
2013-09-08 19:19:55 +00:00
mattias
f300bc6edc codetools: find declaration: check for overloaded procs: stop if call() fits, bug #24901
git-svn-id: trunk@42454 -
2013-08-23 08:08:05 +00:00
mattias
c4602e0c20 codetools: fixed searching selfunit.interfaceidentifier
git-svn-id: trunk@42379 -
2013-08-10 10:15:10 +00:00
mattias
a1d47beded codetools: shrinked scan ranges from lsrEnd to lsrInitializationStart where possible
git-svn-id: trunk@42202 -
2013-07-25 12:49:04 +00:00
mattias
71afb213fb codetools: rename identifier: procedure jump to prochead
git-svn-id: trunk@42074 -
2013-07-13 12:42:32 +00:00
mattias
4d11ba6ac9 codetools: resourcestring
git-svn-id: trunk@41980 -
2013-07-03 07:48:30 +00:00
mattias
30c64c2982 codetools: code complete: for c in char
git-svn-id: trunk@41952 -
2013-07-01 11:14:55 +00:00
mattias
e16523559c codetools: fixed parsing expression with &keyword
git-svn-id: trunk@41950 -
2013-06-30 22:40:51 +00:00
mattias
7201e34ba9 codetools: on variable only valid in the on block, bug #24494
git-svn-id: trunk@41842 -
2013-06-23 17:32:52 +00:00
mattias
f4ed4c5b85 codetools: fixed code completion for c in enum
git-svn-id: trunk@41837 -
2013-06-23 16:28:50 +00:00
mattias
ad78656157 codetools: CheckParameterSyntax: fixed ([])
git-svn-id: trunk@41819 -
2013-06-23 12:45:53 +00:00
juha
673142547e Converter + codetools: try to find out why FInterfaceIdentifierCache is Nil sometimes in TFindDeclarationTool.FindIdentifierInInterface.
git-svn-id: trunk@41712 -
2013-06-14 13:45:12 +00:00
mattias
4ce8683fd7 codetools: set DirectoryCache of tool, removed auto fetching
git-svn-id: trunk@41552 -
2013-06-05 19:07:50 +00:00
juha
a9ad45f767 Codetools: make TFindDeclarationTool.CheckDirectoryCache public. Needed for converter.
git-svn-id: trunk@41426 -
2013-05-26 17:49:16 +00:00
mattias
186067a9f8 codetools: findreferences: when on proc body search proc interface
git-svn-id: trunk@41133 -
2013-05-11 19:29:04 +00:00
mattias
01e46f51c9 codetools: fixed find term type of function returning a pointer type
git-svn-id: trunk@41093 -
2013-05-09 14:42:45 +00:00
mattias
878a5a0321 codetools: undo hack
git-svn-id: trunk@40921 -
2013-04-28 22:41:31 +00:00
juha
3964d7f1f3 CodeTools: Make completion tool work correctly with hidden methods. Issue #18929, patch from Anton
git-svn-id: trunk@40918 -
2013-04-28 21:03:14 +00:00
juha
727f6ddd62 Codetools: Fix FindDeclaration tool to not finds inaccessible private/protected fields. Issue #22464, patch from Anton
git-svn-id: trunk@40909 -
2013-04-28 15:20:16 +00:00
mattias
fc203991d0 codetools: find declaration: searching in class of method: search in parent classes of nested classes
git-svn-id: trunk@40201 -
2013-02-06 19:20:29 +00:00
mattias
e9f840669c codetools: TFindDeclarationTool.CheckParameterSyntax: check comments
git-svn-id: trunk@39956 -
2013-01-24 19:39:25 +00:00
mattias
7db10c0527 codetools: fixed searching identifier in constant, bug #23643
git-svn-id: trunk@39897 -
2013-01-19 19:15:38 +00:00
mattias
a9f38a9a10 codetools: TLinkScanner.CursorToCleanPos: fixed reporting wrongly skipped code for beyond code
git-svn-id: trunk@39792 -
2013-01-06 22:57:41 +00:00
mattias
0d543afcbf codetools: more verbosity for fd fail
git-svn-id: trunk@39755 -
2013-01-03 18:34:24 +00:00
mattias
60bdd54869 codetools: added flag -dVerboseFindDeclarationFail
git-svn-id: trunk@39753 -
2013-01-03 16:30:56 +00:00
mattias
9b7bd51717 codetools: added flag -dVerboseFindDeclarationFail
git-svn-id: trunk@39751 -
2013-01-03 15:28:07 +00:00
mattias
8298e344f3 codetools: added flag -dVerboseFindDeclarationFail
git-svn-id: trunk@39749 -
2013-01-03 13:56:50 +00:00
mattias
60fd65da29 codetools: added flag -dVerboseFindDeclarationFail
git-svn-id: trunk@39748 -
2013-01-03 13:48:12 +00:00
mattias
9862bf3af8 codetools: TLinkScanner.CursorToCleanPos: fixed cursorpos outside of code
git-svn-id: trunk@39655 -
2012-12-26 09:58:20 +00:00
mattias
a00deda670 codetools: findbasetypeofnode: undo skip current context
git-svn-id: trunk@39567 -
2012-12-17 11:22:03 +00:00
mattias
8ba97d8a17 codetools: clean up
git-svn-id: trunk@39560 -
2012-12-16 10:48:05 +00:00
mattias
2f53e5d41c codetools: fixed TEventsCodeTool.FindMethodTypeInfo when type is an alias
git-svn-id: trunk@39559 -
2012-12-16 10:46:37 +00:00
mattias
0869cb145f codetools: findbasetype: skip current context in type defs
git-svn-id: trunk@39558 -
2012-12-16 10:25:33 +00:00
mattias
20382c7ed0 codetools: skipped code is now converted to special comments
git-svn-id: trunk@38521 -
2012-09-05 10:47:44 +00:00
mattias
8367792c04 codetools: resolve indexed ancestor properties, bug #22687
git-svn-id: trunk@38421 -
2012-08-28 19:55:36 +00:00
mattias
859caab881 codetools: fixed range check error
git-svn-id: trunk@38419 -
2012-08-28 14:23:59 +00:00
mattias
ac5fdad655 undo
git-svn-id: trunk@38292 -
2012-08-21 07:48:52 +00:00
mattias
8700716f40 codetools: example for skipped code
git-svn-id: trunk@38291 -
2012-08-21 07:47:20 +00:00
mattias
1bc9682635 codetools: fixed find declaration of a.b
git-svn-id: trunk@38227 -
2012-08-12 08:15:56 +00:00
mattias
51c7a42e32 codetools: workaround until CalculateBinaryOperator supports alias types
git-svn-id: trunk@38195 -
2012-08-07 07:43:49 +00:00
mattias
a5f1df8c7c codetools: fixed FindDeclarationOfIdentAtParam searching if proc()then
git-svn-id: trunk@38189 -
2012-08-06 22:36:23 +00:00
mattias
8bb7d5a78e codetools: improved unit not found error message for implicit used units
git-svn-id: trunk@38073 -
2012-07-28 12:29:00 +00:00
mattias
24dcd68f83 codetools: save parse error of operator, do not save errors outside parser, fixed parsing method name with generic parameter
git-svn-id: trunk@37482 -
2012-06-02 13:47:16 +00:00
juha
141260a23a Converter: Improve converting TabbedNotebook to TPageControl.
git-svn-id: trunk@37270 -
2012-05-13 17:08:41 +00:00
mattias
bb32bf4cdb codetools: improved error message on unit not found
git-svn-id: trunk@37265 -
2012-05-13 13:03:58 +00:00
mattias
2b2f0f00f8 codetools: improved error message on unit not found
git-svn-id: trunk@37263 -
2012-05-13 09:40:15 +00:00
mattias
1802fda674 codetools: GetSmartHint: ^, .., file of, class of
git-svn-id: trunk@37215 -
2012-05-07 16:16:17 +00:00
mattias
1eca771511 codetools: save less errors
git-svn-id: trunk@37214 -
2012-05-07 16:13:24 +00:00
mattias
855af79e42 codetools: do not save errors outside parser
git-svn-id: trunk@37213 -
2012-05-07 16:04:57 +00:00
mattias
e870b21355 codetools: fixed resolving inherited
git-svn-id: trunk@37132 -
2012-05-02 12:06:32 +00:00
mattias
d18e8e49d3 codetools: GetSmartHint: show anonymous arrays
git-svn-id: trunk@37104 -
2012-04-30 14:13:02 +00:00
mattias
5f3801e1ee codetools: nested types: Self and inherited
git-svn-id: trunk@37103 -
2012-04-30 13:37:41 +00:00
mattias
15b8f2e5c3 codetools: fixed GetSmartHint for unit
git-svn-id: trunk@37098 -
2012-04-30 08:08:02 +00:00
mattias
815fe6af00 codetools: do not try to search in record ancestors
git-svn-id: trunk@37090 -
2012-04-29 18:33:24 +00:00
mattias
40fdca11df codetools: GetSmartHint: use unit
git-svn-id: trunk@37089 -
2012-04-29 18:31:03 +00:00
mattias
8be47d95a1 codetools: GetSmartHint: property params and type
git-svn-id: trunk@37087 -
2012-04-29 18:21:33 +00:00
mattias
b5a7e440c9 codetools: GetSmartHint: add inheritance
git-svn-id: trunk@37083 -
2012-04-29 12:52:03 +00:00
mattias
e158e14d5b codetools: getsmarthing: array of
git-svn-id: trunk@37082 -
2012-04-29 12:48:27 +00:00
mattias
b65f87aa5b codetools: getsmarthing: enum: add "enum"
git-svn-id: trunk@37081 -
2012-04-29 12:47:10 +00:00
mattias
20f137ac1f codetools: getsmarthing: simplified
git-svn-id: trunk@37080 -
2012-04-29 12:45:33 +00:00
mattias
c5f819c616 codetools: getsmarthing: class variables
git-svn-id: trunk@37079 -
2012-04-29 12:41:36 +00:00
mattias
3c82a53c6b codetools: find declaration: selfunit.implementationidentifie
git-svn-id: trunk@37078 -
2012-04-29 10:35:52 +00:00
mattias
c98e01db84 codetools: resolve expr: thisunitname.implementationenidentifier
git-svn-id: trunk@37073 -
2012-04-29 09:28:15 +00:00
mattias
5b0d16c0df codetools: identifier completion: unit name of self
git-svn-id: trunk@37071 -
2012-04-28 20:42:57 +00:00
mattias
e055f6003b codetools: fixed find declaration
git-svn-id: trunk@36982 -
2012-04-22 22:46:47 +00:00
mattias
9d8803bbcc codetools: identifier completion: fixed continue searching
git-svn-id: trunk@36981 -
2012-04-22 21:26:33 +00:00
mattias
11216625db codetools: fixed search in hidden used units
git-svn-id: trunk@36978 -
2012-04-22 20:15:40 +00:00
mattias
297804938e codetools: fixed searching identifier in program, library
git-svn-id: trunk@36975 -
2012-04-22 18:33:35 +00:00
mattias
f2b5e73135 codetools: fixed find declaration in library starting in initialization, bug #21832
git-svn-id: trunk@36974 -
2012-04-22 18:25:25 +00:00
mattias
28123ac857 codetools: fixed treating initialization, finalization as statements
git-svn-id: trunk@36973 -
2012-04-22 18:15:24 +00:00
mattias
4d57d078dd codetools: find inheritance of objccategory
git-svn-id: trunk@36458 -
2012-03-30 13:47:49 +00:00
mattias
d87025efb7 codetools: auto dereferencing on mode switch autoderef
git-svn-id: trunk@36152 -
2012-03-18 19:10:51 +00:00
mattias
6fdd286ea2 codetools: fixed type of property
git-svn-id: trunk@35791 -
2012-03-07 08:35:47 +00:00
mattias
2b47f40c2f codetools: find declaration of default property without type
git-svn-id: trunk@35789 -
2012-03-07 06:26:37 +00:00
mattias
dd14bccb30 codetools: less verbosity
git-svn-id: trunk@35727 -
2012-03-05 11:20:32 +00:00