newDeclaration

fun newDeclaration(declarationKind: DeclarationPhraseDescriptor.DeclarationKind, token: A_Token, declaredType: A_Type, typeExpression: A_Phrase, initializationExpression: A_Phrase, literalObject: A_BasicObject): A_Phrase

Construct a declaration phrase of some kind.

Return

The new declaration phrase.

Parameters

declarationKind

The kind of declaration to create.

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.

initializationExpression

An expression used for initializing the entity being declared, or nil if none.

literalObject

An AvailObject that is the actual variable or constant being defined, or nil if none.