Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-6098

QML code model should understand function return values and function arguments

    XMLWordPrintable

Details

    • Task
    • Resolution: Out of scope
    • P2: Important
    • None
    • None
    • Quick / QML Support
    • None

    Description

      The following examples show a fundamental limitation of the current code model:

      function foo() { return new Date }
      var x = foo()
      x.<complete fails>
      
      function foo(a) { 
          a.<complete fails>
      }
      foo(new Date)
      

      To offer useful completion in these cases we either need to annotate functions with information about return and argument types or implement intricate static analysis.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              mabenell Marco Benelli
              ckamm Christian Kamm
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes