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>.
|
#include <qqmljsvaluetypefromstringcheck_p.h>
Static Public Member Functions | |
static QQmlJSStructuredTypeError | hasError (const QString &typeName, const QString &value) |
Definition at line 40 of file qqmljsvaluetypefromstringcheck_p.h.
|
static |
Checks if known value types are being constructed in a deprecated way, and constructs the code for the fix-it.
Definition at line 28 of file qqmljsvaluetypefromstringcheck.cpp.
References QQmlJSStructuredTypeError::fromSuggestedString(), QQmlStringConverters::isValidNumberString(), typeName, QQmlJSStructuredTypeError::withInvalidString(), and QQmlJSStructuredTypeError::withValidString().
Referenced by QQmlJSLiteralBindingCheck::check().