ParserError error = expectedRule != null ? createErrorExpectedRule(expectedRule) : null;
return createMissingTypeReferenceNode(sourceRange, error);
}
public Reference createMissingTypeReferenceNode(SourceRange sourceRange, ParserError error) {
RefIdentifier refMissing = new RefIdentifier(null);
refMissing.setSourceRange(sourceRange);
assertTrue(refMissing.isMissing());
return conclude(error, refMissing);
}