Struct biome_js_parser::options::JsParserOptions
source · pub struct JsParserOptions {
pub parse_class_parameter_decorators: bool,
}Expand description
Options to pass to the JavaScript parser
Fields§
§parse_class_parameter_decorators: boolWhether the parsing of the class parameter decorators should happen.
This parameter decorators belong to the old language proposal.
Implementations§
source§impl JsParserOptions
impl JsParserOptions
pub fn with_parse_class_parameter_decorators(self) -> Self
sourcepub fn should_parse_parameter_decorators(&self) -> bool
pub fn should_parse_parameter_decorators(&self) -> bool
Should parse parameter decorators inside classes, e.g.:
class C {
post(@Param() name) {}
}
Trait Implementations§
source§impl Clone for JsParserOptions
impl Clone for JsParserOptions
source§fn clone(&self) -> JsParserOptions
fn clone(&self) -> JsParserOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for JsParserOptions
impl Debug for JsParserOptions
source§impl Default for JsParserOptions
impl Default for JsParserOptions
source§fn default() -> JsParserOptions
fn default() -> JsParserOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for JsParserOptions
impl<'de> Deserialize<'de> for JsParserOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JsParserOptions
impl RefUnwindSafe for JsParserOptions
impl Send for JsParserOptions
impl Sync for JsParserOptions
impl Unpin for JsParserOptions
impl UnwindSafe for JsParserOptions
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