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
QQmlJS::Dom::FileToLoad Class Reference

#include <qqmldomitem_p.h>

+ Collaboration diagram for QQmlJS::Dom::FileToLoad:

Classes

struct  InMemoryContents
 

Public Member Functions

 FileToLoad (const std::weak_ptr< DomEnvironment > &environment, const QString &canonicalPath, const QString &logicalPath, const std::optional< InMemoryContents > &content)
 
 FileToLoad ()=default
 
std::weak_ptr< DomEnvironmentenvironment () const
 
QString canonicalPath () const
 
QString logicalPath () const
 
std::optional< InMemoryContentscontent () const
 

Static Public Member Functions

static FileToLoad fromMemory (const std::weak_ptr< DomEnvironment > &environment, const QString &path, const QString &data)
 
static FileToLoad fromFileSystem (const std::weak_ptr< DomEnvironment > &environment, const QString &canonicalPath)
 

Detailed Description

Definition at line 862 of file qqmldomitem_p.h.

Constructor & Destructor Documentation

◆ FileToLoad() [1/2]

QQmlJS::Dom::FileToLoad::FileToLoad ( const std::weak_ptr< DomEnvironment > & environment,
const QString & canonicalPath,
const QString & logicalPath,
const std::optional< InMemoryContents > & content )

◆ FileToLoad() [2/2]

QQmlJS::Dom::FileToLoad::FileToLoad ( )
default

Member Function Documentation

◆ canonicalPath()

QString QQmlJS::Dom::FileToLoad::canonicalPath ( ) const
inline

Definition at line 881 of file qqmldomitem_p.h.

◆ content()

std::optional< InMemoryContents > QQmlJS::Dom::FileToLoad::content ( ) const
inline

Definition at line 883 of file qqmldomitem_p.h.

◆ environment()

std::weak_ptr< DomEnvironment > QQmlJS::Dom::FileToLoad::environment ( ) const
inline

Definition at line 880 of file qqmldomitem_p.h.

◆ fromFileSystem()

static FileToLoad QQmlJS::Dom::FileToLoad::fromFileSystem ( const std::weak_ptr< DomEnvironment > & environment,
const QString & canonicalPath )
static

Referenced by QQmlJS::Dom::LoadInfo::advanceLoad(), QQmlJS::Dom::QQmlDomAstCreator::visit(), and QQmlJS::Dom::QQmlDomAstCreator::visit().

+ Here is the caller graph for this function:

◆ fromMemory()

static FileToLoad QQmlJS::Dom::FileToLoad::fromMemory ( const std::weak_ptr< DomEnvironment > & environment,
const QString & path,
const QString & data )
static

Referenced by QmlLsp::QQmlCodeModel::newDocForOpenFile(), and CompletionRequest::patchInvalidFileForParser().

+ Here is the caller graph for this function:

◆ logicalPath()

QString QQmlJS::Dom::FileToLoad::logicalPath ( ) const
inline

Definition at line 882 of file qqmldomitem_p.h.


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