aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/resources/expect/functionWithReceiver
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base/src/test/resources/expect/functionWithReceiver')
-rw-r--r--plugins/base/src/test/resources/expect/functionWithReceiver/out/html/-search.html23
-rw-r--r--plugins/base/src/test/resources/expect/functionWithReceiver/out/html/navigation.html10
-rw-r--r--plugins/base/src/test/resources/expect/functionWithReceiver/out/html/root/fn.html38
-rw-r--r--plugins/base/src/test/resources/expect/functionWithReceiver/out/html/root/index.html36
-rw-r--r--plugins/base/src/test/resources/expect/functionWithReceiver/src/functionWithReceiver.kt11
5 files changed, 118 insertions, 0 deletions
diff --git a/plugins/base/src/test/resources/expect/functionWithReceiver/out/html/-search.html b/plugins/base/src/test/resources/expect/functionWithReceiver/out/html/-search.html
new file mode 100644
index 00000000..1ee812bb
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/functionWithReceiver/out/html/-search.html
@@ -0,0 +1,23 @@
+<html>
+ <head>
+ <title>Search</title>
+ <link href="styles/style.css" rel="Stylesheet">
+ <script type="text/javascript" src="scripts/pages.js" async="async"></script>
+ <script>var pathToRoot = "";</script>
+ </head>
+ <body>
+ <div id="navigation">
+ <div id="searchBar">
+ <form action="-search.html" method="get" id="searchForm"><input type="search" name="query"><input type="submit" value="Search"></form>
+ </div>
+ <div id="sideMenu"></div>
+ </div>
+ <div id="content">
+ <h1 id="searchTitle">Search results for </h1>
+ <table>
+ <tbody id="searchTable"></tbody>
+ </table>
+ </div>
+ </body>
+</html>
+
diff --git a/plugins/base/src/test/resources/expect/functionWithReceiver/out/html/navigation.html b/plugins/base/src/test/resources/expect/functionWithReceiver/out/html/navigation.html
new file mode 100644
index 00000000..ebff817d
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/functionWithReceiver/out/html/navigation.html
@@ -0,0 +1,10 @@
+<div class="sideMenuPart" id="nav-submenu">
+ <div class="overview"><a href="root/index.html">root</a><span class="navButton" onclick="document.getElementById(&quot;nav-submenu&quot;).classList.toggle(&quot;hidden&quot;);"><span class="navButtonContent"></span></span></div>
+ <div class="sideMenuPart" id="nav-submenu-0">
+ <div class="overview"><a href="root//index.html"></a><span class="navButton" onclick="document.getElementById(&quot;nav-submenu-0&quot;).classList.toggle(&quot;hidden&quot;);"><span class="navButtonContent"></span></span></div>
+ <div class="sideMenuPart" id="nav-submenu-0-0">
+ <div class="overview"><a href="root//fn.html">fn</a></div>
+ </div>
+ </div>
+</div>
+
diff --git a/plugins/base/src/test/resources/expect/functionWithReceiver/out/html/root/fn.html b/plugins/base/src/test/resources/expect/functionWithReceiver/out/html/root/fn.html
new file mode 100644
index 00000000..fc3630fc
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/functionWithReceiver/out/html/root/fn.html
@@ -0,0 +1,38 @@
+<html>
+ <head>
+ <title>fn</title>
+ <link href="../../styles/style.css" rel="Stylesheet">
+ <script type="text/javascript" src="../../scripts/navigationLoader.js" async="async"></script>
+ <script>var pathToRoot = "../../";</script>
+ </head>
+ <body>
+ <div id="navigation">
+ <div id="searchBar">
+ <form action="../../-search.html" method="get" id="searchForm"><input type="search" name="query"><input type="submit" value="Search"></form>
+ </div>
+ <div id="sideMenu"></div>
+ </div>
+ <div id="content">//<a href="../index.html">root</a>/<a href="index.html"></a>/<a href="fn.html">fn</a>
+ <h1>fn</h1>
+final fun <a href="">String</a>.<a href="fn.html">fn</a>()
+ <h3>Description</h3>
+Function with receiver
+
+ <h1>fn</h1>
+final fun <a href="">String</a>.<a href="fn.html">fn</a>(<a href="">x</a>: <a href="">Int</a>)
+ <h3>Description</h3>
+Function with receiver
+
+ <h2>Parameters</h2>
+ <table>
+ <thead></thead>
+ <tbody>
+ <tr>
+ <td>x</td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </body>
+</html>
+
diff --git a/plugins/base/src/test/resources/expect/functionWithReceiver/out/html/root/index.html b/plugins/base/src/test/resources/expect/functionWithReceiver/out/html/root/index.html
new file mode 100644
index 00000000..cd92f78d
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/functionWithReceiver/out/html/root/index.html
@@ -0,0 +1,36 @@
+<html>
+ <head>
+ <title></title>
+ <link href="../../styles/style.css" rel="Stylesheet">
+ <script type="text/javascript" src="../../scripts/navigationLoader.js" async="async"></script>
+ <script>var pathToRoot = "../../";</script>
+ </head>
+ <body>
+ <div id="navigation">
+ <div id="searchBar">
+ <form action="../../-search.html" method="get" id="searchForm"><input type="search" name="query"><input type="submit" value="Search"></form>
+ </div>
+ <div id="sideMenu"></div>
+ </div>
+ <div id="content">//<a href="../index.html">root</a>/<a href="index.html"></a>
+ <h1>Package </h1>
+ <h2>Functions</h2>
+ <table>
+ <thead></thead>
+ <tbody>
+ <tr>
+ <td><a href="fn.html">fn</a></td>
+ <td>final fun <a href="">String</a>.<a href="fn.html">fn</a>()</td>
+ <td>Function with receiver</td>
+ </tr>
+ <tr>
+ <td><a href="fn.html">fn</a></td>
+ <td>final fun <a href="">String</a>.<a href="fn.html">fn</a>(<a href="">x</a>: <a href="">Int</a>)</td>
+ <td>Function with receiver</td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </body>
+</html>
+
diff --git a/plugins/base/src/test/resources/expect/functionWithReceiver/src/functionWithReceiver.kt b/plugins/base/src/test/resources/expect/functionWithReceiver/src/functionWithReceiver.kt
new file mode 100644
index 00000000..c8473251
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/functionWithReceiver/src/functionWithReceiver.kt
@@ -0,0 +1,11 @@
+/**
+ * Function with receiver
+ */
+fun String.fn() {
+}
+
+/**
+ * Function with receiver
+ */
+fun String.fn(x: Int) {
+}