codetools: fixed TFindDeclarationTool.ConvertNodeToExpressionType ctnProperty

git-svn-id: trunk@30869 -
This commit is contained in:
mattias 2011-05-23 13:47:48 +00:00
parent 136d46bf1c
commit e18cb57493
2 changed files with 13 additions and 1 deletions

View File

@ -7420,7 +7420,7 @@ begin
// ToDo: ppu, dcu files
if Tool.MoveCursorToPropName(Node) then
if Tool.MoveCursorToPropType(Node) then
ConvertIdentifierAtCursor(Tool);
end;

View File

@ -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;