pub struct SimpleExpressionNode<'a> {
pub content: CompactString,
pub is_static: bool,
pub const_type: ConstantType,
pub loc: SourceLocation,
pub js_ast: Option<JsExpression<'a>>,
pub hoisted: Option<Box<'a, JsChildNode<'a>>>,
pub identifiers: Option<Vec<'a, CompactString>>,
pub is_handler_key: bool,
pub is_ref_transformed: bool,
}Expand description
Simple expression node
Fields§
§content: CompactString§is_static: bool§const_type: ConstantType§loc: SourceLocation§js_ast: Option<JsExpression<'a>>Parsed JavaScript AST (None = simple identifier, Some = parsed expression)
hoisted: Option<Box<'a, JsChildNode<'a>>>Hoisted node reference
identifiers: Option<Vec<'a, CompactString>>Identifiers declared in this expression
is_handler_key: boolWhether this is a handler key
is_ref_transformed: boolWhether this expression has been processed for ref .value transformation
Implementations§
Source§impl<'a> SimpleExpressionNode<'a>
impl<'a> SimpleExpressionNode<'a>
pub fn new( content: impl Into<CompactString>, is_static: bool, loc: SourceLocation, ) -> SimpleExpressionNode<'a>
pub fn node_type(&self) -> NodeType
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SimpleExpressionNode<'a>
impl<'a> !RefUnwindSafe for SimpleExpressionNode<'a>
impl<'a> !Send for SimpleExpressionNode<'a>
impl<'a> !Sync for SimpleExpressionNode<'a>
impl<'a> Unpin for SimpleExpressionNode<'a>
impl<'a> UnsafeUnpin for SimpleExpressionNode<'a>
impl<'a> !UnwindSafe for SimpleExpressionNode<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more