private void generateDeclarationsIfForwardRef(int phase, GrammarData grammarData,
ParsingSettings parsingSettings, StatementList statementList) {
if (parsingSettings.isForwardRef()) {
for (Def def : defList) {
String name = def.getVarName();
GrammarElement grammarElement = def.getVal();
grammarElement.generate(phase, true, true, false, false, null, name, name, "*", "*", grammarData, statementList);
}
}
}