afawcett / apex-toolingapi

Apex wrapper for the Salesforce Tooling API
BSD 3-Clause "New" or "Revised" License
134 stars 98 forks source link

Field "modifiers" in tableDeclaration in SymbolTable is always empty #23

Closed Likhovid closed 8 years ago

Likhovid commented 9 years ago

Hi!

When I retrieve a SymbolTable of an Apex class, the field "modifiers" in tableDeclaration is always empty. When I have "public virtual class ..." or "public with sharing class ..." - no matter it's always empty. The class is valid.

All other fields like constructors, methods and properties I retrieve without any problems (with their modifiers as well).

Thank you, Liudmila

afawcett commented 8 years ago

The SymbolTable is only filled in when you use ApexClassMember as part of a workspace. In other words the class has to have been compiled.