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

One declaration that a usage can be navigated back to. More...

#include <undoAppSTSemantic.hpp>

Collaboration diagram for undoApp::ST::Declaration:
Collaboration graph

Public Attributes

int line = 0
 Line of the declared name.
 
int col = 0
 Column of the first character of the name.
 
std::string name
 Identifier as spelled in the source.
 
int ownerLine = 0
 For a METHOD parameter: the line of its METHOD.
 
std::string scope
 Empty for POU level, else the owning METHOD name.
 
SymCategory category = SymCategory::Unresolved
 
std::string typeText
 Declared or return type, when known.
 
std::string kindText
 "VAR", "METHOD", "FUNCTION_BLOCK", ... for display
 

Detailed Description

One declaration that a usage can be navigated back to.

Positions use the same coordinates as SemanticToken: 1-based lines in the generated file, 0-based columns.

Member Data Documentation

◆ category

SymCategory undoApp::ST::Declaration::category = SymCategory::Unresolved

◆ col

int undoApp::ST::Declaration::col = 0

Column of the first character of the name.

◆ kindText

std::string undoApp::ST::Declaration::kindText

"VAR", "METHOD", "FUNCTION_BLOCK", ... for display

◆ line

int undoApp::ST::Declaration::line = 0

Line of the declared name.

◆ name

std::string undoApp::ST::Declaration::name

Identifier as spelled in the source.

◆ ownerLine

int undoApp::ST::Declaration::ownerLine = 0

For a METHOD parameter: the line of its METHOD.

◆ scope

std::string undoApp::ST::Declaration::scope

Empty for POU level, else the owning METHOD name.

◆ typeText

std::string undoApp::ST::Declaration::typeText

Declared or return type, when known.


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