mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 02:31:13 +08:00
12 lines
351 B
Rust
12 lines
351 B
Rust
//! 括号表达式 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)
|
||
}
|
||
}
|