Compiler Metadata

–°ompiler metadata is a term used to refer to a class of special strings that sometimes appear beside code declarations in morfik code.

FX Code

Var X : Integer; ['obfuscate=false'];


LISTING

This is a complete listing of supported compiler metadata strings:

obfuscate

possible values: false, true

purpose: used to prevent obfuscation of browser-side code. Default value is True.

Setting obfuscate to False instructs compiler to not obfuscate the name of the entity.


optimize

possible values: false, true

purpose: used to prevent optimization of browser-side code. Default value is True.

When Optimize JavaScript option is enabled, compiler removes all functions and declarations not explicitly referenced from anywhere. Setting optimize to False instructs compiler to always include this entity in the resulting Javascript.


external

possible values: blank, or the name of an external unit

purpose: allows code entities from external units or the browser dom to be used within morfik code


webmethod*

possible values: blank

purpose: marks a function as being part of a morfik webmethod declaration


language*

possible values: Pascal, Basic, CSharp, Java

purpose: specifies in which morfik programming languages a given primitive type is supported


mappedto*

possible values: name of a primitive type

purpose: specifies to what underlying type a primitive type is mapped


compatibility*

possible values: name(s) of a primitive type

purpose: specifies with what primitive type(s) a given primitive type is compatible items marked with * exist primarily for internal use by the Morfik system, and are unlikely to be useful to developers using Morfik; they are mentioned here for the sake of completeness