pub struct ScriptParsedEventBuilder { /* private fields */ }
Available on crate features
Debugger
and Runtime
only.Implementations§
Source§impl ScriptParsedEventBuilder
impl ScriptParsedEventBuilder
Sourcepub fn start_line(&mut self, v: u32) -> &mut Self
pub fn start_line(&mut self, v: u32) -> &mut Self
Line offset of the script within the resource with given URL (for script tags).
Sourcepub fn start_column(&mut self, v: u32) -> &mut Self
pub fn start_column(&mut self, v: u32) -> &mut Self
Column offset of the script within the resource with given URL.
Sourcepub fn end_column(&mut self, v: u32) -> &mut Self
pub fn end_column(&mut self, v: u32) -> &mut Self
Length of the last line of the script.
Sourcepub fn execution_context_id(&mut self, v: ExecutionContextId) -> &mut Self
pub fn execution_context_id(&mut self, v: ExecutionContextId) -> &mut Self
Specifies script creation context.
Sourcepub fn execution_context_aux_data(
&mut self,
v: ScriptParsedEventExecutionContextAuxData,
) -> &mut Self
pub fn execution_context_aux_data( &mut self, v: ScriptParsedEventExecutionContextAuxData, ) -> &mut Self
Embedder-specific auxiliary data.
Sourcepub fn is_live_edit(&mut self, v: bool) -> &mut Self
Available on crate feature experimental
only.
pub fn is_live_edit(&mut self, v: bool) -> &mut Self
experimental
only.True, if this script is generated as a result of the live edit operation.
Sourcepub fn source_map_url(&mut self, v: String) -> &mut Self
pub fn source_map_url(&mut self, v: String) -> &mut Self
URL of source map associated with script (if any).
Sourcepub fn has_source_url(&mut self, v: bool) -> &mut Self
pub fn has_source_url(&mut self, v: bool) -> &mut Self
True, if this script has sourceURL.
Sourcepub fn stack_trace(&mut self, v: StackTrace) -> &mut Self
Available on crate feature experimental
only.
pub fn stack_trace(&mut self, v: StackTrace) -> &mut Self
experimental
only.JavaScript top stack frame of where the script parsed event was triggered if available.
Sourcepub fn code_offset(&mut self, v: u32) -> &mut Self
Available on crate feature experimental
only.
pub fn code_offset(&mut self, v: u32) -> &mut Self
experimental
only.If the scriptLanguage is WebAssembly, the code section offset in the module.
Sourcepub fn script_language(&mut self, v: ScriptLanguage) -> &mut Self
Available on crate feature experimental
only.
pub fn script_language(&mut self, v: ScriptLanguage) -> &mut Self
experimental
only.The language of the script.
Sourcepub fn debug_symbols(&mut self, v: DebugSymbols) -> &mut Self
Available on crate feature experimental
only.
pub fn debug_symbols(&mut self, v: DebugSymbols) -> &mut Self
experimental
only.If the scriptLanguage is WebASsembly, the source of debug symbols for the module.
Sourcepub fn embedder_name(&mut self, v: String) -> &mut Self
Available on crate feature experimental
only.
pub fn embedder_name(&mut self, v: String) -> &mut Self
experimental
only.The name the embedder supplied for this script.
pub fn build(&mut self) -> Result<ScriptParsedEvent, &'static str>
Trait Implementations§
Source§impl Clone for ScriptParsedEventBuilder
impl Clone for ScriptParsedEventBuilder
Source§fn clone(&self) -> ScriptParsedEventBuilder
fn clone(&self) -> ScriptParsedEventBuilder
Returns a duplicate 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 ScriptParsedEventBuilder
impl Debug for ScriptParsedEventBuilder
Auto Trait Implementations§
impl Freeze for ScriptParsedEventBuilder
impl RefUnwindSafe for ScriptParsedEventBuilder
impl Send for ScriptParsedEventBuilder
impl Sync for ScriptParsedEventBuilder
impl Unpin for ScriptParsedEventBuilder
impl UnwindSafe for ScriptParsedEventBuilder
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