Value is an abstract class that is used to instantiate placeholders in the generated IR.

Take the following code snippet as an example of the IR:

mapping(T1 => T2) M V m;

In which T1, T2, M and V are all placeholders. In the solving process, the solver will replace these placeholders with actual values, which are type, type, storage location and visibility respectively.

The kind of the Value.

Hierarchy (View Summary)

Constructors

  • Parameters

    • visibility: "internal" | "private" | "public" | "external" = "public"
    • stateMutability: "view" | "pure" | "payable" | "nonpayable" = "nonpayable"
    • parameterTypes: UnionType
    • returnTypes: UnionType

    Returns FunctionType

Properties

kind: TypeKind
parameterTypes: UnionType
returnTypes: UnionType
stateMutability: "view" | "pure" | "payable" | "nonpayable" = "nonpayable"
typeName: string
visibility: "internal" | "private" | "public" | "external" = "public"

Methods

  • Returns string

  • Returns string