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
QQmlJSValueTypeFromStringCheck Class Reference

#include <qqmljsvaluetypefromstringcheck_p.h>

+ Collaboration diagram for QQmlJSValueTypeFromStringCheck:

Static Public Member Functions

static QQmlJSStructuredTypeError hasError (const QString &typeName, const QString &value)
 

Detailed Description

Definition at line 40 of file qqmljsvaluetypefromstringcheck_p.h.

Member Function Documentation

◆ hasError()

QQmlJSStructuredTypeError QQmlJSValueTypeFromStringCheck::hasError ( const QString & typeName,
const QString & value )
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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