aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Kotlin/KotlinLanguageService.kt2
-rw-r--r--test/data/format/javaDeprecated.html2
-rw-r--r--test/data/format/javaSupertype.html2
-rw-r--r--test/data/format/javadocHtml.md2
-rw-r--r--test/data/format/javadocOrderedList.md2
-rw-r--r--test/data/format/parameterAnchor.html2
-rw-r--r--test/data/format/typeParameterBounds.md2
-rw-r--r--test/src/model/FunctionTest.kt4
-rw-r--r--test/src/model/PropertyTest.kt2
9 files changed, 10 insertions, 10 deletions
diff --git a/src/Kotlin/KotlinLanguageService.kt b/src/Kotlin/KotlinLanguageService.kt
index 75675c6f..3efe29c3 100644
--- a/src/Kotlin/KotlinLanguageService.kt
+++ b/src/Kotlin/KotlinLanguageService.kt
@@ -122,7 +122,7 @@ class KotlinLanguageService : LanguageService {
private fun ContentBlock.renderModifier(node: DocumentationNode) {
when (node.name) {
- "final", "internal", "var" -> {}
+ "final", "public", "var" -> {}
else -> {
keyword(node.name)
text(" ")
diff --git a/test/data/format/javaDeprecated.html b/test/data/format/javaDeprecated.html
index 8410e7ca..9e8958a2 100644
--- a/test/data/format/javaDeprecated.html
+++ b/test/data/format/javaDeprecated.html
@@ -6,7 +6,7 @@
<a href="test/index">test</a>&nbsp;/&nbsp;<a href="test/test/index">test</a>&nbsp;/&nbsp;<a href="test/test/-foo/index">Foo</a>&nbsp;/&nbsp;<a href="test/test/-foo/foo">foo</a><br/>
<br/>
<h1>foo</h1>
-<code><span class="keyword">public</span> <span class="keyword">open</span> <span class="keyword">fun </span><s><span class="identifier">foo</span></s><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
+<code><span class="keyword">open</span> <span class="keyword">fun </span><s><span class="identifier">foo</span></s><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
<strong>Deprecated:</strong> use <code><a href="test/test/-foo/bar">#bar</a></code> instead <p></p>
<br/>
<br/>
diff --git a/test/data/format/javaSupertype.html b/test/data/format/javaSupertype.html
index 3a93da0a..2bcc2fce 100644
--- a/test/data/format/javaSupertype.html
+++ b/test/data/format/javaSupertype.html
@@ -6,7 +6,7 @@
<a href="test/index">test</a>&nbsp;/&nbsp;<a href="test/test/index">test</a>&nbsp;/&nbsp;<a href="test/test/-c/index">C</a>&nbsp;/&nbsp;<a href="test/test/-c/-bar/index">Bar</a><br/>
<br/>
<h1>Bar</h1>
-<code><span class="keyword">public</span> <span class="keyword">open</span> <span class="keyword">class </span><span class="identifier">Bar</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="test/test/-c/-foo"><span class="identifier">Foo</span></a></code><br/>
+<code><span class="keyword">open</span> <span class="keyword">class </span><span class="identifier">Bar</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="test/test/-c/-foo"><span class="identifier">Foo</span></a></code><br/>
<br/>
<br/>
<h3>Functions</h3>
diff --git a/test/data/format/javadocHtml.md b/test/data/format/javadocHtml.md
index 64b7a5a4..a75ebf35 100644
--- a/test/data/format/javadocHtml.md
+++ b/test/data/format/javadocHtml.md
@@ -3,7 +3,7 @@
# C
-`public open class C`
+`open class C`
**Bold** **Strong** *Italic* *Emphasized*
Paragraph
diff --git a/test/data/format/javadocOrderedList.md b/test/data/format/javadocOrderedList.md
index ba5935e2..acd3e809 100644
--- a/test/data/format/javadocOrderedList.md
+++ b/test/data/format/javadocOrderedList.md
@@ -3,7 +3,7 @@
# Bar
-`public open class Bar`
+`open class Bar`
1. Rinse
1. Repeat
diff --git a/test/data/format/parameterAnchor.html b/test/data/format/parameterAnchor.html
index 99f0f110..c5920fb7 100644
--- a/test/data/format/parameterAnchor.html
+++ b/test/data/format/parameterAnchor.html
@@ -6,7 +6,7 @@
<a href="test/index">test</a>&nbsp;/&nbsp;<a href="test/process-files">processFiles</a><br/>
<br/>
<h1>processFiles</h1>
-<code><span class="keyword">public</span> <span class="keyword">fun </span><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">&gt;</span> <span class="identifier">processFiles</span><span class="symbol">(</span><span class="identifier">processor</span><span class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<span class="identifier">T</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">List</span><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">&gt;</span></code><br/>
+<code><span class="keyword">fun </span><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">&gt;</span> <span class="identifier">processFiles</span><span class="symbol">(</span><span class="identifier">processor</span><span class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<span class="identifier">T</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">List</span><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">&gt;</span></code><br/>
<p>Runs <a href="test/process-files#processor">processor</a> for each file and collects its results into single list</p>
<h3>Parameters</h3>
<a name="processor"></a>
diff --git a/test/data/format/typeParameterBounds.md b/test/data/format/typeParameterBounds.md
index 3962f911..fe597878 100644
--- a/test/data/format/typeParameterBounds.md
+++ b/test/data/format/typeParameterBounds.md
@@ -3,7 +3,7 @@
# generic
-`public fun &lt;T&nbsp;:&nbsp;R, R&gt; generic(): Unit`
+`fun &lt;T&nbsp;:&nbsp;R, R&gt; generic(): Unit`
generic function
diff --git a/test/src/model/FunctionTest.kt b/test/src/model/FunctionTest.kt
index bbb7cdbc..80ae223d 100644
--- a/test/src/model/FunctionTest.kt
+++ b/test/src/model/FunctionTest.kt
@@ -30,7 +30,7 @@ public class FunctionTest {
assertEquals("fn", name)
assertEquals(DocumentationNode.Kind.Function, kind)
assertEquals("Function with receiver", content.summary.toTestString())
- assertEquals("internal", details.elementAt(0).name)
+ assertEquals("public", details.elementAt(0).name)
assertEquals("final", details.elementAt(1).name)
with(details.elementAt(2)) {
assertEquals("<this>", name)
@@ -124,7 +124,7 @@ public class FunctionTest {
assertEquals("""Function
Documentation""", content.description.toTestString())
- assertEquals("internal", details.elementAt(0).name)
+ assertEquals("public", details.elementAt(0).name)
assertEquals("final", details.elementAt(1).name)
with(details.elementAt(2)) {
assertEquals("x", name)
diff --git a/test/src/model/PropertyTest.kt b/test/src/model/PropertyTest.kt
index 38c3160f..405b260f 100644
--- a/test/src/model/PropertyTest.kt
+++ b/test/src/model/PropertyTest.kt
@@ -56,7 +56,7 @@ public class PropertyTest {
assertEquals("String", detail(DocumentationNode.Kind.Type).name)
val modifiers = details(DocumentationNode.Kind.Modifier).map { it.name }
assertTrue("final" in modifiers)
- assertTrue("internal" in modifiers)
+ assertTrue("public" in modifiers)
assertTrue("var" in modifiers)
assertTrue(links.none())
assertTrue(members.none())