public Node createTypeReferencePart(org.parboiled.Node<Node> identifier, Node typeArguments) {
TypeReferencePart result = new TypeReferencePart().astIdentifier(createIdentifierIfNeeded(identifier.getValue(), currentPos()));
if (typeArguments instanceof TemporaryNode.TypeArguments) {
for (Node arg : ((TemporaryNode.TypeArguments)typeArguments).arguments) {
result.rawTypeArguments().addToEnd(arg);
}
}
posify(result); //We only care about the end position here.
return result.setPosition(new Position(identifier.getStartIndex(), result.getPosition().getEnd()));