mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 09:57:04 +01:00
codetools: fixed TFindDeclarationTool.ConvertNodeToExpressionType ctnProperty
git-svn-id: trunk@30869 -
This commit is contained in:
parent
136d46bf1c
commit
e18cb57493
@ -7420,7 +7420,7 @@ begin
|
||||
|
||||
// ToDo: ppu, dcu files
|
||||
|
||||
if Tool.MoveCursorToPropName(Node) then
|
||||
if Tool.MoveCursorToPropType(Node) then
|
||||
ConvertIdentifierAtCursor(Tool);
|
||||
end;
|
||||
|
||||
|
||||
@ -24,6 +24,18 @@
|
||||
A dialog to create a variable declaration.
|
||||
It uses the identifier in the source editor to guess the name and type, so
|
||||
that the user needs only to choose where to create the var.
|
||||
|
||||
ToDo:
|
||||
- Test sub contexts. For example MyObject.Identifier
|
||||
- Hide targets depending on already defined identifier:
|
||||
- if identifier is already defined locally, give a error message
|
||||
- if identifier is already defined in class, remove class as target
|
||||
- guess for in
|
||||
- guess parameter
|
||||
- guess <i>:=expression
|
||||
- Fix bug: adding a public variable is added after a method
|
||||
- Fix bug: local variable is added behind nested proc
|
||||
- Extend uses section when adding to a class
|
||||
}
|
||||
unit DeclareVarDlg;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user