Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Public Member Functions | |
QmlSignatureParser (FunctionNode *func, const QString &signature, const Location &loc) | |
void | readToken () |
QString | lexeme () |
QString | previousLexeme () |
bool | match (int target) |
If the current token matches target, read the next token and return true. | |
bool | matchTypeAndName (CodeChunk *type, QString *var) |
Parse a QML data type into type and an optional variable name into var. | |
bool | matchParameter () |
bool | matchFunctionDecl () |
QmlSignatureParser (FunctionNode *func, const QString &signature, const Location &loc) | |
void | readToken () |
QString | lexeme () |
QString | previousLexeme () |
bool | match (int target) |
bool | matchTypeAndName (CodeChunk *type, QString *var) |
bool | matchParameter () |
bool | matchFunctionDecl () |
Definition at line 73 of file qmlvisitor.cpp.
QmlSignatureParser::QmlSignatureParser | ( | FunctionNode * | func, |
const QString & | signature, | ||
const Location & | loc ) |
Definition at line 189 of file qmlvisitor.cpp.
References QmlSignatureParser(), matchFunctionDecl(), readToken(), and Tokenizer::setParsingFnOrMacro().
Referenced by QmlSignatureParser().
QmlSignatureParser::QmlSignatureParser | ( | FunctionNode * | func, |
const QString & | signature, | ||
const Location & | loc ) |
|
inline |
Definition at line 78 of file qmlvisitor.cpp.
References Tokenizer::lexeme().
|
inline |
Definition at line 78 of file qmlvisitor.cpp.
bool QmlSignatureParser::match | ( | int | target | ) |
If the current token matches target, read the next token and return true.
Otherwise, don't read the next token, and return false.
Definition at line 206 of file qmlvisitor.cpp.
References readToken().
Referenced by matchFunctionDecl(), matchParameter(), and matchTypeAndName().
bool QmlSignatureParser::match | ( | int | target | ) |
bool QmlSignatureParser::matchFunctionDecl | ( | ) |
Definition at line 304 of file qmlvisitor.cpp.
References Parameters::clear(), match(), matchParameter(), matchTypeAndName(), FunctionNode::parameters(), readToken(), Node< _Tp >::setLocation(), Tok_Comma, Tok_Gulbrandsen, Tok_Ident, Tok_LeftParen, and Tok_RightParen.
Referenced by QmlSignatureParser().
bool QmlSignatureParser::matchFunctionDecl | ( | ) |
bool QmlSignatureParser::matchParameter | ( | ) |
Definition at line 277 of file qmlvisitor.cpp.
References match(), matchTypeAndName(), FunctionNode::parameters(), Tokenizer::parenDepth(), readToken(), Tok_Comma, Tok_Eoi, and Tok_Equal.
Referenced by matchFunctionDecl().
bool QmlSignatureParser::matchParameter | ( | ) |
Parse a QML data type into type and an optional variable name into var.
Definition at line 219 of file qmlvisitor.cpp.
References Tokenizer::bracketDepth(), match(), readToken(), Tok_char, Tok_double, Tok_Ellipsis, Tok_Eoi, Tok_Gulbrandsen, Tok_Ident, Tok_int, Tok_int64, Tok_LeftBracket, Tok_long, Tok_RightBracket, Tok_short, Tok_signed, Tok_unsigned, and Tok_void.
Referenced by matchFunctionDecl(), and matchParameter().
|
inline |
Definition at line 79 of file qmlvisitor.cpp.
References Tokenizer::previousLexeme().
|
inline |
Definition at line 79 of file qmlvisitor.cpp.
|
inline |
Definition at line 77 of file qmlvisitor.cpp.
References Tokenizer::getToken().
Referenced by QmlSignatureParser(), match(), matchFunctionDecl(), matchParameter(), and matchTypeAndName().
|
inline |
Definition at line 77 of file qmlvisitor.cpp.