breakpointPositions.js |
Helper function which consumes breakpoints positions sent by the server
and map them to location objects.
During this process, the SourceMapLoader will be queried to map the positions from generated to original locations.
@param {Object} breakpointPositions
The positions to map related to the generated source:
{
1: [ 2, 6 ], // Line 1 is breakable on column 2 and 6
2: [ 2 ], // Line 2 is only breakable on column 2
}
@param {Object} generatedSource
@param {Object} location
The current location we are computing breakable positions.
@param {Object} thunk arguments
@return {Object}
The mapped breakable locations in the original source:
{
1: [ { source, line: 1, column: 2} , { source, line: 1, column 6 } ], // Line 1 is not mapped as location are same as breakpointPositions.
10: [ { source, line: 10, column: 28 } ], // Line 2 is mapped and locations and line key refers to the original source positions.
}
|
12251 |
index.js |
Redux actions for breakpoints
@module actions/breakpoints
|
11158 |
modify.js |
|
11229 |
moz.build |
|
347 |
syncBreakpoint.js |
|
4864 |
tests |
|
|