aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Generation
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2017-02-24 10:05:37 +0100
committerDmitry Jemerov <yole@jetbrains.com>2017-02-24 10:05:37 +0100
commit5da33851dfd3c7c88f939db2b02e979b0e977f87 (patch)
tree7f6deff45c91c6e433372e7189683efd047d1aab /core/src/main/kotlin/Generation
parentff8fdb0bbc4069773424400acfdce36a4e3d6d6a (diff)
downloaddokka-5da33851dfd3c7c88f939db2b02e979b0e977f87.tar.gz
dokka-5da33851dfd3c7c88f939db2b02e979b0e977f87.tar.bz2
dokka-5da33851dfd3c7c88f939db2b02e979b0e977f87.zip
Rename isSample() to isNotSample() because that's what it checks
Diffstat (limited to 'core/src/main/kotlin/Generation')
-rw-r--r--core/src/main/kotlin/Generation/DokkaGenerator.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/kotlin/Generation/DokkaGenerator.kt b/core/src/main/kotlin/Generation/DokkaGenerator.kt
index 0b14418d..ed189b68 100644
--- a/core/src/main/kotlin/Generation/DokkaGenerator.kt
+++ b/core/src/main/kotlin/Generation/DokkaGenerator.kt
@@ -63,7 +63,7 @@ class DokkaGenerator(val logger: DokkaLogger,
val injector = Guice.createInjector(
DokkaAnalysisModule(environment, options, defaultPlatforms, documentationModule.nodeRefGraph, logger))
- buildDocumentationModule(injector, documentationModule, { isSample(it) }, includes)
+ buildDocumentationModule(injector, documentationModule, { isNotSample(it) }, includes)
val timeAnalyse = System.currentTimeMillis() - startAnalyse
logger.info("done in ${timeAnalyse / 1000} secs")
@@ -88,7 +88,7 @@ class DokkaGenerator(val logger: DokkaLogger,
return environment
}
- fun isSample(file: PsiFile): Boolean {
+ fun isNotSample(file: PsiFile): Boolean {
val sourceFile = File(file.virtualFile!!.path)
return samples.none { sample ->
val canonicalSample = File(sample).canonicalPath