Normalize passes keep spans and clean warnings
This commit is contained in:
@ -213,6 +213,8 @@ impl super::MirBuilder {
|
||||
/// - While/ForRange は将来 Loop lowering へ委譲する拡張ポイントとして扱い、
|
||||
/// 現状は他の専用ビルダ/既存パスと同様に build_expression に委譲する。
|
||||
pub(super) fn build_statement(&mut self, node: ASTNode) -> Result<ValueId, String> {
|
||||
// Align current_span to this statement node before lowering expressions under it.
|
||||
self.current_span = node.span();
|
||||
match node {
|
||||
// 将来ここに While / ForRange / Match / Using など statement 専用分岐を追加する。
|
||||
other => self.build_expression(other),
|
||||
|
||||
Reference in New Issue
Block a user