I am trying to get methods references and external references using REST version of the Tooling API, but they all = null:
/services/data/v36.0/tooling/query/q=Select+Id,Name,SymbolTable+From+ApexClass+where+Name+in+('MyApexClass','MyApexClassTwo')
public with sharing class MyApexClass {
public void testA(){}
public void testB(){
testA();
}
}
public with sharing class MyApexClassTwo {
public void testC(){
MyApexClass mac = new MyApexClass();
mac.testB();
}
}
Why all references = null, if I call testA() in testB() in class 'MyApexClass' and then tesB() in testC() in external class 'MyApexClassTwo'?
EDIT 1: Okay, I find my mistake The SymbolTable returned from ApexClass does not contain references; to retrieve a SymbolTable with references, use ApexClassMember. But how can we create ApexClassMember?