Files
OxideJS-New/crates/oxide_emit/src/expr/parenthesized.rs
T
2026-08-05 21:46:47 +08:00

12 lines
351 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//! 括号表达式 emit:`emit_parenthesized_expression` 透传内层表达式。
use crate::{CompileCtx, Emitter};
impl Emitter {
pub(crate) fn emit_parenthesized_expression(
&self, p: &oxide_parser::ParenthesizedExpression, ctx: &mut CompileCtx,
) -> Result<u8, String> {
self.emit_expression(&p.expression, ctx)
}
}