Use the same way to specifiy the SCOPE_DATA_*
constants as used for the MAX
This commit is contained in:
parent
06a041cbd3
commit
3828e9e16f
1 changed files with 4 additions and 4 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue