Skip to content

Commit b60dbd5

Browse files
committed
resolve the comments
1 parent 17871de commit b60dbd5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/ast/builder/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,10 @@ pub trait IRBuilder<'a, 'ctx> {
305305
fn is_main(&self, f: ValueHandle) -> bool;
306306
}
307307

308-
/// ValueHandle is an index used to map a [AnyValueEnum][inkwell::values::AnyValueEnum] inside the [LLVMBuilder].
308+
/// ValueHandle is an index used to separate the low level generatted code inside [BuilderEnum] from the respective high level ast node
309309
pub type ValueHandle = usize;
310310

311-
/// BlockHandle is an index used to map a [BasicBlock][inkwell::basic_block::BasicBlock] inside the [LLVMBuilder].
311+
/// BlockHandle is an index used to separate the low level generatted code inside [BuilderEnum] from the respective high level ast node
312312
pub type BlockHandle = usize;
313313

314314
#[allow(clippy::upper_case_acronyms)]

src/ast/ctx.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,17 @@ pub struct Ctx<'a> {
119119
/// highlight is generated only if the number is 0
120120
pub need_highlight: Arc<RefCell<usize>>,
121121

122-
/// LLVM argument: the index to mark a function element inside builder
122+
/// the index to mark a lower level code generation of function element from the builder
123123
pub function: Option<ValueHandle>,
124-
/// LLVM argument: the init function called first in main
124+
/// the init function called first in main
125125
pub init_func: Option<ValueHandle>,
126-
/// LLVM argument: current block
126+
/// current block
127127
pub block: Option<BlockHandle>,
128-
/// LLVM argument: the block to jump when continue if it's a loop statement
128+
/// the block to jump when continue if it's a loop statement
129129
pub continue_block: Option<BlockHandle>,
130-
/// LLVM argument: the block to jump to when break if it's a loop statement
130+
/// the block to jump to when break if it's a loop statement
131131
pub break_block: Option<BlockHandle>,
132-
/// LLVM argument: the block to jump to when return and value
132+
/// the block to jump to when return and value
133133
pub return_block: Option<(BlockHandle, Option<ValueHandle>)>,
134134

135135
/// diagnose tries to hold all warning and as many as possible errors

0 commit comments

Comments
 (0)