GenericPass Class
class QQmlSA::GenericPass静的解析パスの基本クラス。さらに...
ヘッダー | #include <GenericPass> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
継承者 | |
ステータス | 技術プレビュー |
パブリック関数
GenericPass(QQmlSA::PassManager *manager) | |
void | emitWarning(QAnyStringView diagnostic, QQmlSA::LoggerWarningId id) |
void | emitWarning(QAnyStringView diagnostic, QQmlSA::LoggerWarningId id, QQmlSA::SourceLocation srcLocation) |
void | emitWarning(QAnyStringView diagnostic, QQmlSA::LoggerWarningId id, QQmlSA::SourceLocation srcLocation, const QQmlSA::FixSuggestion &fix) |
QQmlSA::Element | resolveAttached(QAnyStringView moduleName, QAnyStringView typeName) |
QQmlSA::Element | resolveAttachedInFileScope(QAnyStringView typeName) |
QQmlSA::Element | resolveBuiltinType(QAnyStringView typeName) const |
QString | resolveElementToId(const QQmlSA::Element &element, const QQmlSA::Element &context) |
QQmlSA::Element | resolveIdToElement(QAnyStringView id, const QQmlSA::Element &context) |
QQmlSA::Element | resolveLiteralType(const QQmlSA::Binding &binding) |
QQmlSA::Element | resolveType(QAnyStringView moduleName, QAnyStringView typeName) |
QQmlSA::Element | resolveTypeInFileScope(QAnyStringView typeName) |
QString | sourceCode(QQmlSA::SourceLocation location) |
ElementPass およびPropertyPassも参照してください 。
メンバ関数のドキュメント
GenericPass::GenericPass(QQmlSA::PassManager *manager)
汎用パスを作成する。
void GenericPass::emitWarning(QAnyStringView diagnostic, QQmlSA::LoggerWarningId id)
id 型の問題について、警告メッセージdiagnostic を発する。
void GenericPass::emitWarning(QAnyStringView diagnostic, QQmlSA::LoggerWarningId id, QQmlSA::SourceLocation srcLocation)
srcLocation にあるid タイプの問題について、警告メッセージdiagnostic を発します。
void GenericPass::emitWarning(QAnyStringView diagnostic, QQmlSA::LoggerWarningId id, QQmlSA::SourceLocation srcLocation, const QQmlSA::FixSuggestion &fix)
srcLocation にあるid タイプの問題と、fix にある修正案に関する警告メッセージdiagnostic を表示します。
QQmlSA::Element GenericPass::resolveAttached(QAnyStringView moduleName, QAnyStringView typeName)
モジュールmoduleName で定義されているtypeName の付属タイプを返す。
QQmlSA::Element GenericPass::resolveAttachedInFileScope(QAnyStringView typeName)
現在解析中のファイル内で使用されているtypeName に対応する添付タイプを返す。
QQmlSA::Element GenericPass::resolveBuiltinType(QAnyStringView typeName) const
typeName で指定された組み込み型の型を返します。組み込み型には、QMLエンジンがインポートなしで扱えるC++
型(例:QDateTime やQString)、グローバルなEcmaScriptオブジェクト(例:Number
)、およびグローバルなQtオブジェクトが含まれます。
QString GenericPass::resolveElementToId(const QQmlSA::Element &element, const QQmlSA::Element &context)
与えられたcontext のelement の id を返す。
QQmlSA::Element GenericPass::resolveIdToElement(QAnyStringView id, const QQmlSA::Element &context)
context 内の、idid を持つ要素を返す。
QQmlSA::Element GenericPass::resolveLiteralType(const QQmlSA::Binding &binding)
bindingバ イ ンデ ィ ン グが リ テ ラ ル値を含んでいない場合、 null Element が返 さ れます。
QQmlSA::Element GenericPass::resolveType(QAnyStringView moduleName, QAnyStringView typeName)
モジュールmoduleName で定義されているtypeName の型を返す。アタッチされた型とアタッチされていない型が同じ名前を共有している場合(例えば、ListView
)、アタッチされていない型に対応するElement が返される。アタッチされた型を取得するには、resolveAttached を使用します。
QQmlSA::Element GenericPass::resolveTypeInFileScope(QAnyStringView typeName)
現在解析中のファイル内のtypeName に対応するタイプを返す。
QString GenericPass::sourceCode(QQmlSA::SourceLocation location)
location 内にあるソースコードを返す。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.