From: SourceForge.net <no...@so...> - 2006-06-25 15:26:05
|
Bugs item #1476855, was opened at 2006-04-26 14:24 Message generated for change (Settings changed) made by kambi You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104213&aid=1476855&group_id=4213 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: parser (Delphi 200x features) Group: 0.10.0 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Dietmar Borgards (dborgards) Assigned to: Nobody/Anonymous (nobody) Summary: parsing static class function (Delphi for .NET syntax) Initial Comment: Hi, I have a static class function like: type TProject = class(TPersistent) { .. some declarations .. } public class function IsProjectFile(Filename: TFileName): Boolean; static; { .. some declarations .. } end; It causes the following error: One of symbols "," or ":" expected while parsing unit ProjectData.pas, continuing... This error makes this file not handled for documentation. Best regards, Dietmar ---------------------------------------------------------------------- >Comment By: Michalis Kamburelis (kambi) Date: 2006-06-25 17:26 Message: Logged In: YES user_id=987895 Fixed by patch from Richard B. Winston. ---------------------------------------------------------------------- Comment By: Michalis Kamburelis (kambi) Date: 2006-04-27 14:55 Message: Logged In: YES user_id=987895 As I don't have any documentation available for Delphi for .NET, I'll leave fixing this bug for someone who works with Delphi for .NET. Draft: probably command-line option like --delphi-net will have to be introduced, "static" added to standard directives list in tokenizer, and then when parsing units and --delphi-net was specified, pasdoc should add "static;" to procedure declaration. This way without --delphi-net pasdoc still parses "static" just as a variable name, so parsing of non-.NET pascal code is not broken. ---------------------------------------------------------------------- Comment By: Dietmar Borgards (dborgards) Date: 2006-04-27 13:55 Message: Logged In: YES user_id=356861 Obviously I was been misguided through German documentation of Delphi 2005/2006. There is some difference betreen "class methods" and "class static methods", it seems to have been implemented with .NET-things (but I work with Win32). I erased "static" keyword and my code works well... Others may have this problem in future. Thanks. ---------------------------------------------------------------------- Comment By: Michalis Kamburelis (kambi) Date: 2006-04-26 14:44 Message: Logged In: YES user_id=987895 Which compiler understands this "static" directive ? And what it does ? I just tested with Kylix 3, FPC 2.0.2 (in delphi and objfpc mode) and they all refuse to compile such code. They expect that "static" is a variable name (so it must be followed by ":" or "," like pasdoc says). Is it some Delphi for .NET extension ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104213&aid=1476855&group_id=4213 |