2001-05-10 22:10 UTC-0800 Ron Pinkas <ron@profit-master.com>
* source/rtl/tclass.prg
+ Added logic to dispose of posibble "(...)" suffix to Method Name in AddInline()
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2001-05-10 22:10 UTC-0800 Ron Pinkas <ron@profit-master.com>
|
||||
* source/rtl/tclass.prg
|
||||
+ Added logic to dispose of posibble "(...)" suffix to Method Name in AddInline()
|
||||
|
||||
2001-05-10 15:30 UTC-0800 Ron Pinkas <ron@profit-master.com>
|
||||
* include/hbclass.ch
|
||||
+ Added logic for NO Checking of OO Syntax (#ifdef NO_OO_ERR) - Use /dNO_OO_ERR to disable OO Syntax Checking.
|
||||
|
||||
@@ -393,9 +393,9 @@ DECLARE TClass ;
|
||||
s_oClass:AddMethod( <(MessageName)>, CLSMETH _CLASS_NAME_ <MethodName>(), HBCLSCHOICE( <.export.>, <.protect.>, <.hidde.> ) + iif( <.ctor.>, HB_OO_CLSTP_CTOR, 0 ) )
|
||||
|
||||
#xcommand MESSAGE <MessageName>([<MsgParams,...>]) [ AS <type> ] METHOD <MethodName>([<MtdParams,...>]) [ <ctor: CONSTRUCTOR> ] [ <export: EXPORTED, VISIBLE>] [<protect: PROTECTED>] [<hidde: HIDDEN>] => ;
|
||||
_HB_MEMBER <MessageName>([<MtdParams>]) [<-ctor-> AS CLASS _CLASS_NAME_] [ AS <type> ];;
|
||||
_HB_MEMBER <MessageName>([<MtdParams>]) [<-MsgParams->] [<-ctor-> AS CLASS _CLASS_NAME_] [ AS <type> ];;
|
||||
#xcommand METHOD <MethodName> [DECLCLASS _CLASS_NAME_] _CLASS_IMPLEMENTATION_ => DECLARED METHOD _CLASS_NAME_ <MethodName>;;
|
||||
#xcommand METHOD <MethodName>([<anyParams,...>]) [DECLCLASS _CLASS_NAME_] _CLASS_IMPLEMENTATION_ => DECLARED METHOD _CLASS_NAME_ <MethodName>([<anyParams>]);;
|
||||
#xcommand METHOD <MethodName>( [<anyParams,...>] ) [DECLCLASS _CLASS_NAME_] _CLASS_IMPLEMENTATION_ => DECLARED METHOD _CLASS_NAME_ <MethodName>( [<anyParams>] );;
|
||||
#xcommand METHOD <MethodName>() [DECLCLASS _CLASS_NAME_] _CLASS_IMPLEMENTATION_ => DECLARED METHOD _CLASS_NAME_ <MethodName>();;
|
||||
s_oClass:AddMethod( <(MessageName)>, CLSMETH _CLASS_NAME_ <MethodName>(), HBCLSCHOICE( <.export.>, <.protect.>, <.hidde.> ) + iif( <.ctor.>, HB_OO_CLSTP_CTOR, 0 ) )
|
||||
#endif
|
||||
|
||||
@@ -366,7 +366,12 @@ STATIC PROCEDURE AddMultiClsData( cType, xInit, nScope, aData, lNoInit )
|
||||
|
||||
STATIC PROCEDURE AddInline( cMethod, bCode, nScope )
|
||||
|
||||
LOCAL Self := QSelf()
|
||||
LOCAL Self := QSelf(), nAt
|
||||
|
||||
/* Remove possible ( <x,...> )*/
|
||||
IF ( nAt := At( "(", cMethod ) ) > 0
|
||||
cMethod := RTrim( Left( cMethod, nAt - 1 ) )
|
||||
ENDIF
|
||||
|
||||
AAdd( ::aInlines, { cMethod, bCode, nScope } )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user