pub struct ScriptParsedEvent { /* private fields */ }
Debugger
and Runtime
only.Expand description
Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
Implementations§
Source§impl ScriptParsedEvent
impl ScriptParsedEvent
pub fn builder() -> ScriptParsedEventBuilder
Sourcepub fn start_line(&self) -> u32
pub fn start_line(&self) -> u32
Line offset of the script within the resource with given URL (for script tags).
Sourcepub fn start_column(&self) -> u32
pub fn start_column(&self) -> u32
Column offset of the script within the resource with given URL.
Sourcepub fn end_column(&self) -> u32
pub fn end_column(&self) -> u32
Length of the last line of the script.
Sourcepub fn execution_context_id(&self) -> &ExecutionContextId
pub fn execution_context_id(&self) -> &ExecutionContextId
Specifies script creation context.
Sourcepub fn execution_context_aux_data(
&self,
) -> Option<&ScriptParsedEventExecutionContextAuxData>
pub fn execution_context_aux_data( &self, ) -> Option<&ScriptParsedEventExecutionContextAuxData>
Embedder-specific auxiliary data.
Sourcepub fn is_live_edit(&self) -> Option<&bool>
Available on crate feature experimental
only.
pub fn is_live_edit(&self) -> Option<&bool>
experimental
only.True, if this script is generated as a result of the live edit operation.
Sourcepub fn source_map_url(&self) -> Option<&String>
pub fn source_map_url(&self) -> Option<&String>
URL of source map associated with script (if any).
Sourcepub fn has_source_url(&self) -> Option<&bool>
pub fn has_source_url(&self) -> Option<&bool>
True, if this script has sourceURL.
Sourcepub fn stack_trace(&self) -> Option<&StackTrace>
Available on crate feature experimental
only.
pub fn stack_trace(&self) -> Option<&StackTrace>
experimental
only.JavaScript top stack frame of where the script parsed event was triggered if available.
Sourcepub fn code_offset(&self) -> Option<&u32>
Available on crate feature experimental
only.
pub fn code_offset(&self) -> Option<&u32>
experimental
only.If the scriptLanguage is WebAssembly, the code section offset in the module.
Sourcepub fn script_language(&self) -> Option<&ScriptLanguage>
Available on crate feature experimental
only.
pub fn script_language(&self) -> Option<&ScriptLanguage>
experimental
only.The language of the script.
Sourcepub fn debug_symbols(&self) -> Option<&DebugSymbols>
Available on crate feature experimental
only.
pub fn debug_symbols(&self) -> Option<&DebugSymbols>
experimental
only.If the scriptLanguage is WebASsembly, the source of debug symbols for the module.
Sourcepub fn embedder_name(&self) -> Option<&String>
Available on crate feature experimental
only.
pub fn embedder_name(&self) -> Option<&String>
experimental
only.The name the embedder supplied for this script.
Trait Implementations§
Source§impl Clone for ScriptParsedEvent
impl Clone for ScriptParsedEvent
Source§fn clone(&self) -> ScriptParsedEvent
fn clone(&self) -> ScriptParsedEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more