Class KotlinGeneratedFile
- Namespace
- TypedRest.CodeGeneration.Kotlin
- Assembly
- TypedRest.CodeGeneration.Kotlin.dll
A Kotlin source file holding one generated type.
public sealed class KotlinGeneratedFile : IGeneratedFile
- Inheritance
-
objectKotlinGeneratedFile
- Implements
- Extension Methods
Constructors
KotlinGeneratedFile(IJvmType, KotlinWriter)
A Kotlin source file holding one generated type.
public KotlinGeneratedFile(IJvmType type, KotlinWriter writer)
Parameters
typeIJvmTypeThe type declared in the file.
writerKotlinWriterRenders the type.
Properties
Encoding
The encoding to use when writing the file to disk.
public Encoding Encoding { get; }
Property Value
Path
The path of the file relative to the output directory, using / as the separator, including the extension.
public string Path { get; }
Property Value
Type
The type declared in the file.
public IJvmType Type { get; }
Property Value
Methods
WriteTo(TextWriter)
Writes the content of the file.
public void WriteTo(TextWriter textWriter)
Parameters
textWriterTextWriter