@__haoyang__/erwin
    Preparing search index...

    Class ContractType

    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)

    Index

    Constructors

    Properties

    _subs: UserDefinedType[] = []
    _supers: UserDefinedType[] = []
    kind: TypeKind
    name: string
    referece_id: number
    typeName: string

    Methods

    • Parameters

      Returns boolean

      Whether the two Values are exactly the same.

      Check if two Values are exactly the same. Sometimes, two Values are the same but not exactly the same. For example, StoragePointer and StorageRef are the same but not exactly the same.

    • Parameters

      • t: Type

        The Value to compare with.

      Returns boolean

      Whether the two Values are the same.

      Check if two Values are the same.

    • Returns string

      The string representation of the Value.

      Get the string representation of the Value.