From 85a3ae7626810113816fd31a0e26d44d48308ed2 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 20 Feb 2015 14:08:30 +0100 Subject: support in-page anchors in locations --- test/data/format/overloadsWithDescription.html | 3 ++- .../data/format/overloadsWithDifferentDescriptions.html | 2 ++ test/data/format/parameterAnchor.html | 17 +++++++++++++++++ test/data/format/parameterAnchor.kt | 6 ++++++ 4 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 test/data/format/parameterAnchor.html create mode 100644 test/data/format/parameterAnchor.kt (limited to 'test/data/format') diff --git a/test/data/format/overloadsWithDescription.html b/test/data/format/overloadsWithDescription.html index b29ca658..db63b262 100644 --- a/test/data/format/overloadsWithDescription.html +++ b/test/data/format/overloadsWithDescription.html @@ -8,12 +8,13 @@

f

fun f(x: Int): Unit
fun f(x: String): Unit
-

Performs an action on x.

+

Performs an action on x.

Description

This is a long description.



Parameters

+ x - the value to perform the action on.


diff --git a/test/data/format/overloadsWithDifferentDescriptions.html b/test/data/format/overloadsWithDifferentDescriptions.html index 66f8e9a6..06431d15 100644 --- a/test/data/format/overloadsWithDifferentDescriptions.html +++ b/test/data/format/overloadsWithDifferentDescriptions.html @@ -13,6 +13,7 @@

Parameters

+ x - the int value to perform the action on.


@@ -23,6 +24,7 @@

Parameters

+ x - the string value to perform the action on.


diff --git a/test/data/format/parameterAnchor.html b/test/data/format/parameterAnchor.html new file mode 100644 index 00000000..2b2fec08 --- /dev/null +++ b/test/data/format/parameterAnchor.html @@ -0,0 +1,17 @@ + + +test / processFiles + + +test / processFiles
+
+

processFiles

+public fun <T> processFiles(processor: () -> T): List<T>
+

Runs processor for each file and collects its results into single list

+

Parameters

+ +processor - function to receive context for symbol resolution and file for processing
+
+
+ + diff --git a/test/data/format/parameterAnchor.kt b/test/data/format/parameterAnchor.kt new file mode 100644 index 00000000..ae36ee4c --- /dev/null +++ b/test/data/format/parameterAnchor.kt @@ -0,0 +1,6 @@ +/** + * Runs [processor] for each file and collects its results into single list + * @param processor function to receive context for symbol resolution and file for processing + */ +public fun processFiles(processor: () -> T): List { +} -- cgit