[Parser] Added API functions to get statement info