Skip to content

Recognize Symbols Defined by areduce #435

@alexanderkiel

Description

@alexanderkiel

The macro areduce defines two symbols specified by the arguments ret and init. Symbols placed there are currently not recognized by Cursive.

My use case is the following function:

(defn decode-len
  "Returns the length represented by the encoded bytes."
  [^bytes b]
  {:pre [(= 4 (count b))]}
  (areduce b i ret 0
           (+ ret (bit-shift-left (bit-and 0xff (int (aget b i))) (* i 8)))))

here i and ret are marked as cannot be resolved by v0.1.29.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions