Basically that is it. All references in a function *definition* are
run-time, in the sense that they are only needed when that function is
executed for the first time (which is usually after all loading has been
done).
Everything else is load-time, meaning it is evaluated by the browser the
moment the code is parsed. This includes references on the top/file level,
but also parameters of top-level function calls, values in object literals
(this affects qooxdoo's class maps) and array literals. This also affects
function definitions on the top-level that are immediately executed :-).
With qooxdoo all symbols in the 'defer' function are also load-time, as
qx.Class.define executes it immediately.
I'm a bit wary if the generator would catch each corner case, esp. with
top-level function definitions that are immediately executed.
T.
> Thanks Thomas, that was it. Can you explain how the generator
> distinguishes between load time and runtime dependencies? My guess is
> that anything referenced in the outer scope of a source file is load time,
> and anything references from an inner scope (e.g. a function declared in
> members or statics) is runtime - is that all there is to it or am I
> missing something?
>
> John
>
> On 27/06/2012 03:07, "thron7" <thomas.herchenroeder@...> wrote:
>
>>Could be that you are restricting the dependencies to the runtime phase,
>>so you are missing out on all the load-time dependencies.
>>
>>>> ,"phase" : "runtime"
>>
>>Use phase:null if you want to have both.
>>
>>T.
>>
>>
>>> Hi
>>>
>>> I'm tracking to track dependencies in my app but can't see the reason
>>>for
>>> all classes being included by the generator. I'm using
>>> "log-dependencies-dot" but classes don't show up in there even though
>>>they
>>> are loaded by the app's source/script/app.js
>>>
>>> For example, if I create a brand new create-application.py skeleton and
>>> run
>>> "generate source" it will load "qx:qx/ui/container/Composite.js" but
>>> the
>>> deps.dot doesn't list q.u.c.Composite.
>>>
>>> I've added these jobs to my skeleton's config.json:
>>>> "source-script" : {
>>>>
>>>> "extend" : ["log-dependencies-dot"]
>>>>
>>>> },
>>>>
>>>>
>>>>
>>>> "log-dependencies-dot" :
>>>>
>>>> {
>>>>
>>>> "desc" : "includer job, to generate a dot file for
>>>> dependencies",
>>>>
>>>>
>>>>
>>>> "log" :
>>>>
>>>> {
>>>>
>>>> "dependencies" :
>>>>
>>>> {
>>>>
>>>> "type" : "using"
>>>>
>>>> ,"include-transitive-load-deps": true
>>>>
>>>> ,"phase" : "runtime"
>>>>
>>>> ,"format" : "dot"
>>>>
>>>> ,"dot" :
>>>>
>>>> {
>>>>
>>>> "root" : "${APPLICATION}.Application"
>>>>
>>>> ,"radius" : 100
>>>>
>>>> ,"span-tree-only" : false
>>>>
>>>> ,"compiled-class-size" : false
>>>>
>>>> }
>>>>
>>>> }
>>>>
>>>> }
>>>>
>>>> }
>>>
>>>
>>> As you can see, I've tried to customise log-dependencies-dot for more
>>> complete output but it hasn't made any difference. I'm using master.
>>>
>>> John
>>>
>>>
>>>
>>>
>>>-------------------------------------------------------------------------
>>>-----
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond.
>>>Discussions
>>> will include endpoint security, mobile security and the latest in
>>>malware
>>> threats.
>>>
>>>http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/________________
>>>_______________________________
>>> qooxdoo-devel mailing list
>>> qooxdoo-devel@...
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>
>>
>>
>>
>>--------------------------------------------------------------------------
>>----
>>Live Security Virtual Conference
>>Exclusive live event will cover all the ways today's security and
>>threat landscape has changed and how IT managers can respond. Discussions
>>will include endpoint security, mobile security and the latest in malware
>>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>_______________________________________________
>>qooxdoo-devel mailing list
>>qooxdoo-devel@...
>>https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@...
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
span-tree-only
|