DiagnosticsSourceLocation object

Object that represents the line, column, and file of a style's location in the original source.

Note  These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.

 

 

Syntax

var sourceLocation = DiagnosticsStyles.getSourceLocation(element.style);

DOM Information

Inheritance Hierarchy

The DiagnosticsSourceLocation does not inherit from any class or interface.

Members

The DiagnosticsSourceLocation object has these types of members:

  • Properties

Properties

The DiagnosticsSourceLocation object has these properties.

Property Access type Description

column

Read-only

Returns the column number, or character position of the location in the source file.

fileURI

Read-only

Returns the file URI or path for a source file.

line

Read-only

Returns the line number portion of the location in the source file.