Skip to content

Commit

Permalink
Apply automatic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 authored and github-actions[bot] committed Apr 9, 2024
1 parent 1f73a73 commit f4527a7
Show file tree
Hide file tree
Showing 12 changed files with 180 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dparse/lexer.html
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ <h2>Aliases</h2>
</a>
</td>
<td>
<code class="prettyprint lang-d"><a href="../std/experimental/lexer/TokenStructure.html"><span class="typ">TokenStructure</span></a>!(ubyte,"\x0a import dparse.lexer : Token;\x0a\x0a this(Token token) pure nothrow @safe @nogc {\x0a this(token.type, token.text, token.line, token.column, token.index);\x0a }\x0a\x0a int opCmp(size_t i) const pure nothrow @safe @nogc {\x0a if (index < i) return -1;\x0a if (index > i) return 1;\x0a return 0;\x0a }\x0a\x0a int opCmp(ref const typeof(this) other) const pure nothrow @safe @nogc {\x0a return opCmp(other.index);\x0a }\x0a")</code>
<code class="prettyprint lang-d"><a href="../std/experimental/lexer/TokenStructure.html"><span class="typ">TokenStructure</span></a>!(ubyte,"\x0a import dparse.lexer : Token;\x0a\x0a this(Token token) pure nothrow @safe @nogc {\x0a this(token.type, token.text, token.line, token.column, token.index);\x0a }\x0a\x0a int opCmp(size_t i) const pure nothrow @safe @nogc {\x0a if (index < i) return -1;\x0a if (index > i) return 1;\x0a return 0;\x0a }\x0a\x0a int opCmp(ref const typeof(this) other) const pure nothrow @safe @nogc {\x0a return opCmp(other.index);\x0a }\x0a\x0a string toString() const @safe pure\x0a {\x0a import std.array : appender;\x0a\x0a auto sink = appender!string;\x0a toString(sink);\x0a return sink.data;\x0a }\x0a\x0a void toString(R)(auto ref R sink) const\x0a {\x0a import std.conv : to;\x0a import dparse.lexer : str;\x0a\x0a sink.put(`trivia!"`)</code>
</td>
<td>Same as Token, but doesn't contain child TriviaTokens
</td>
Expand Down
12 changes: 12 additions & 0 deletions dparse/lexer/TokenTriviaFields.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,18 @@ <h1>Template TokenTriviaFields</h1><p></p>
</td>
<td></td>
</tr>
<tr>
<td>
<a href="../../dparse/lexer/TokenTriviaFields.toString.html">toString</a>
</td>
<td></td>
</tr>
<tr>
<td>
<a href="../../dparse/lexer/TokenTriviaFields.toString.html">toString</a>
</td>
<td></td>
</tr>
<tr>
<td>
<a href="../../dparse/lexer/TokenTriviaFields.trailingComment.html">trailingComment</a>
Expand Down
4 changes: 2 additions & 2 deletions dparse/lexer/TokenTriviaFields.opCmp.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ <h1>TokenTriviaFields.opCmp - multiple declarations</h1>
<span class="typ">int</span> <span class="pln">opCmp</span>
<span class="pun">(</span>
<br/>
&nbsp;&nbsp;<span class="pln">size_t</span> <span class="pln">i</span>
&nbsp;&nbsp;<span class="kwd">const ref </span><span class="kwd">typeof</span><span class="pun">(</span><span class="kwd">this</span><span class="pun">)</span> <span class="pln">other</span>
<br/>
<span class="pun">)</span><span class="pln"> </span><span class="kwd">const pure nothrow @nogc @safe</span><span class="pun">;</span>
</div>
Expand All @@ -139,7 +139,7 @@ <h2 id="1">Function TokenTriviaFields.opCmp</h2><p></p>
<span class="typ">int</span> <span class="pln">opCmp</span>
<span class="pun">(</span>
<br/>
&nbsp;&nbsp;<span class="kwd">const ref </span><span class="kwd">typeof</span><span class="pun">(</span><span class="kwd">this</span><span class="pun">)</span> <span class="pln">other</span>
&nbsp;&nbsp;<span class="pln">size_t</span> <span class="pln">i</span>
<br/>
<span class="pun">)</span><span class="pln"> </span><span class="kwd">const pure nothrow @nogc @safe</span><span class="pun">;</span>
</div>
Expand Down
155 changes: 155 additions & 0 deletions dparse/lexer/TokenTriviaFields.toString.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"/>
<title>TokenTriviaFields.toString - multiple declarations</title>
<link rel="stylesheet" href="../../css/style.min.css"/>
<script type="text/javascript" src="../../js/script.min.js"></script>
</head>
<body onload="setupDdox();">
<header></header>
<nav id="main-nav">
<div>
<noscript>
<p style="color: red">The search functionality needs JavaScript enabled</p>
</noscript>
<div id="symbolSearchPane" style="display: none">
<form action="#" method="GET">
<input id="symbolSearch" type="text" name="q" placeholder="Search for symbols" autocomplete="off" onchange="performSymbolSearch(24);" onkeypress="this.onchange();" onpaste="this.onchange();" oninput="this.onchange();" autofocus/>
</form>
<ul id="symbolSearchResults" class="symbolList" style="display: none"></ul><script type="application/javascript" src="../../symbols.js"></script><script type="application/javascript">var symbolSearchRootDir = "../../";
document.getElementById('symbolSearchPane').style.display = 'block';</script>
</div>
<ul class="tree-view">
<li class="tree-view ">
<div class="package ">dparse
</div>
<ul class="tree-view">
<li>
<div class="module ">
<a href="../../dparse/ast.html">ast</a>
</div>
</li>
<li>
<div class="module ">
<a href="../../dparse/astprinter.html">astprinter</a>
</div>
</li>
<li>
<div class="module ">
<a href="../../dparse/entities.html">entities</a>
</div>
</li>
<li>
<div class="module ">
<a href="../../dparse/formatter.html">formatter</a>
</div>
</li>
<li>
<div class="module selected">
<a href="../../dparse/lexer.html">lexer</a>
</div>
</li>
<li>
<div class="module ">
<a href="../../dparse/parser.html">parser</a>
</div>
</li>
<li>
<div class="module ">
<a href="../../dparse/rollback_allocator.html">rollback_allocator</a>
</div>
</li>
<li>
<div class="module ">
<a href="../../dparse/stack_buffer.html">stack_buffer</a>
</div>
</li>
<li>
<div class="module ">
<a href="../../dparse/strings.html">strings</a>
</div>
</li>
<li>
<div class="module ">
<a href="../../dparse/trivia.html">trivia</a>
</div>
</li>
</ul>
</li>
<li class="tree-view collapsed">
<div class="package ">std
</div>
<ul class="tree-view">
<li class="tree-view collapsed">
<div class="package ">experimental
</div>
<ul class="tree-view">
<li>
<div class="module ">
<a href="../../std/experimental/lexer.html">lexer</a>
</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<p id="main-nav-footer">
Built with
<a href="https://github.com/MartinNowak/scod">scod</a>
</p>
</nav>
<div id="main-contents">
<div>
<h1>TokenTriviaFields.toString - multiple declarations</h1>
<nav class="page-nav">
<ul>
<li>
<a href="#0">
Function <code>TokenTriviaFields.toString</code>
</a>
</li>
<li>
<a href="#1">
Function <code>TokenTriviaFields.toString</code>
</a>
</li>
</ul>
</nav><h2 id="0">Function TokenTriviaFields.toString</h2><p></p>
<div class="prototype">
<code class="lang-d">
<div class="single-prototype">
<span class="typ">string</span> <span class="pln">toString</span><span class="pun">(</span><span class="pun">)</span><span class="pln"> </span><span class="kwd">const pure @safe</span><span class="pun">;</span>
</div>
</code>
</div>

<h2 id="1">Function TokenTriviaFields.toString</h2><p></p>
<div class="prototype">
<code class="lang-d">
<div class="single-prototype">
<span class="typ">void</span> <span class="pln">toString</span>(R)
<span class="pun">(</span>
<br/>
&nbsp;&nbsp;<span class="kwd">auto ref </span><span class="pln">R</span> <span class="pln">sink</span>
<br/>
<span class="pun">)</span><span class="pln"> </span><span class="kwd">const</span><span class="pun">;</span>
</div>
</code>
</div>


</div>
<footer>
<div id="license-info">



</div>
</footer>
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion dparse/lexer/TriviaToken.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ <h1>Alias TriviaToken</h1><p>Same as Token, but doesn't contain child TriviaToke
<code class="lang-d">
<div class="single-prototype">
<span class="kwd">alias</span> <span class="pln">TriviaToken</span>
<span class="pun">=</span> <a href="../../std/experimental/lexer/TokenStructure.html"><span class="typ">TokenStructure</span></a>!(ubyte,"\x0a import dparse.lexer : Token;\x0a\x0a this(Token token) pure nothrow @safe @nogc {\x0a this(token.type, token.text, token.line, token.column, token.index);\x0a }\x0a\x0a int opCmp(size_t i) const pure nothrow @safe @nogc {\x0a if (index < i) return -1;\x0a if (index > i) return 1;\x0a return 0;\x0a }\x0a\x0a int opCmp(ref const typeof(this) other) const pure nothrow @safe @nogc {\x0a return opCmp(other.index);\x0a }\x0a")<span class="pun">;</span>
<span class="pun">=</span> <a href="../../std/experimental/lexer/TokenStructure.html"><span class="typ">TokenStructure</span></a>!(ubyte,"\x0a import dparse.lexer : Token;\x0a\x0a this(Token token) pure nothrow @safe @nogc {\x0a this(token.type, token.text, token.line, token.column, token.index);\x0a }\x0a\x0a int opCmp(size_t i) const pure nothrow @safe @nogc {\x0a if (index < i) return -1;\x0a if (index > i) return 1;\x0a return 0;\x0a }\x0a\x0a int opCmp(ref const typeof(this) other) const pure nothrow @safe @nogc {\x0a return opCmp(other.index);\x0a }\x0a\x0a string toString() const @safe pure\x0a {\x0a import std.array : appender;\x0a\x0a auto sink = appender!string;\x0a toString(sink);\x0a return sink.data;\x0a }\x0a\x0a void toString(R)(auto ref R sink) const\x0a {\x0a import std.conv : to;\x0a import dparse.lexer : str;\x0a\x0a sink.put(`trivia!"`)<span class="pun">;</span>
</div>
</code>
</div>
Expand Down
2 changes: 1 addition & 1 deletion dparse/lexer/getTokensForParser.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ <h1>Function getTokensForParser</h1><p></p>
<div class="prototype">
<code class="lang-d">
<div class="single-prototype">
<span class="kwd">const</span><span class="pun">(</span><a href="../../dparse/lexer/Token.html"><span class="typ">Token</span></a><span class="pun">)</span><span class="pun">[]</span> <span class="pln">getTokensForParser</span>(R)
<a href="../../dparse/lexer/Token.html"><span class="typ">Token</span></a><span class="pun">[]</span> <span class="pln">getTokensForParser</span>(R)
<span class="pun">(</span>
<br/>
&nbsp;&nbsp;<span class="pln">R</span> <span class="pln">sourceCode</span><span class="pun">,</span>
Expand Down
2 changes: 1 addition & 1 deletion dparse/parser/Parser.parseNamedTemplateArgumentList.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ <h1>Function Parser.parseNamedTemplateArgumentList</h1><p>Parses a NamedTemplate
</div>
</code>
</div>
<section><p>templateArgumentList:
<section><p>namedTemplateArgumentList:
namedTemplateArgument (',' namedTemplateArgument?)*
;
</p>
Expand Down
2 changes: 1 addition & 1 deletion dparse/parser/Parser.parseWhileStatement.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ <h1>Function Parser.parseWhileStatement</h1><p>Parses a WhileStatement
</code>
</div>
<section><p>whileStatement:
'while' '(' expression ')' declarationOrStatement
'while' '(' ifCondition ')' declarationOrStatement
;
</p>
</section>
Expand Down
2 changes: 1 addition & 1 deletion file_hashes.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions grammar.html
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@
<pre class="grammar"><b><span class="ddoc_anchor" id="templateArgumentList"></span> templateArgumentList</b>:
<a href="#templateArgument"><b>templateArgument</b></a> (<span class="string_literal"><i>&#39;,&#39;</i></span> <a href="#templateArgument"><b>templateArgument</b></a>?)*
;</pre>
<pre class="grammar"><b><span class="ddoc_anchor" id="templateArgumentList"></span> templateArgumentList</b>:
<pre class="grammar"><b><span class="ddoc_anchor" id="namedTemplateArgumentList"></span> namedTemplateArgumentList</b>:
<a href="#namedTemplateArgument"><b>namedTemplateArgument</b></a> (<span class="string_literal"><i>&#39;,&#39;</i></span> <a href="#namedTemplateArgument"><b>namedTemplateArgument</b></a>?)*
;</pre>
<pre class="grammar"><b><span class="ddoc_anchor" id="templateArguments"></span> templateArguments</b>:
Expand Down Expand Up @@ -1128,7 +1128,7 @@
<span class="string_literal"><i>&#39;version&#39;</i></span> <span class="string_literal"><i>&#39;=&#39;</i></span> (<span class="string_literal"><i>Identifier</i></span> | <span class="string_literal"><i>IntegerLiteral</i></span>) <span class="string_literal"><i>&#39;;&#39;</i></span>
;</pre>
<pre class="grammar"><b><span class="ddoc_anchor" id="whileStatement"></span> whileStatement</b>:
<span class="string_literal"><i>&#39;while&#39;</i></span> <span class="string_literal"><i>&#39;(&#39;</i></span> <a href="#expression"><b>expression</b></a> <span class="string_literal"><i>&#39;)&#39;</i></span> <a href="#declarationOrStatement"><b>declarationOrStatement</b></a>
<span class="string_literal"><i>&#39;while&#39;</i></span> <span class="string_literal"><i>&#39;(&#39;</i></span> <a href="#ifCondition"><b>ifCondition</b></a> <span class="string_literal"><i>&#39;)&#39;</i></span> <a href="#declarationOrStatement"><b>declarationOrStatement</b></a>
;</pre>
<pre class="grammar"><b><span class="ddoc_anchor" id="withStatement"></span> withStatement</b>:
<span class="string_literal"><i>&#39;with&#39;</i></span> <span class="string_literal"><i>&#39;(&#39;</i></span> <a href="#expression"><b>expression</b></a> <span class="string_literal"><i>&#39;)&#39;</i></span> <a href="#declarationOrStatement"><b>declarationOrStatement</b></a>
Expand Down
2 changes: 2 additions & 0 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2203,6 +2203,8 @@
<url><loc>http://127.0.0.1/dparse/lexer/TokenTriviaFields.memoizedTrailingComment.html</loc></url>
<url><loc>http://127.0.0.1/dparse/lexer/TokenTriviaFields.opCmp.html</loc></url>
<url><loc>http://127.0.0.1/dparse/lexer/TokenTriviaFields.opCmp.html</loc></url>
<url><loc>http://127.0.0.1/dparse/lexer/TokenTriviaFields.toString.html</loc></url>
<url><loc>http://127.0.0.1/dparse/lexer/TokenTriviaFields.toString.html</loc></url>
<url><loc>http://127.0.0.1/dparse/lexer/TokenTriviaFields.trailingComment.html</loc></url>
<url><loc>http://127.0.0.1/dparse/lexer/TokenTriviaFields.trailingTrivia.html</loc></url>
<url><loc>http://127.0.0.1/dparse/lexer/TriviaToken.html</loc></url>
Expand Down
1 change: 1 addition & 0 deletions symbols.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f4527a7

Please sign in to comment.