Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 40 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 48 of file qqmljslogger_p.h.

References QString::indexOf(), QString::lastIndexOf(), QString::mid(), and qMax().

+ Here is the call graph for this function:

Member Function Documentation

◆ afterText()

QStringView IssueLocationWithContext::afterText ( ) const
inline

Definition at line 66 of file qqmljslogger_p.h.

◆ beforeText()

QStringView IssueLocationWithContext::beforeText ( ) const
inline

Definition at line 62 of file qqmljslogger_p.h.

◆ issueText()

QStringView IssueLocationWithContext::issueText ( ) const
inline

Definition at line 64 of file qqmljslogger_p.h.


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