QQmlSA::GenericPass Class
class QQmlSA::GenericPass静的解析パス用の基底クラス。詳細...
| ヘッダー: | #include <qqmlsa.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS QmlCompiler) target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler) |
| 継承元: | |
| ステータス: | テクノロジープレビュー |
このクラスはテクノロジープレビュー段階にあり、変更される可能性があります。
パブリック関数
| GenericPass(QQmlSA::PassManager *manager) | |
| virtual | ~GenericPass() |
| 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)
汎用パスを生成します。
[virtual noexcept] GenericPass::~GenericPass()
GenericPass インスタンスを破棄します。
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 の問題について、警告メッセージdiagnostic が表示され、推奨される修正方法としてfix が提示されています。
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 C++ QDateTime QString Number
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 内の、id がid である要素を返します。
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 にあるソースコードを返します。
© 2026 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.