writeTo

fun FileSpec.writeTo(codeGenerator: CodeGenerator, aggregating: Boolean, originatingKSFiles: Iterable<KSFile> = originatingKSFiles())

Writes this FileSpec to a given codeGenerator with the given originatingKSFiles.

Note that if none are specified, the originatingKSFiles argument defaults to using FileSpec.originatingKSFiles, which will automatically resolve any files added to the contained declarations.

See the docs for more information.

Parameters

codeGenerator

the CodeGenerator to write to.

aggregating

flag indicating if this is an aggregating symbol processor.

See also


fun FileSpec.writeTo(codeGenerator: CodeGenerator, dependencies: Dependencies)

Writes this FileSpec to a given codeGenerator with the given dependencies.

See the docs for more information.

Parameters

codeGenerator

the CodeGenerator to write to.

dependencies

the Dependencies to create a new file with.

See also