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
QQmlSA::DocumentEdit Class Reference

\inmodule QtQmlCompiler More...

#include <qqmlsa.h>

Collaboration diagram for QQmlSA::DocumentEdit:

Public Member Functions

 DocumentEdit (const QString &filename, const SourceLocation &location, const QString &replacement)
 Creates a DocumentEdit object.
 DocumentEdit (const DocumentEdit &)
 Creates a copy of other.
 DocumentEdit (DocumentEdit &&)
 Move-constructs a DocumentEdit instance.
DocumentEditoperator= (const DocumentEdit &)
 Assigns other to this DocumentEdit instance.
DocumentEditoperator= (DocumentEdit &&)
 Move-assigns other to this DocumentEdit instance.
 ~DocumentEdit ()
 Destroys the DocumentEdit instance.
QString filename () const
 Returns the file this edit applies to.
SourceLocation location () const
 Returns the location where the edit applies.
QString replacement () const
 Returns the replacement string of the edit.

Friends

bool comparesEqual (const DocumentEdit &self, const DocumentEdit &other) noexcept

Detailed Description

\inmodule QtQmlCompiler

Represents a single edit to a document.

Definition at line 377 of file qqmlsa.h.

Constructor & Destructor Documentation

◆ DocumentEdit() [1/3]

QQmlSA::DocumentEdit::DocumentEdit ( const QString & filename,
const SourceLocation & location,
const QString & replacement )

Creates a DocumentEdit object.

Definition at line 2049 of file qqmlsa.cpp.

◆ DocumentEdit() [2/3]

QQmlSA::DocumentEdit::DocumentEdit ( const DocumentEdit & other)

Creates a copy of other.

Definition at line 2058 of file qqmlsa.cpp.

◆ DocumentEdit() [3/3]

QQmlSA::DocumentEdit::DocumentEdit ( DocumentEdit && other)

Move-constructs a DocumentEdit instance.

Definition at line 2066 of file qqmlsa.cpp.

◆ ~DocumentEdit()

QQmlSA::DocumentEdit::~DocumentEdit ( )
default

Destroys the DocumentEdit instance.

Member Function Documentation

◆ filename()

QString QQmlSA::DocumentEdit::filename ( ) const

Returns the file this edit applies to.

Definition at line 2105 of file qqmlsa.cpp.

◆ location()

SourceLocation QQmlSA::DocumentEdit::location ( ) const

Returns the location where the edit applies.

Definition at line 2114 of file qqmlsa.cpp.

◆ operator=() [1/2]

DocumentEdit & QQmlSA::DocumentEdit::operator= ( const DocumentEdit & other)

Assigns other to this DocumentEdit instance.

Definition at line 2074 of file qqmlsa.cpp.

◆ operator=() [2/2]

DocumentEdit & QQmlSA::DocumentEdit::operator= ( DocumentEdit && other)

Move-assigns other to this DocumentEdit instance.

Definition at line 2087 of file qqmlsa.cpp.

◆ replacement()

QString QQmlSA::DocumentEdit::replacement ( ) const

Returns the replacement string of the edit.

Definition at line 2123 of file qqmlsa.cpp.

◆ comparesEqual

bool comparesEqual ( const DocumentEdit & self,
const DocumentEdit & other )
friend

Definition at line 396 of file qqmlsa.h.


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