1
Fork 0

Use the same way to specifiy the SCOPE_DATA_* constants as used for the MAX

This commit is contained in:
Oliver Schneider 2018-09-07 17:07:42 +02:00
parent 06a041cbd3
commit 3828e9e16f

View file

@ -110,10 +110,10 @@ pub struct Scope {
pub(crate) code: u32
}
const SCOPE_DATA_NODE: u32 = !0;
const SCOPE_DATA_CALLSITE: u32 = !1;
const SCOPE_DATA_ARGUMENTS: u32 = !2;
const SCOPE_DATA_DESTRUCTION: u32 = !3;
const SCOPE_DATA_NODE: u32 = 0xFFFF_FFFF;
const SCOPE_DATA_CALLSITE: u32 = 0xFFFF_FFFE;
const SCOPE_DATA_ARGUMENTS: u32 = 0xFFFF_FFFD;
const SCOPE_DATA_DESTRUCTION: u32 = 0xFFFF_FFFC;
// be sure to add the MAX of FirstStatementIndex if you add more constants here
#[derive(Clone, PartialEq, PartialOrd, Eq, Ord, Hash, Debug, Copy, RustcEncodable, RustcDecodable)]