aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/meta/compiler/target/jvm/attribute/constant.lux
blob: 55a6abae9fc55165bfa8e60222c8e0a0e823b39c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
... This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
... If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

(.require
 [library
  [lux (.except)
   [abstract
    [equivalence (.only Equivalence)]]
   [data
    [binary
     [\\format (.only Format)]]]]]
 ["[0]" ///
  [constant (.only Value)]
  ["[1][0]" index (.only Index)]
  [encoding
   ["[1][0]" unsigned (.only U2 U4)]]])

(type .public (Constant a)
  (Index (Value a)))

(def .public equivalence
  (All (_ a) (Equivalence (Constant a)))
  ///index.equivalence)

(def .public length
  ///index.length)

(def .public format
  (All (_ a) (Format (Constant a)))
  ///index.format)