42 #ifndef QDECLARATIVEJSAST_P_H 43 #define QDECLARATIVEJSAST_P_H 56 #include "private/qdeclarativejsastvisitor_p.h" 57 #include "private/qdeclarativejsglobal_p.h" 59 #include <QtCore/QString> 63 #define QDECLARATIVEJS_DECLARE_AST_NODE(name) \ 64 enum { K = Kind_##name }; 113 template <
typename _T1,
typename _T2>
116 if (ast && ast->kind == static_cast<_T1>(0)->K)
117 return static_cast<_T1
>(ast);
225 : kind(Kind_Undefined) {}
241 {
return accept(node, visitor); }
243 virtual void accept0(
Visitor *visitor) = 0;
277 : name(name), alias(alias)
286 virtual void accept0(
Visitor *visitor);
302 : formal(formal), next(this) {}
307 next = previous->
next;
308 previous->
next =
this;
324 virtual void accept0(
Visitor *visitor);
346 virtual void accept0(
Visitor *visitor);
360 : expression(expression)
363 virtual void accept0(
Visitor *visitor);
366 {
return lparenToken; }
369 {
return rparenToken; }
384 virtual void accept0(
Visitor *visitor);
387 {
return thisToken; }
390 {
return thisToken; }
402 name (n) { kind = K; }
404 virtual void accept0(
Visitor *visitor);
407 {
return identifierToken; }
410 {
return identifierToken; }
424 virtual void accept0(
Visitor *visitor);
427 {
return nullToken; }
430 {
return nullToken; }
443 virtual void accept0(
Visitor *visitor);
446 {
return trueToken; }
449 {
return trueToken; }
462 virtual void accept0(
Visitor *visitor);
465 {
return falseToken; }
468 {
return falseToken; }
480 value(v) { kind = K; }
482 virtual void accept0(
Visitor *visitor);
485 {
return literalToken; }
488 {
return literalToken; }
501 value (v) { kind = K; }
503 virtual void accept0(
Visitor *visitor);
506 {
return literalToken; }
509 {
return literalToken; }
522 pattern (p), flags (f) { kind = K; }
524 virtual void accept0(
Visitor *visitor);
527 {
return literalToken; }
530 {
return literalToken; }
555 virtual void accept0(
Visitor *visitor);
558 {
return lbracketToken; }
561 {
return rbracketToken; }
582 virtual void accept0(
Visitor *visitor);
585 {
return lbraceToken; }
588 {
return rbraceToken; }
602 elision (e), expression (expr), next (this)
606 elision (e), expression (expr)
609 next = previous->
next;
610 previous->
next =
this;
620 virtual void accept0(
Visitor *visitor);
635 next (this) { kind = K; }
640 next = previous->
next;
641 previous->
next =
this;
644 virtual void accept0(
Visitor *visitor);
664 name (n), value (v), next (this)
671 next = previous->
next;
672 previous->
next =
this;
675 virtual void accept0(
Visitor *visitor);
711 virtual void accept0(
Visitor *visitor);
725 virtual void accept0(
Visitor *visitor);
739 virtual void accept0(
Visitor *visitor);
751 base (b), expression (e)
754 virtual void accept0(
Visitor *visitor);
757 {
return base->firstSourceLocation(); }
760 {
return rbracketToken; }
778 virtual void accept0(
Visitor *visitor);
784 {
return identifierToken; }
799 base (b), arguments (
a)
802 virtual void accept0(
Visitor *visitor);
808 {
return rparenToken; }
824 expression (e) { kind = K; }
826 virtual void accept0(
Visitor *visitor);
845 base (b), arguments (
a)
848 virtual void accept0(
Visitor *visitor);
854 {
return rparenToken; }
869 expression (e), next (this)
876 next = previous->
next;
877 previous->
next =
this;
880 virtual void accept0(
Visitor *visitor);
901 base (b) { kind = K; }
903 virtual void accept0(
Visitor *visitor);
909 {
return incrementToken; }
922 base (b) { kind = K; }
924 virtual void accept0(
Visitor *visitor);
930 {
return decrementToken; }
943 expression (e) { kind = K; }
945 virtual void accept0(
Visitor *visitor);
948 {
return deleteToken; }
964 expression (e) { kind = K; }
966 virtual void accept0(
Visitor *visitor);
969 {
return voidToken; }
985 expression (e) { kind = K; }
987 virtual void accept0(
Visitor *visitor);
990 {
return typeofToken; }
1006 expression (e) { kind = K; }
1008 virtual void accept0(
Visitor *visitor);
1011 {
return incrementToken; }
1027 expression (e) { kind = K; }
1029 virtual void accept0(
Visitor *visitor);
1032 {
return decrementToken; }
1048 expression (e) { kind = K; }
1050 virtual void accept0(
Visitor *visitor);
1053 {
return plusToken; }
1069 expression (e) { kind = K; }
1071 virtual void accept0(
Visitor *visitor);
1074 {
return minusToken; }
1090 expression (e) { kind = K; }
1092 virtual void accept0(
Visitor *visitor);
1095 {
return tildeToken; }
1111 expression (e) { kind = K; }
1113 virtual void accept0(
Visitor *visitor);
1116 {
return notToken; }
1137 virtual void accept0(
Visitor *visitor);
1140 {
return left->firstSourceLocation(); }
1143 {
return right->lastSourceLocation(); }
1158 expression (e), ok (t), ko (f)
1161 virtual void accept0(
Visitor *visitor);
1167 {
return ko->lastSourceLocation(); }
1183 left (l), right (r) { kind = K; }
1185 virtual void accept0(
Visitor *visitor);
1205 statements (slist) { kind = K; }
1207 virtual void accept0(
Visitor *visitor);
1210 {
return lbraceToken; }
1213 {
return rbraceToken; }
1227 statement (stmt), next (this)
1234 next = previous->
next;
1235 previous->
next =
this;
1238 virtual void accept0(
Visitor *visitor);
1261 virtual void accept0(
Visitor *visitor);
1264 {
return declarationKindToken; }
1267 {
return semicolonToken; }
1281 name (n), expression (e), readOnly(false)
1284 virtual void accept0(
Visitor *visitor);
1299 declaration (decl), next (this)
1306 next = previous->
next;
1307 previous->
next =
this;
1310 virtual void accept0(
Visitor *visitor);
1318 for (vdl = front; vdl != 0; vdl = vdl->
next)
1337 virtual void accept0(
Visitor *visitor);
1340 {
return semicolonToken; }
1343 {
return semicolonToken; }
1355 expression (e) { kind = K; }
1357 virtual void accept0(
Visitor *visitor);
1363 {
return semicolonToken; }
1376 expression (e), ok (t), ko (f)
1379 virtual void accept0(
Visitor *visitor);
1408 statement (stmt), expression (e)
1411 virtual void accept0(
Visitor *visitor);
1417 {
return semicolonToken; }
1435 expression (e), statement (stmt)
1438 virtual void accept0(
Visitor *visitor);
1441 {
return whileToken; }
1460 initialiser (i), condition (c), expression (e), statement (stmt)
1463 virtual void accept0(
Visitor *visitor);
1466 {
return forToken; }
1489 declarations (vlist), condition (c), expression (e), statement (stmt)
1492 virtual void accept0(
Visitor *visitor);
1495 {
return forToken; }
1519 initialiser (i), expression (e), statement (stmt)
1522 virtual void accept0(
Visitor *visitor);
1525 {
return forToken; }
1546 declaration (v), expression (e), statement (stmt)
1549 virtual void accept0(
Visitor *visitor);
1552 {
return forToken; }
1574 label (
l) { kind = K; }
1576 virtual void accept0(
Visitor *visitor);
1579 {
return continueToken; }
1582 {
return semicolonToken; }
1597 label (
l) { kind = K; }
1599 virtual void accept0(
Visitor *visitor);
1602 {
return breakToken; }
1605 {
return semicolonToken; }
1620 expression (e) { kind = K; }
1622 virtual void accept0(
Visitor *visitor);
1625 {
return returnToken; }
1628 {
return semicolonToken; }
1642 expression (e), statement (stmt)
1645 virtual void accept0(
Visitor *visitor);
1648 {
return withToken; }
1667 clauses (c), defaultClause (d), moreClauses (r)
1670 virtual void accept0(
Visitor *visitor);
1686 expression (e), block (b)
1689 virtual void accept0(
Visitor *visitor);
1692 {
return switchToken; }
1695 {
return block->rbraceToken; }
1711 clause (
c), next (this)
1718 next = previous->
next;
1719 previous->
next =
this;
1722 virtual void accept0(
Visitor *visitor);
1742 expression (e), statements (slist)
1745 virtual void accept0(
Visitor *visitor);
1763 virtual void accept0(
Visitor *visitor);
1777 label (l), statement (stmt)
1780 virtual void accept0(
Visitor *visitor);
1783 {
return identifierToken; }
1801 expression (e) { kind = K; }
1803 virtual void accept0(
Visitor *visitor);
1806 {
return throwToken; }
1809 {
return semicolonToken; }
1823 name (n), statement (stmt)
1826 virtual void accept0(
Visitor *visitor);
1846 virtual void accept0(
Visitor *visitor);
1859 statement (stmt), catchExpression (c), finallyExpression (f)
1863 statement (stmt), catchExpression (0), finallyExpression (f)
1867 statement (stmt), catchExpression (c), finallyExpression (0)
1870 virtual void accept0(
Visitor *visitor);
1873 {
return tryToken; }
1877 if (finallyExpression)
1878 return finallyExpression->statement->rbraceToken;
1879 else if (catchExpression)
1880 return catchExpression->statement->rbraceToken;
1898 name (n), formals (f), body (b)
1901 virtual void accept0(
Visitor *visitor);
1904 {
return functionToken; }
1907 {
return rbraceToken; }
1930 virtual void accept0(
Visitor *visitor);
1939 name (n), next (this)
1946 next = previous->
next;
1947 previous->
next =
this;
1950 virtual void accept0(
Visitor *visitor);
1975 virtual void accept0(
Visitor *visitor);
1990 virtual void accept0(
Visitor *visitor);
2002 element (elt), next (this)
2009 next = previous->
next;
2010 previous->
next =
this;
2013 virtual void accept0(
Visitor *visitor);
2045 virtual void accept0(
Visitor *visitor);
2060 virtual void accept0(
Visitor *visitor);
2074 virtual void accept0(
Visitor *visitor);
2077 {
return debuggerToken; }
2080 {
return semicolonToken; }
2093 : imports(imports), members(members)
2096 virtual void accept0(
Visitor *visitor);
2109 : next(this), name(name)
2116 next = previous->
next;
2117 previous->
next =
this;
2127 virtual void accept0(
Visitor *visitor);
2145 :
fileName(0), importUri(uri), importId(0)
2149 {
return importToken; }
2152 {
return semicolonToken; }
2154 virtual void accept0(
Visitor *visitor);
2182 next = previous->
next;
2183 previous->
next =
this;
2188 if (
import)
return import->firstSourceLocation();
2195 if (!
it->next &&
it->import)
2196 return it->import->lastSourceLocation();
2208 virtual void accept0(
Visitor *visitor);
2230 : next(this), member(member)
2237 next = previous->
next;
2238 previous->
next =
this;
2241 virtual void accept0(
Visitor *visitor);
2261 : next(this), member(member)
2268 next = previous->
next;
2269 previous->
next =
this;
2272 virtual void accept0(
Visitor *visitor);
2296 virtual void accept0(
Visitor *visitor);
2310 type (t), name (n), next (this)
2317 next = previous->
next;
2318 previous->
next =
this;
2345 : type(
Property), typeModifier(0), memberType(memberType), name(name), expression(0), binding(0), isDefaultMember(false), isReadonlyMember(false), parameters(0)
2351 : type(
Property), typeModifier(0), memberType(memberType), name(name), expression(expression), binding(0), isDefaultMember(false), isReadonlyMember(false), parameters(0)
2357 return defaultToken;
2358 else if (readonlyToken.isValid())
2359 return readonlyToken;
2361 return propertyToken;
2367 return binding->lastSourceLocation();
2369 return semicolonToken;
2372 virtual void accept0(
Visitor *visitor);
2401 : qualifiedTypeNameId(qualifiedTypeNameId), initializer(initializer)
2405 {
return qualifiedTypeNameId->identifierToken; }
2408 {
return initializer->rbraceToken; }
2410 virtual void accept0(
Visitor *visitor);
2423 : sourceElement(sourceElement)
2429 return funDecl->firstSourceLocation();
2431 return varStmt->firstSourceLocation();
2439 return funDecl->lastSourceLocation();
2441 return varStmt->lastSourceLocation();
2447 virtual void accept0(
Visitor *visitor);
2461 : qualifiedId(qualifiedId),
2462 qualifiedTypeNameId(qualifiedTypeNameId),
2463 initializer(initializer),
2469 if (hasOnToken && qualifiedTypeNameId)
2472 return qualifiedId->identifierToken;
2478 virtual void accept0(
Visitor *visitor);
2495 : qualifiedId(qualifiedId),
2496 statement(statement)
2505 virtual void accept0(
Visitor *visitor);
2520 : qualifiedId(qualifiedId),
2528 {
return rbracketToken; }
2530 virtual void accept0(
Visitor *visitor);
virtual SourceLocation firstSourceLocation() const
ObjectLiteral(PropertyNameAndValueList *plist)
ExpressionNode * expression
ExpressionNode * expression
SourceLocation identifierToken
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation firstSourceLocation() const
SourceLocation rparenToken
virtual SourceLocation firstSourceLocation() const
SourceLocation lbracketToken
virtual SourceLocation lastSourceLocation() const
SourceLocation lparenToken
virtual SourceLocation firstSourceLocation() const
SourceLocation rparenToken
SourceLocation commaToken
virtual SourceLocation firstSourceLocation() const
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation lastSourceLocation() const
VariableDeclarationList * declarations
UiArrayMemberList * finish()
UiObjectMemberList * next
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation firstSourceLocation() const
SourceLocation literalToken
virtual SourceLocation firstSourceLocation() const
UiImportList(UiImportList *previous, UiImport *import)
ExpressionNode * condition
StatementList * statements
SourceLocation falseToken
SourceLocation decrementToken
virtual SourceLocation firstSourceLocation() const
virtual SourceLocation firstSourceLocation() const
SourceElements * elements
SourceLocation rbraceToken
SourceLocation rparenToken
virtual SourceLocation firstSourceLocation() const
ExpressionNode * expression
virtual SourceLocation firstSourceLocation() const
virtual SourceLocation lastSourceLocation() const
UiArrayMemberList(UiArrayMemberList *previous, UiObjectMember *member)
#define it(className, varName)
SourceLocation identifierToken
SourceLocation lparenToken
VariableDeclarationList * declarations
virtual SourceLocation lastSourceLocation() const
SourceLocation lbracketToken
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation firstSourceLocation() const
virtual SourceLocation firstSourceLocation() const
ExpressionNode * expression
UiParameterList * finish()
SourceLocation semicolonToken
UiQualifiedId * importUri
virtual SourceLocation firstSourceLocation() const
SourceLocation semicolonToken
SourceLocation identifierToken
SourceLocation identifierToken
ExpressionNode * expression
UiObjectInitializer * initializer
SourceLocation colonToken
SourceLocation lparenToken
virtual SourceLocation firstSourceLocation() const
virtual SourceLocation firstSourceLocation() const =0
virtual SourceLocation firstSourceLocation() const
SourceLocation rparenToken
SourceLocation lbracketToken
SourceLocation finallyToken
SourceLocation switchToken
virtual SourceLocation firstSourceLocation() const
SourceLocation lparenToken
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation firstSourceLocation() const
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation firstSourceLocation() const
ElementList(ElementList *previous, Elision *e, ExpressionNode *expr)
virtual SourceLocation firstSourceLocation() const
SourceLocation identifierToken
SourceLocation colonToken
ExpressionNode * expression
SourceElements * elements
ExpressionNode * expression
virtual SourceLocation firstSourceLocation() const
virtual SourceLocation firstSourceLocation() const
SourceLocation lparenToken
virtual SourceLocation firstSourceLocation() const
SourceLocation firstSemicolonToken
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation lastSourceLocation() const
ExpressionNode * expression
long ASN1_INTEGER_get ASN1_INTEGER * a
SourceLocation continueToken
SourceLocation rbraceToken
virtual SourceLocation firstSourceLocation() const
UiQualifiedId * qualifiedTypeNameId
SourceLocation literalToken
SourceLocation lbraceToken
virtual SourceLocation lastSourceLocation() const
SourceLocation importToken
ExpressionNode * condition
SourceLocation lparenToken
ArrayLiteral(ElementList *elts)
SourceLocation importIdToken
virtual SourceLocation firstSourceLocation() const
virtual SourceLocation lastSourceLocation() const
SourceLocation commaToken
ExpressionNode * initialiser
virtual SourceLocation lastSourceLocation() const =0
FunctionDeclaration * declaration
SourceLocation identifierToken
SourceLocation whileToken
virtual SourceLocation firstSourceLocation() const
SourceLocation incrementToken
virtual SourceLocation firstSourceLocation() const
UiObjectMemberList * finish()
virtual SourceLocation lastSourceLocation() const
UiParameterList(UiParameterList *previous, NameId *t, NameId *n)
virtual SourceLocation firstSourceLocation() const
ExpressionNode * expression
SourceLocation literalToken
virtual SourceLocation firstSourceLocation() const
SourceLocation rparenToken
ExpressionNode * expression
Q_CORE_EXPORT QTextStream & right(QTextStream &s)
SourceLocation rbracketToken
SourceLocation semicolonToken
SourceLocation catchToken
virtual SourceLocation firstSourceLocation() const
SourceLocation defaultToken
PropertyNameAndValueList * properties
Finally * finallyExpression
SourceLocation rparenToken
virtual SourceLocation lastSourceLocation() const
SourceLocation debuggerToken
#define QML_PARSER_EXPORT
ExpressionNode * expression
ExpressionNode * expression
virtual SourceLocation lastSourceLocation() const
SourceLocation lparenToken
SourceLocation lparenToken
virtual SourceLocation firstSourceLocation() const
virtual SourceLocation firstSourceLocation() const
SourceLocation identifierToken
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation firstSourceLocation() const
virtual SourceLocation lastSourceLocation() const
SourceLocation commaToken
SourceLocation throwToken
TryStatement(Statement *stmt, Finally *f)
SourceLocation semicolonToken
UiObjectInitializer * initializer
virtual SourceLocation lastSourceLocation() const
SourceLocation commaToken
SourceLocation secondSemicolonToken
UiQualifiedId(UiQualifiedId *previous, NameId *name)
SourceLocation rparenToken
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation firstSourceLocation() const
SourceLocation colonToken
ExpressionNode * expression
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation firstSourceLocation() const
virtual SourceLocation firstSourceLocation() const
virtual SourceLocation lastSourceLocation() const
SourceLocation semicolonToken
CaseClauses(CaseClauses *previous, CaseClause *c)
SourceLocation colonToken
virtual SourceLocation lastSourceLocation() const
SourceLocation secondSemicolonToken
SourceLocation semicolonToken
SourceLocation lparenToken
PropertyNameAndValueList * finish()
SourceLocation rparenToken
virtual SourceLocation lastSourceLocation() const
CaseClauses * moreClauses
Elision(Elision *previous)
SourceLocation incrementToken
virtual SourceLocation lastSourceLocation() const =0
virtual SourceLocation lastSourceLocation() const
SourceLocation firstSemicolonToken
SourceLocation breakToken
ExpressionNode * expression
ExpressionNode * expression
virtual SourceLocation lastSourceLocation() const
ExpressionNode * expression
virtual SourceLocation lastSourceLocation() const
SourceLocation typeofToken
ExpressionNode * expression
virtual SourceLocation lastSourceLocation() const
static QVector< Declaration > declarations(const QVector< StyleRule > &styleRules, const QString &part, quint64 pseudoClass=PseudoClass_Unspecified)
#define QT_QML_END_NAMESPACE
virtual SourceLocation lastSourceLocation() const
PropertyNameAndValueList(PropertyNameAndValueList *previous, PropertyName *n, ExpressionNode *v)
SourceLocation lbraceToken
VariableDeclarationList(VariableDeclarationList *previous, VariableDeclaration *decl)
SourceLocation readonlyToken
SourceLocation colonToken
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation firstSourceLocation() const
SourceElements(SourceElements *previous, SourceElement *elt)
SourceLocation typeModifierToken
SourceLocation lbraceToken
virtual SourceLocation firstSourceLocation() const
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation firstSourceLocation() const
ExpressionNode * expression
virtual SourceLocation firstSourceLocation() const
SourceLocation rparenToken
#define QT_QML_BEGIN_NAMESPACE
VariableDeclaration * declaration
virtual SourceLocation firstSourceLocation() const
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation firstSourceLocation() const
SourceLocation identifierToken
SourceLocation propertyNameToken
virtual SourceLocation lastSourceLocation() const
SourceLocation lparenToken
virtual SourceLocation firstSourceLocation() const
VariableDeclarationList * next
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation firstSourceLocation() const
virtual SourceLocation lastSourceLocation() const
SourceLocation rbraceToken
virtual SourceLocation firstSourceLocation() const
virtual void accept0(Visitor *)
SourceLocation identifierToken
virtual SourceLocation lastSourceLocation() const
SourceLocation lparenToken
SourceLocation colonToken
SourceLocation commaToken
SourceLocation propertyToken
SourceLocation questionToken
ArrayLiteral(ElementList *elts, Elision *e)
FormalParameterList * formals
virtual SourceLocation lastSourceLocation() const
SourceLocation fileNameToken
virtual SourceLocation firstSourceLocation() const
SourceLocation rbracketToken
SourceLocation semicolonToken
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation firstSourceLocation() const
UiPublicMember(NameId *memberType, NameId *name, ExpressionNode *expression)
UiObjectMemberList(UiObjectMemberList *previous, UiObjectMember *member)
static void acceptChild(Node *node, Visitor *visitor)
SourceLocation returnToken
ExpressionNode * expression
SourceLocation defaultToken
SourceLocation rbraceToken
virtual SourceLocation lastSourceLocation() const
SourceLocation commaToken
SourceLocation rparenToken
ExpressionNode * initialiser
SourceLocation semicolonToken
SourceLocation operatorToken
virtual SourceLocation firstSourceLocation() const
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation firstSourceLocation() const
SourceLocation lbraceToken
virtual SourceLocation lastSourceLocation() const
SourceLocation rparenToken
ExpressionNode * expression
SourceLocation commaToken
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation firstSourceLocation() const
SourceLocation semicolonToken
SourceLocation minusToken
virtual SourceLocation firstSourceLocation() const
virtual SourceLocation firstSourceLocation() const
SourceLocation commaToken
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation lastSourceLocation() const
StatementList * statements
DefaultClause * defaultClause
SourceLocation declarationKindToken
ExpressionNode * expression
ExpressionNode * expression
virtual SourceLocation lastSourceLocation() const
SourceLocation semicolonToken
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation lastSourceLocation() const
StatementList(StatementList *previous, Statement *stmt)
SourceLocation rparenToken
UiQualifiedId * qualifiedTypeNameId
ExpressionNode * expression
ArgumentList(ArgumentList *previous, ExpressionNode *e)
SourceLocation identifierToken
static const QCssKnownValue properties[NumProperties - 1]
UiObjectMemberList * members
SourceLocation whileToken
ExpressionNode * expression
static const QTextHtmlElement elements[Html_NumElements]
virtual SourceLocation firstSourceLocation() const
virtual SourceLocation firstSourceLocation() const
SourceLocation colonToken
UiQualifiedId * qualifiedId
virtual SourceLocation lastSourceLocation() const
PropertyNameAndValueList * next
SourceLocation identifierToken
StatementList * statements
ExpressionNode * expression
VariableDeclaration * declaration
virtual SourceLocation lastSourceLocation() const
SourceLocation rbraceToken
virtual SourceLocation firstSourceLocation() const
SourceLocation deleteToken
SourceLocation lparenToken
SourceLocation decrementToken
#define QDECLARATIVEJS_DECLARE_AST_NODE(name)
UiQualifiedId * qualifiedId
virtual SourceLocation lastSourceLocation() const
ExpressionNode * expression
SourceLocation lparenToken
virtual SourceLocation firstSourceLocation() const
ExpressionNode * expression
SourceLocation tildeToken
ExpressionNode * expression
Q_CORE_EXPORT QTextStream & left(QTextStream &s)
SourceLocation rbracketToken
SourceLocation commaToken
virtual SourceLocation lastSourceLocation() const
static QString fileName(const QString &fileUrl)
SourceLocation rparenToken
virtual SourceLocation firstSourceLocation() const
SourceLocation lparenToken
ExpressionNode * expression
SourceLocation functionToken
TryStatement(Statement *stmt, Catch *c)
SourceLocation colonToken
SourceElements * finish()
virtual SourceLocation firstSourceLocation() const
VariableDeclarationList * finish(bool readOnly)
virtual SourceLocation firstSourceLocation() const
SourceLocation versionToken
virtual SourceLocation lastSourceLocation() const
UiImport(UiQualifiedId *uri)
UiParameterList * parameters
SourceLocation lbraceToken
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation lastSourceLocation() const
virtual SourceLocation lastSourceLocation() const
UiArrayMemberList * members
SourceLocation rparenToken
SourceLocation lparenToken
UiQualifiedId * qualifiedId
virtual SourceLocation firstSourceLocation() const
UiObjectMemberList * members
SourceLocation rparenToken
SourceLocation semicolonToken
SourceLocation colonToken
ExpressionNode * expression