Authored-source location for this view. More...
#include <view.hpp>
Public Member Functions | |
| bool | valid () const |
Public Attributes | |
| std::string | file |
| Source file path (as authored). | |
| int | line = 0 |
| 1-based line; 0 = unknown. | |
| int | col = 0 |
| 1-based column; 0 = unknown. | |
Authored-source location for this view.
Populated from React's __source prop (file name + line + column) by the JS bridge's setSource() call when the view was created by the @pulp/react reconciler from a JSX element. Empty for user-authored / non-imported views.
line / col are 1-based when present, mirroring the editor URI convention; 0 means "not recorded". The inspector reads this to open the user's editor at the originating file:line via Inspector.jumpToSource.
|
inline |
| int pulp::view::View::SourceLocation::col = 0 |
1-based column; 0 = unknown.
| std::string pulp::view::View::SourceLocation::file |
Source file path (as authored).
| int pulp::view::View::SourceLocation::line = 0 |
1-based line; 0 = unknown.