The Psyche Project
Public Member Functions | List of all members
psy::FileLinePositionSpan Class Reference

The FileLinePositionSpan class. More...

#include <FileLinePositionSpan.h>

Public Member Functions

 FileLinePositionSpan (std::string path, LinePositionSpan span)
 
 FileLinePositionSpan (std::string path, const LinePosition &start, const LinePosition &end)
 
std::string path () const
 
LinePositionSpan span () const
 
LinePosition endLinePosition () const
 
LinePosition starLinePosition () const
 

Detailed Description

The FileLinePositionSpan class.

An abstraction representation of a position, in terms of line, within a file.

Note
This API is inspired by that of Microsoft.CodeAnalysis.FileLinePositionSpan from Roslyn, the .NET Compiler Platform.

Member Function Documentation

◆ endLinePosition()

LinePosition psy::FileLinePositionSpan::endLinePosition ( ) const
inline

The line position of the end of the span.

◆ path()

std::string psy::FileLinePositionSpan::path ( ) const
inline

The path of the file.

◆ span()

LinePositionSpan psy::FileLinePositionSpan::span ( ) const
inline

The line span within the file.

◆ starLinePosition()

LinePosition psy::FileLinePositionSpan::starLinePosition ( ) const
inline

The line position of the start of the span.


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