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
QQmlJS::Dom::CommentAnchor Struct Reference

#include <qqmldomcomments_p.h>

Collaboration diagram for QQmlJS::Dom::CommentAnchor:

Static Public Member Functions

static CommentAnchor from (const SourceLocation &sl)

Public Attributes

qsizetype location = -1

Friends

bool comparesEqual (const CommentAnchor &a, const CommentAnchor &b) noexcept

Detailed Description

Anchor comments at an AST::Node* (DefaultLocation) or at an QQmlJS::SourceLocation inside of the AST::Node*. In the latter case, the member location takes the value of the anchor's QQmlJS::SourceLocation::offset, so that the formatter can differentiate between multiple anchors inside the same AST::Node*.

Definition at line 83 of file qqmldomcomments_p.h.

Member Function Documentation

◆ from()

CommentAnchor QQmlJS::Dom::CommentAnchor::from ( const SourceLocation & sl)
inlinestatic

Definition at line 86 of file qqmldomcomments_p.h.

◆ comparesEqual

bool comparesEqual ( const CommentAnchor & a,
const CommentAnchor & b )
friend

Definition at line 87 of file qqmldomcomments_p.h.

Member Data Documentation

◆ location

qsizetype QQmlJS::Dom::CommentAnchor::location = -1

Definition at line 85 of file qqmldomcomments_p.h.


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