undoStudio
The IDE of the undoRT ecosystem
Loading...
Searching...
No Matches
undoApp::ST::SourceSegment Struct Reference

One editor-backed block of the generated ST file. More...

#include <undoAppST.hpp>

Collaboration diagram for undoApp::ST::SourceSegment:
Collaboration graph

Public Attributes

int fullStart = 0
 First line of the block in the generated file.
 
int fullEnd = 0
 Last line of the block (inclusive)
 
bool isVariables = false
 True for a VAR* block, false for a body block.
 
std::string methodName
 Empty for the POU itself, else the owning METHOD.
 

Detailed Description

One editor-backed block of the generated ST file.

Lines are 1-based and inclusive, matching the line numbers st2cpp reports in its AST nodes and diagnostics. The owning editor's line is fullLine - fullStart + 1.

Member Data Documentation

◆ fullEnd

int undoApp::ST::SourceSegment::fullEnd = 0

Last line of the block (inclusive)

◆ fullStart

int undoApp::ST::SourceSegment::fullStart = 0

First line of the block in the generated file.

◆ isVariables

bool undoApp::ST::SourceSegment::isVariables = false

True for a VAR* block, false for a body block.

◆ methodName

std::string undoApp::ST::SourceSegment::methodName

Empty for the POU itself, else the owning METHOD.


The documentation for this struct was generated from the following file: