setInitializer

Will create a NameExpr with the initializer param

Return

this, the VariableDeclarator

Parameters

init

the initializer expression, can be null


open fun setInitializer(@Nullable initializer: @Nullable Expression): VariableDeclarator(source)

Sets the initializer expression

Return

this, the VariableDeclarator

Parameters

initializer

the initializer expression, can be null