Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Marked as random thought.

Proposal RT Compile-time-data injection

Note
titleProposal
  • This is not yet a part of apache flex.
  • This is in concept stage

Summary

Introduction of new Metadata Tags that instruct the compiler to fill-in arguments or properties with data that is available at compile-time.

...

key

description

type

caller.type

Type in which the calling method was located

Type

caller.args

The arguments that have been passed to the caller

Array

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="fb9c099326faf3c2-78ded4b0-46b84fa9-92ccb4fe-4a9e0cf0d45f888f6c6985a8"><ac:plain-text-body><![CDATA[

call.clean

Called clean like foo.bar() or not (like foo["bar"]() or foo.bar.call(null))

Boolean

]]></ac:plain-text-body></ac:structured-macro>

call.lineNo

The line number of the file of the type where the method has been called

int

call.preferedReturnType

Type that the code wants to work with afterwards

Type

call.args

Types passed in for all arguments

Array

call.arg.<argument>

Type for a particular argument

Type

...