mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
use RocUnion constants for tag index
This commit is contained in:
parent
366429303c
commit
4977d1c65e
4 changed files with 20 additions and 20 deletions
|
@ -278,8 +278,11 @@ pub(crate) struct RocUnion<'ctx> {
|
|||
}
|
||||
|
||||
impl<'ctx> RocUnion<'ctx> {
|
||||
pub const TAG_ID_INDEX: u32 = 2;
|
||||
pub const TAG_DATA_INDEX: u32 = 1;
|
||||
// pub const TAG_ID_INDEX: u32 = 2;
|
||||
// pub const TAG_DATA_INDEX: u32 = 1;
|
||||
|
||||
pub const TAG_ID_INDEX: u32 = 1;
|
||||
pub const TAG_DATA_INDEX: u32 = 0;
|
||||
|
||||
fn new(
|
||||
context: &'ctx Context,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue