lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.diagram.lsp.NodePosition Class Reference

Position of a node within a text document or code file. More...

Public Member Functions

int getEnd ()
 Retrieves the ending position of the node.
int getStart ()
 Retrieves the starting position of the node.
 NodePosition (int start, int end)
 Constructs a new NodePosition with the specified start and end positions.

Detailed Description

Position of a node within a text document or code file.

A position is a pair of integers representing the starting and ending line numbers.

Constructor & Destructor Documentation

◆ NodePosition()

org.lflang.diagram.lsp.NodePosition.NodePosition ( int start,
int end )

Constructs a new NodePosition with the specified start and end positions.

Parameters
startThe starting position of the node.
endThe ending position of the node.

Member Function Documentation

◆ getEnd()

int org.lflang.diagram.lsp.NodePosition.getEnd ( )

Retrieves the ending position of the node.

Returns
The ending position of the node.

◆ getStart()

int org.lflang.diagram.lsp.NodePosition.getStart ( )

Retrieves the starting position of the node.

Returns
The starting position of the node.

The documentation for this class was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/lsp/src/main/java/org/lflang/diagram/lsp/NodePosition.java