diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2017-02-24 10:05:37 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2017-02-24 10:05:37 +0100 |
commit | 5da33851dfd3c7c88f939db2b02e979b0e977f87 (patch) | |
tree | 7f6deff45c91c6e433372e7189683efd047d1aab /core/src/main | |
parent | ff8fdb0bbc4069773424400acfdce36a4e3d6d6a (diff) | |
download | dokka-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')
-rw-r--r-- | core/src/main/kotlin/Generation/DokkaGenerator.kt | 4 |
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 |