Skip to content

Commit

Permalink
Add missing documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
theEvilReaper committed Dec 31, 2024
1 parent 5f52d7b commit b822560
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ internal class ParameterWriter : Writeable<ParameterSpec>, InitializerAppender<P
writeInitBlock(spec, writer)
}

/**
* Writes the initializer block for the given [ParameterSpec].
* @param spec the spec to write
* @param writer the writer to append the data
*/
override fun writeInitBlock(spec: ParameterSpec, writer: CodeWriter, isConstantContext: Boolean) {
val initBlock = spec.initializer ?: CodeBlock.EMPTY
if (initBlock.isEmpty()) return
Expand Down

0 comments on commit b822560

Please sign in to comment.