newArgument

fun newArgument(token: A_Token, declaredType: A_Type, typeExpression: A_Phrase): A_Phrase

Construct a new declaration of a block DeclarationKind.ARGUMENT.

Return

The argument declaration.

Parameters

token

The token that is the defining occurrence of the name of the entity being declared.

declaredType

The type of the entity being declared.

typeExpression

The expression that produced the type for the entity being declared, or nil if there was no such expression.