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

QML code model should understand function return values and function arguments

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes