Skip to content

Commit

Permalink
language-server: fixed issue where rename and find references failed …
Browse files Browse the repository at this point in the history
…to find identifiers inside array or object literals ([] or {})
  • Loading branch information
joshtynjala committed Feb 8, 2020
1 parent ce31bd6 commit ec16e1c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
import org.apache.royale.compiler.tree.as.IIdentifierNode;
import org.apache.royale.compiler.tree.as.IImportNode;
import org.apache.royale.compiler.tree.as.IInterfaceNode;
import org.apache.royale.compiler.tree.as.ILiteralContainerNode;
import org.apache.royale.compiler.tree.as.ILiteralNode;
import org.apache.royale.compiler.tree.as.IMemberAccessExpressionNode;
import org.apache.royale.compiler.tree.as.IPackageNode;
Expand Down Expand Up @@ -478,7 +479,10 @@ else if (resolvedDefinition instanceof IGetterDefinition
}
}
}
return;
if (!(node instanceof ILiteralContainerNode))
{
return;
}
}
for (int i = 0, count = node.getChildCount(); i < count; i++)
{
Expand Down

0 comments on commit ec16e1c

Please sign in to comment.