Skip to content

Commit

Permalink
Introduce methods to get the source location of the AST nodes.
Browse files Browse the repository at this point in the history
Also removed deprecate AST nodes.

Change-Id: I9221e81b15b18530bb2ab8b09da2482df543bace
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
  • Loading branch information
Roberto Raggi authored and Qt by Nokia committed Dec 6, 2011
1 parent e9a0aa7 commit 37b42a1
Show file tree
Hide file tree
Showing 12 changed files with 520 additions and 268 deletions.
4 changes: 1 addition & 3 deletions src/declarative/qml/parser/qdeclarativejs.g
Expand Up @@ -255,9 +255,6 @@ public:
AST::UiObjectMemberList *UiObjectMemberList;
AST::UiArrayMemberList *UiArrayMemberList;
AST::UiQualifiedId *UiQualifiedId;
AST::UiSignature *UiSignature;
AST::UiFormalList *UiFormalList;
AST::UiFormal *UiFormal;
};

public:
Expand Down Expand Up @@ -828,6 +825,7 @@ UiParameterList: UiPropertyType JsIdentifier ;
/.
case $rule_number: {
AST::UiParameterList *node = new (pool) AST::UiParameterList(stringRef(1), stringRef(2));
node->propertyTypeToken = loc(1);
node->identifierToken = loc(2);
sym(1).Node = node;
} break;
Expand Down
25 changes: 0 additions & 25 deletions src/declarative/qml/parser/qdeclarativejsast.cpp
Expand Up @@ -808,31 +808,6 @@ void UiProgram::accept0(Visitor *visitor)
visitor->endVisit(this);
}

void UiSignature::accept0(Visitor *visitor)
{
if (visitor->visit(this)) {
accept(formals, visitor);
}
visitor->endVisit(this);
}

void UiFormalList::accept0(Visitor *visitor)
{
if (visitor->visit(this)) {
for (UiFormalList *it = this; it; it = it->next) {
accept(it->formal, visitor);
}
}
visitor->endVisit(this);
}

void UiFormal::accept0(Visitor *visitor)
{
if (visitor->visit(this)) {
}
visitor->endVisit(this);
}

void UiPublicMember::accept0(Visitor *visitor)
{
if (visitor->visit(this)) {
Expand Down

0 comments on commit 37b42a1

Please sign in to comment.