int(-1..) endoftype(int(-1..) position)
Returns at which position the type declaration that begins at position position ends. A return value of -1 means that the token or tokens from position can not be a type declaration.