Minor refactor.
This commit is contained in:
@@ -18,14 +18,14 @@ bitflags! {
|
||||
/// Exported under the `internals` feature only.
|
||||
pub struct ASTFlags: u8 {
|
||||
/// No options for the [`AST`][crate::AST] node.
|
||||
const NONE = 0b0000_0000;
|
||||
const NONE = 0b_0000_0000;
|
||||
/// The [`AST`][crate::AST] node is read-only.
|
||||
const CONSTANT = 0b0000_0001;
|
||||
const CONSTANT = 0b_0000_0001;
|
||||
/// The [`AST`][crate::AST] node is exposed to the outside (i.e. public).
|
||||
const EXPORTED = 0b0000_0010;
|
||||
const EXPORTED = 0b_0000_0010;
|
||||
/// The [`AST`][crate::AST] node is negated (i.e. whatever information is the opposite).
|
||||
const NEGATED = 0b0000_0100;
|
||||
const NEGATED = 0b_0000_0100;
|
||||
/// The [`AST`][crate::AST] node breaks out of normal control flow.
|
||||
const BREAK = 0b0000_1000;
|
||||
const BREAK = 0b_0000_1000;
|
||||
}
|
||||
}
|
||||
|
@@ -621,7 +621,7 @@ impl Stmt {
|
||||
/// upper block.
|
||||
///
|
||||
/// Currently only variable definitions (i.e. `let` and `const`), `import`/`export` statements,
|
||||
/// and `eval` calls (which may in turn call define variables) fall under this category.
|
||||
/// and `eval` calls (which may in turn define variables) fall under this category.
|
||||
#[inline]
|
||||
#[must_use]
|
||||
pub fn is_block_dependent(&self) -> bool {
|
||||
|
Reference in New Issue
Block a user