Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
IssueLocationWithContext Class Reference

#include <qqmljslogger_p.h>

Collaboration diagram for IssueLocationWithContext:

Public Member Functions

 IssueLocationWithContext (QStringView code, const QQmlJS::SourceLocation &location)
QStringView beforeText () const
QStringView issueText () const
QStringView afterText () const

Detailed Description

Used to print the line containing the location of a certain error

Definition at line 41 of file qqmljslogger_p.h.

Constructor & Destructor Documentation

◆ IssueLocationWithContext()

IssueLocationWithContext::IssueLocationWithContext ( QStringView code,
const QQmlJS::SourceLocation & location )
inline
Parameters
codeThe whole text of a translation unit
locationThe location where an error occurred.

Definition at line 49 of file qqmljslogger_p.h.

Member Function Documentation

◆ afterText()

QStringView IssueLocationWithContext::afterText ( ) const
inline

Definition at line 67 of file qqmljslogger_p.h.

◆ beforeText()

QStringView IssueLocationWithContext::beforeText ( ) const
inline

Definition at line 63 of file qqmljslogger_p.h.

◆ issueText()

QStringView IssueLocationWithContext::issueText ( ) const
inline

Definition at line 65 of file qqmljslogger_p.h.


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