ActionScript

JavaScript + Closure annotation

Notes

as

as

?

I think we need a utility function

instanceof

instanceof

instanceof

We need to check the "goog" way of inheritance for correctness of the JS 'instanceof' and see if the Closure annotation method for implementing "Interfaces" covers the functionality of AS 'instanceof'.

is

is

?

I think we need a utility function

::

::

?

 

:

:

[various]

To "strongly" type JS, we use the Google Closure annotations. These are JSDoc block that go with function or variable declarations and give the Closure Compiler hints as to the type of variables, arguments and return values.

typeof

typeof

typeof

Only the "xml" type is not supported on the JS side (nor are the data types that go with it, XML and XMLList)

  • No labels