Add support for object literals

Review Request #118493 - Created June 3, 2014 and submitted

Information
Denis Steckelmacher
kdev-qmljs
master
Reviewers
kdevelop
This patch adds support for object literals, that are now properly declared as classes. Their keys are now shown in the code-completion popup, and their uses are correctly found.
A new unit test ensures that the two keys hereafter are properly recognized and have one use each:

var a = {key1: "string", key2: "string"};

a.key1 = "other"; // key1 used
a.key2 = 3;       // type set to unsure(string, int)
a.|               // lists "key1" and "key2"

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Sven Brauch
Commit Hook
Denis Steckelmacher
Review request changed

Status: Closed (submitted)

Loading...