Copy Function

public function Copy(this) result(that)

Arguments

TypeIntentOptionalAttributesName
class(Token) :: this

Return Value type(Token)


Contents

Source Code


Source Code

  function Copy(this) result(that)
    class(Token) :: this
    type(Token)  :: that

    that%tokenString = this%tokenString
    that%tokenType = this%tokenType
    that%tokenIndex = this%tokenIndex
  endfunction Copy