-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs regarding SymbolProcessorProvider
- Loading branch information
Showing
3 changed files
with
45 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 17 additions & 6 deletions
23
api/src/main/kotlin/com/google/devtools/ksp/processing/SymbolProcessorProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
package com.google.devtools.ksp.processing | ||
|
||
/** | ||
* [SymbolProcessorProvider] is the interface used by plugins to integrate into Kotlin Symbol Processing. | ||
*/ | ||
interface SymbolProcessorProvider { | ||
fun create( | ||
options: Map<String, String>, | ||
kotlinVersion: KotlinVersion, | ||
codeGenerator: CodeGenerator, | ||
logger: KSPLogger | ||
): SymbolProcessor | ||
/** | ||
* Called by Kotlin Symbol Processing to create the processor. | ||
* | ||
* @param options passed from command line, Gradle, etc. | ||
* @param kotlinVersion language version of compilation environment. | ||
* @param codeGenerator creates managed files. | ||
* @param logger for logging to build output. | ||
*/ | ||
fun create( | ||
options: Map<String, String>, | ||
kotlinVersion: KotlinVersion, | ||
codeGenerator: CodeGenerator, | ||
logger: KSPLogger | ||
): SymbolProcessor | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters