libclassfile - v4.0.6
    Preparing search index...

    Function assertInfoType

    • Asserts that the provided constant pool entry matches the expected tag(s).

      Type Parameters

      • expectedTag extends
            | 0
            | 1
            | 16
            | 4
            | 8
            | 7
            | 9
            | 10
            | 11
            | 3
            | 5
            | 6
            | 12
            | 15
            | 17
            | 18
            | 19
            | 20
            | (
                | 0
                | 1
                | 3
                | 4
                | 5
                | 6
                | 7
                | 8
                | 9
                | 10
                | 11
                | 12
                | 15
                | 16
                | 17
                | 18
                | 19
                | 20
            )[]

        The expected tag for the entry

      Parameters

      • expectedTag: expectedTag
      • entryIndex: number

        The index of the entry

      • entry: constantPoolEntry

        The entry The last paramiter is a tuple of [index, flags] for description generation (it is destructured in the function, therefore meaning as far as I know you can't use a @param to describe it in JSDoc)

      • __namedParameters: [number, flags]

      Returns asserts entry is findInfoTypeByTag<
          expectedTag extends any[]
              ? expectedTag<expectedTag>[number]
              : expectedTag,
      >

      Nothing