Skip to content

Update ext/tokenizer role attributes #1986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions reference/tokenizer/phptoken.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@
</fieldsynopsis>

<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.phptoken')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[not(@role='procedural')])">
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.phptoken')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='PhpToken'])">
<xi:fallback/>
</xi:include>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.phptoken')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])">
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.phptoken')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='PhpToken'])">
<xi:fallback/>
</xi:include>
</classsynopsis>
Expand Down
4 changes: 1 addition & 3 deletions reference/tokenizer/phptoken/construct.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->

<refentry xml:id="phptoken.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>PhpToken::__construct</refname>
Expand All @@ -9,7 +8,7 @@

<refsect1 role="description">
&reftitle.description;
<constructorsynopsis>
<constructorsynopsis role="PhpToken">
<modifier>final</modifier> <modifier>public</modifier> <methodname>PhpToken::__construct</methodname>
<methodparam><type>int</type><parameter>id</parameter></methodparam>
<methodparam><type>string</type><parameter>text</parameter></methodparam>
Expand Down Expand Up @@ -86,4 +85,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

7 changes: 3 additions & 4 deletions reference/tokenizer/phptoken/getTokenName.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->

<refentry xml:id="phptoken.gettokenname" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>PhpToken::getTokenName</refname>
Expand All @@ -9,9 +8,9 @@

<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type class="union"><type>string</type><type>null</type></type> <methodname>PhpToken::getTokenName</methodname>
<void />
<methodsynopsis role="PhpToken">
<modifier>public</modifier> <type class="union"><type>string</type><type>null</type></type><methodname>PhpToken::getTokenName</methodname>
<void/>
</methodsynopsis>
<para>
Returns the name of the token.
Expand Down
5 changes: 2 additions & 3 deletions reference/tokenizer/phptoken/is.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->

<refentry xml:id="phptoken.is" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>PhpToken::is</refname>
Expand All @@ -9,8 +8,8 @@

<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>bool</type> <methodname>PhpToken::is</methodname>
<methodsynopsis role="PhpToken">
<modifier>public</modifier> <type>bool</type><methodname>PhpToken::is</methodname>
<methodparam><type class="union"><type>int</type><type>string</type><type>array</type></type><parameter>kind</parameter></methodparam>
</methodsynopsis>
<para>
Expand Down
7 changes: 3 additions & 4 deletions reference/tokenizer/phptoken/isIgnorable.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->

<refentry xml:id="phptoken.isignorable" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>PhpToken::isIgnorable</refname>
Expand All @@ -9,9 +8,9 @@

<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>bool</type> <methodname>PhpToken::isIgnorable</methodname>
<void />
<methodsynopsis role="PhpToken">
<modifier>public</modifier> <type>bool</type><methodname>PhpToken::isIgnorable</methodname>
<void/>
</methodsynopsis>
<para>
Tells whether the token would be ignored by the PHP parser.
Expand Down
7 changes: 3 additions & 4 deletions reference/tokenizer/phptoken/toString.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->

<refentry xml:id="phptoken.tostring" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>PhpToken::__toString</refname>
Expand All @@ -9,9 +8,9 @@

<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>string</type> <methodname>PhpToken::__toString</methodname>
<void />
<methodsynopsis role="PhpToken">
<modifier>public</modifier> <type>string</type><methodname>PhpToken::__toString</methodname>
<void/>
</methodsynopsis>
<para>
Returns the textual content of the token.
Expand Down
5 changes: 2 additions & 3 deletions reference/tokenizer/phptoken/tokenize.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->

<refentry xml:id="phptoken.tokenize" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>PhpToken::tokenize</refname>
Expand All @@ -9,8 +8,8 @@

<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <modifier>static</modifier> <type>array</type> <methodname>PhpToken::tokenize</methodname>
<methodsynopsis role="PhpToken">
<modifier>public</modifier> <modifier>static</modifier> <type>array</type><methodname>PhpToken::tokenize</methodname>
<methodparam><type>string</type><parameter>code</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
Expand Down