-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
18 deletions.
There are no files selected for viewing
23 changes: 11 additions & 12 deletions
23
examples/gradle-kotlin-dsl/src/main/kotlin/AnotherTest.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,16 +1,15 @@ | ||
package whate.ver | ||
|
||
fun String.createPluginConfig() { | ||
val pluginConfig = TomlDecoder.decode<T>( | ||
serializer(), | ||
fakeFileNode, | ||
DecoderConf() | ||
) | ||
pluginConfig.configLocation = this.toPath() | ||
pluginConfig.prop1 = property1 | ||
// comment1 | ||
pluginConfig.configLocation2 = this.toPath() | ||
// comment2 | ||
pluginConfig.prop2 = property2 | ||
val pluginConfig = TomlDecoder.decode<T>( | ||
serializer(), | ||
fakeFileNode, | ||
DecoderConf() | ||
) | ||
pluginConfig.configLocation = this.toPath() | ||
pluginConfig.prop1 = property1 | ||
// comment1 | ||
pluginConfig.configLocation2 = this.toPath() | ||
// comment2 | ||
pluginConfig.prop2 = property2 | ||
} | ||
|
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,13 +1,13 @@ | ||
package incorrect | ||
|
||
class incorrectname: Exception() { | ||
fun INCORRECT_FUNCTION() { | ||
throw Exception() | ||
} | ||
fun INCORRECT_FUNCTION() { | ||
throw Exception() | ||
} | ||
|
||
// fun myCommentedFunction() { | ||
// } | ||
// fun myCommentedFunction() { | ||
// } | ||
|
||
val Incorrect_Val = 5 | ||
val Incorrect_Val = 5 | ||
|
||
} |