KMoody
Member
We have thousands of programs, and I'm trying to analyze how they interact and what data they affect. I've tried to analyze our classes using COMPILE XREF, and I noticed that private methods don't show up in the XREF file.
Example:
testing_util.cls:
	
	
	
		
COMPILE VALUE("testing_util.cls") XREF VALUE("c:\protemp\x.txt").
Output x.txt:
	
	
	
		
"myPublicMethod" shows up in the xref file (METHOD PUBLIC,,,,,myPublicMethod,void,), but myPrivateMethod does not.
Is this expected behavior?
				
			Example:
testing_util.cls:
		Code:
	
	USING Progress.Lang.*.
BLOCK-LEVEL ON ERROR UNDO, THROW.
CLASS testing_util:
    METHOD PRIVATE VOID myPrivateMethod(  ):
        
        RETURN.
    END METHOD.
    METHOD PUBLIC VOID myPublicMethod(  ):
        
        RETURN.
    END METHOD.
END CLASS.COMPILE VALUE("testing_util.cls") XREF VALUE("c:\protemp\x.txt").
Output x.txt:
		Code:
	
	[xxxxx]testing_util.cls [xxxxx]testing_util.cls 1 COMPILE [xxxxx]testing_util.cls
[xxxxx]testing_util.cls [xxxxx]testing_util.cls 1 CPINTERNAL ISO8859-1
[xxxxx]testing_util.cls [xxxxx]testing_util.cls 1 CPSTREAM ISO8859-1
[xxxxx]testing_util.cls [xxxxx]testing_util.cls 3 BLOCK-LEVEL ON ERROR UNDO, THROW
[xxxxx]testing_util.cls [xxxxx]testing_util.cls 5 CLASS testing_util,,,,,,
[xxxxx]testing_util.cls [xxxxx]testing_util.cls 5 STRING "testing_util" 12 NONE UNTRANSLATABLE
[xxxxx]testing_util.cls [xxxxx]testing_util.cls 11 STRING "MYPRIVATEMETHOD" 15 NONE UNTRANSLATABLE
[xxxxx]testing_util.cls [xxxxx]testing_util.cls 17 METHOD PUBLIC,,,,,myPublicMethod,void,
[xxxxx]testing_util.cls [xxxxx]testing_util.cls 17 STRING "MYPUBLICMETHOD" 14 NONE UNTRANSLATABLE
[xxxxx]testing_util.cls [xxxxx]testing_util.cls 19 CONSTRUCTOR PUBLIC,,,,testing_util,void,
[xxxxx]testing_util.cls [xxxxx]testing_util.cls 19 STRING "TESTING_UTIL" 12 NONE UNTRANSLATABLE"myPublicMethod" shows up in the xref file (METHOD PUBLIC,,,,,myPublicMethod,void,), but myPrivateMethod does not.
Is this expected behavior?
 
	 
 
		