Share

DelphiCodeToDoc

Tracker: Bugs

7 [F] Comments not incl due to different meth-decl in sections - ID: 1337626
Last Update: Settings changed ( trident )


Comments are not included due to differating method
declaration between Interface and Implementation unit
sections:

miamichief@gmx.de


The function declaration in the interface section must
exactly match the declaration in the implementation
section.
Otherwise the description comments are not taken
into account!


E.G. in a unit:
Interface
type
Class1 = class ...



function getDiagramGUID():WideString;
constructor create
(nType:TLR_NODE_TYPE; DiagramGUID : WideString;
ElementGUID: WideString);
class function
getSingletonInstance(hooksInt: THooks=NIL): Class1;
...

Implementation
...


function
Class1.getDiagramGUID:WideString;
constructor
Class1.create(nType:TLR_NODE_TYPE;
DiagramGUID,ElementGUID: WideString);
class function
Class1.getSingletonInstance(hooksInt: THooks): Class1;
End.

-> getDiagramGUID does not, work because once it is
declared with () the other time without!
NOTE: especially this one
is annoying!!
-> create does not work, because once the parameters'
(DiagramGUID and ElementGUID) types are declared
separatedly the other time it is combined:
DiagramGUID : WideString; ElementGUID:
WideString
DiagramGUID,ElementGUID: WideString

->getSingletonInstance: in the upper declaration
hooksInt has a pre set value =NIL, but in the
implementation section this is not the case!


Nobody/Anonymous ( nobody ) - 2005-10-25 16:21

7

Closed

Fixed

TridenT

Output Generator

v0.13Beta

Public


Comments ( 4 )




Date: 2006-12-28 21:04
Sender: tridentProject Admin


A new method to recognize function is finished. DUnit Tests will follow.
Fixed in v0.16beta.4



Date: 2006-12-27 20:57
Sender: tridentProject Admin


Bug reproduced.
It will be fixed in next revision.
Thx for your submission.

TridenT


Date: 2006-04-20 08:47
Sender: nobody

Logged In: NO

Aha, this is causing why in my DLL-import unit which has
some static imported functions of my dll but also some
convinience functions implemented in the same unit only the
descriptions of the convinience functions are displayed.

The statically imported functions do have a external
parameter in the iomplementation section which of course
isn't there in the interface section.

Could you check whether the declarations only differ in
having an external parameter or not?


Date: 2005-12-23 22:19
Sender: tridentProject Admin

Logged In: YES
user_id=248829

Yes, it is a very annoying issue.
This check in method declaration between Interface and
Implementation was done to see overloaded methods.

I will try to do it differently, maybe by checking one by
one parameters and parameters's type.
I will keep you informed about this issue.
TridenT


Log in to comment.




Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
status_id Open 2007-05-14 22:51 trident
close_date - 2007-05-14 22:51 trident
resolution_id None 2006-12-28 21:04 trident
summary Comments not incl due to different meth-decl in sections 2006-12-28 21:04 trident
priority 5 2005-12-23 22:19 trident