CfgParseTreePrinter results empty string
Submitted by Arpad Lovassy
Link to original bug (#568092)
Description
CfgParseTreePrinter.print() results empty string if the 1st section label is in the disabled nodes list and it is also the 1st token.
Problem: if ( mDisallowedNodes != null && mDisallowedNodes.contains( rule.start.getType() ) is true if the very first token is a section label, and it is disallowed. In this case the whole cfg file is disallowed.
Solution: We need to check also if rule instanceof Pr_SectionContext to make sure, that disallowing is done in section level.