Add block position function to handle positions for java ast nodes.