literal phrase⇒token, literal phrase⇒any meta
Source: /avail/Avail/Foundation/Bootstrap/Origin
Categories: Avail Syntax, Variables
Construct and answer a local variable declaration from the supplied identifier and type.
If this macro is evaluated in the module scope, then the compiler will automatically convert the result into an equivalent module variable declaration prior to code generation.
Position | Name | Type | Description | |
---|---|---|---|---|
Parameters | ||||
1 | varNamePhrase | literal phrase⇒token | A literal phrase that answers the token corresponding to the identifier of the declared variable. | |
2 | varTypePhrase | literal phrase⇒any meta | A literal phrase that answers the type of the declared variable. | |
Returns | local variable phrase |