Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::View::SourceLocation Struct Reference

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.

Detailed Description

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.

Member Function Documentation

◆ valid()

bool pulp::view::View::SourceLocation::valid ( ) const
inline

Member Data Documentation

◆ col

int pulp::view::View::SourceLocation::col = 0

1-based column; 0 = unknown.

◆ file

std::string pulp::view::View::SourceLocation::file

Source file path (as authored).

◆ line

int pulp::view::View::SourceLocation::line = 0

1-based line; 0 = unknown.


The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/view/include/pulp/view/view.hpp