Recompute the token, fromIndex and toIndex fields of AstNode to ensure they are accurate