<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qt/qtdeclarative.git/src/qmldom/qqmldomastcreator.cpp, branch wip/nativemenus</title>
<subtitle>Qt Declarative (Quick 2)
</subtitle>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/'/>
<entry>
<title>qqmldomastcreator: move widely used check into own method</title>
<updated>2024-05-23T11:28:15+00:00</updated>
<author>
<name>Sami Shalayel</name>
<email>sami.shalayel@qt.io</email>
</author>
<published>2024-05-21T13:40:47+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=6c68927c2db35f9a5a19e13b2219e76d671f7add'/>
<id>6c68927c2db35f9a5a19e13b2219e76d671f7add</id>
<content type='text'>
Move widely used checks into inline method to avoid code
duplication and possible typos.

Introduce stackHasScriptVariant() which checks whether the last item of
the scriptStack is indeed a variant and not a list, and
stackHasScriptList() that checks whether the last item is a list.

Change-Id: I54c75040411233fd9dcfe41816fea4e2cde975d1
Reviewed-by: Ulf Hermann &lt;ulf.hermann@qt.io&gt;
Reviewed-by: Fabian Kosmale &lt;fabian.kosmale@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move widely used checks into inline method to avoid code
duplication and possible typos.

Introduce stackHasScriptVariant() which checks whether the last item of
the scriptStack is indeed a variant and not a list, and
stackHasScriptList() that checks whether the last item is a list.

Change-Id: I54c75040411233fd9dcfe41816fea4e2cde975d1
Reviewed-by: Ulf Hermann &lt;ulf.hermann@qt.io&gt;
Reviewed-by: Fabian Kosmale &lt;fabian.kosmale@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>semantichighlighting: highlight for-declarations</title>
<updated>2024-05-07T11:36:09+00:00</updated>
<author>
<name>Semih Yavuz</name>
<email>semih.yavuz@qt.io</email>
</author>
<published>2024-04-30T12:33:24+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=5230151276041b16521122d6a55f5bc45780cdf2'/>
<id>5230151276041b16521122d6a55f5bc45780cdf2</id>
<content type='text'>
Add declarationKindToken location in the pattern element node. This is
required for semantic highlighting to highlight the type correctly
within iteration statements.

Add type identifier region for the declaration kind token in the
for-declaration construct.

Fixes: QTBUG-124677
Task-number: QTBUG-120000
Change-Id: I02520bdc6f1b9dfc5d47078cd7e5e8d2f40bf382
Reviewed-by: Sami Shalayel &lt;sami.shalayel@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add declarationKindToken location in the pattern element node. This is
required for semantic highlighting to highlight the type correctly
within iteration statements.

Add type identifier region for the declaration kind token in the
for-declaration construct.

Fixes: QTBUG-124677
Task-number: QTBUG-120000
Change-Id: I02520bdc6f1b9dfc5d47078cd7e5e8d2f40bf382
Reviewed-by: Sami Shalayel &lt;sami.shalayel@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>qmldom: Add more file locations</title>
<updated>2024-05-07T11:34:50+00:00</updated>
<author>
<name>Semih Yavuz</name>
<email>semih.yavuz@qt.io</email>
</author>
<published>2024-04-15T08:37:22+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=40543cfaeaaea182af9cacd858c902d7d07ffc0a'/>
<id>40543cfaeaaea182af9cacd858c902d7d07ffc0a</id>
<content type='text'>
On token is defined as colon token in the grammer file. If the flag
hasOnToken is set, then the colon token is actually on token.

Set file locations for Type *. This is needed for correctly highlighting
type names in the form of list&lt;Item&gt; etc.

Also add missing file locations for the if keyword, switch and for
keywords. These regions are required for semantic highlighting.

Task-number: QTBUG-120000
Change-Id: I8f6a8c0b317ff30422ccc8e1774ca3a80472a506
Reviewed-by: Fabian Kosmale &lt;fabian.kosmale@qt.io&gt;
Reviewed-by: Sami Shalayel &lt;sami.shalayel@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On token is defined as colon token in the grammer file. If the flag
hasOnToken is set, then the colon token is actually on token.

Set file locations for Type *. This is needed for correctly highlighting
type names in the form of list&lt;Item&gt; etc.

Also add missing file locations for the if keyword, switch and for
keywords. These regions are required for semantic highlighting.

Task-number: QTBUG-120000
Change-Id: I8f6a8c0b317ff30422ccc8e1774ca3a80472a506
Reviewed-by: Fabian Kosmale &lt;fabian.kosmale@qt.io&gt;
Reviewed-by: Sami Shalayel &lt;sami.shalayel@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add file locations for enum keyword and values</title>
<updated>2024-04-10T22:06:19+00:00</updated>
<author>
<name>Semih Yavuz</name>
<email>semih.yavuz@qt.io</email>
</author>
<published>2024-03-27T10:02:59+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=5b8cb2f962bc110ce205362a7a1b931639892b61'/>
<id>5b8cb2f962bc110ce205362a7a1b931639892b61</id>
<content type='text'>
Create file location regions for enum keyword and identifiers.
These regions are required for getting the source location of the
corresponding dom element which is needed to implement semantic tokens
highlighting feature.

Adapt comments to not attach those keywords as it breaks down the
formatter.

Task-number: QTBUG-123775
Task-number: QTBUG-120000
Change-Id: I25be2cf4f89b96ad513a9724e7a2c88e220de529
Reviewed-by: Olivier De Cannière &lt;olivier.decanniere@qt.io&gt;
Reviewed-by: Sami Shalayel &lt;sami.shalayel@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Create file location regions for enum keyword and identifiers.
These regions are required for getting the source location of the
corresponding dom element which is needed to implement semantic tokens
highlighting feature.

Adapt comments to not attach those keywords as it breaks down the
formatter.

Task-number: QTBUG-123775
Task-number: QTBUG-120000
Change-Id: I25be2cf4f89b96ad513a9724e7a2c88e220de529
Reviewed-by: Olivier De Cannière &lt;olivier.decanniere@qt.io&gt;
Reviewed-by: Sami Shalayel &lt;sami.shalayel@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add property type identifier locations</title>
<updated>2024-04-10T22:06:15+00:00</updated>
<author>
<name>Semih Yavuz</name>
<email>semih.yavuz@qt.io</email>
</author>
<published>2024-03-19T12:11:32+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=c5100d5b8766d15d696d6064d28f6769866c4456'/>
<id>c5100d5b8766d15d696d6064d28f6769866c4456</id>
<content type='text'>
It is going to be used in semantic highlighting to get source locations
 of the property types.

Task-number: QTBUG-123775
Task-number: QTBUG-120000
Change-Id: I4d9c765972d10a68a8aa3ec2761ee6088ec5e6c4
Reviewed-by: Olivier De Cannière &lt;olivier.decanniere@qt.io&gt;
Reviewed-by: Sami Shalayel &lt;sami.shalayel@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is going to be used in semantic highlighting to get source locations
 of the property types.

Task-number: QTBUG-123775
Task-number: QTBUG-120000
Change-Id: I4d9c765972d10a68a8aa3ec2761ee6088ec5e6c4
Reviewed-by: Olivier De Cannière &lt;olivier.decanniere@qt.io&gt;
Reviewed-by: Sami Shalayel &lt;sami.shalayel@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add file locations for Pragma keyword, id and the values</title>
<updated>2024-04-10T22:06:11+00:00</updated>
<author>
<name>Semih Yavuz</name>
<email>semih.yavuz@qt.io</email>
</author>
<published>2024-03-20T18:48:24+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=a8cb8731c460845e95d4529de8abcfdc544c4a88'/>
<id>a8cb8731c460845e95d4529de8abcfdc544c4a88</id>
<content type='text'>
Add missing identifier token location in the grammar file. Implement the
missing file location regions for Pragma dom element. Those regions are
the way to get source location of the corresponding dom element in the
Dom API. It is needed in semantic highlighting implementation.

Adding new region breaks a few of the pragma completions tests since it
changes the closest item found and this makes the  assumption that colon
region exist wrong . Fix it by passing the Pragma element instead of the
subelements of it to insidePragmaCompletion function. This guarantees that we
find the ColonTokenRegion in the current item.

Task-number: QTBUG-123775
Task-number: QTBUG-120000
Change-Id: I2759412810ce125d6ee36bb0d70509a859667266
Reviewed-by: Sami Shalayel &lt;sami.shalayel@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add missing identifier token location in the grammar file. Implement the
missing file location regions for Pragma dom element. Those regions are
the way to get source location of the corresponding dom element in the
Dom API. It is needed in semantic highlighting implementation.

Adding new region breaks a few of the pragma completions tests since it
changes the closest item found and this makes the  assumption that colon
region exist wrong . Fix it by passing the Pragma element instead of the
subelements of it to insidePragmaCompletion function. This guarantees that we
find the ColonTokenRegion in the current item.

Task-number: QTBUG-123775
Task-number: QTBUG-120000
Change-Id: I2759412810ce125d6ee36bb0d70509a859667266
Reviewed-by: Sami Shalayel &lt;sami.shalayel@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add missing file locations in Function Declarations</title>
<updated>2024-04-10T22:06:07+00:00</updated>
<author>
<name>Semih Yavuz</name>
<email>semih.yavuz@qt.io</email>
</author>
<published>2024-03-20T18:39:36+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=47e76e83baa2bec96a3a84e60ed621138915bc95'/>
<id>47e76e83baa2bec96a3a84e60ed621138915bc95</id>
<content type='text'>
Create file location regions for function and signal keywords
as well as parameter type identifier and return type identifier.
These regions are required for getting the source location of the
corresponding dom element which is needed to implement semantic tokens
highlighting feature.

Task-number: QTBUG-123775
Task-number: QTBUG-120000
Change-Id: Id37681ec240c4a52e82e75cb70e68f53b5800fcc
Reviewed-by: Olivier De Cannière &lt;olivier.decanniere@qt.io&gt;
Reviewed-by: Sami Shalayel &lt;sami.shalayel@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Create file location regions for function and signal keywords
as well as parameter type identifier and return type identifier.
These regions are required for getting the source location of the
corresponding dom element which is needed to implement semantic tokens
highlighting feature.

Task-number: QTBUG-123775
Task-number: QTBUG-120000
Change-Id: Id37681ec240c4a52e82e75cb70e68f53b5800fcc
Reviewed-by: Olivier De Cannière &lt;olivier.decanniere@qt.io&gt;
Reviewed-by: Sami Shalayel &lt;sami.shalayel@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add missing file locations in Import</title>
<updated>2024-04-10T22:06:03+00:00</updated>
<author>
<name>Semih Yavuz</name>
<email>semih.yavuz@qt.io</email>
</author>
<published>2024-03-25T17:23:13+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=4f0b19cda0ec0925f62264ae3a97e6d891c4add3'/>
<id>4f0b19cda0ec0925f62264ae3a97e6d891c4add3</id>
<content type='text'>
FileLocationRegions are useful to get source location information for a
particular dom item. In semantic highlighting, we need the source
location of the token to encode it properly. This commit adds the file
location information for Import dom elements' fields using the relavant
regions. Also introduce new region so-called VersionRegion which keeps
the source location of versioning tokens.

Task-number: QTBUG-123775
Task-number: QTBUG-120000
Change-Id: Ifca472676049eb0039dfd0170f0738f9a6764cfe
Reviewed-by: Qt CI Bot &lt;qt_ci_bot@qt-project.org&gt;
Reviewed-by: Sami Shalayel &lt;sami.shalayel@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
FileLocationRegions are useful to get source location information for a
particular dom item. In semantic highlighting, we need the source
location of the token to encode it properly. This commit adds the file
location information for Import dom elements' fields using the relavant
regions. Also introduce new region so-called VersionRegion which keeps
the source location of versioning tokens.

Task-number: QTBUG-123775
Task-number: QTBUG-120000
Change-Id: Ifca472676049eb0039dfd0170f0738f9a6764cfe
Reviewed-by: Qt CI Bot &lt;qt_ci_bot@qt-project.org&gt;
Reviewed-by: Sami Shalayel &lt;sami.shalayel@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>dom: avoid asserts during dom construction</title>
<updated>2024-04-05T15:45:42+00:00</updated>
<author>
<name>Sami Shalayel</name>
<email>sami.shalayel@qt.io</email>
</author>
<published>2024-03-21T13:43:19+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=4c4605be79e564921699a065df58333d3ee10d59'/>
<id>4c4605be79e564921699a065df58333d3ee10d59</id>
<content type='text'>
Add missing safeguards to avoid crashing when constructing the Dom, also
add some tests.

Pick-to: 6.7
Fixes: QTBUG-123871
Change-Id: Ie5da7c3b7bbf61d49d755ec6c338e2011532e89b
Reviewed-by: Fabian Kosmale &lt;fabian.kosmale@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add missing safeguards to avoid crashing when constructing the Dom, also
add some tests.

Pick-to: 6.7
Fixes: QTBUG-123871
Change-Id: Ie5da7c3b7bbf61d49d755ec6c338e2011532e89b
Reviewed-by: Fabian Kosmale &lt;fabian.kosmale@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>dom: dot separated identifiers for all bindings</title>
<updated>2024-04-05T15:45:42+00:00</updated>
<author>
<name>Sami Shalayel</name>
<email>sami.shalayel@qt.io</email>
</author>
<published>2024-03-25T15:15:17+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=39e5a69b4d79db0aa2fc2abfcc925370a1d04b68'/>
<id>39e5a69b4d79db0aa2fc2abfcc925370a1d04b68</id>
<content type='text'>
Amends a44f21f19462cc79f82080404515c4322b7728ee that forgot to set the
bindingIdentifiers for object and array bindings (it only did script
bindings).

For some reasons, this makes
tst_qmlls_modules::documentFormatting(verbatimString.qml) crash. Fix
that crash by explicitly disabling scriptexpressions on the
(scriptexpression-)unsupported AST::TemplateLiteral.

Add a const to fieldMemberExpressionForQualifiedId()'s argument to be
able to distinguish between the "input" and "output" arguments of
setBindingIdentifiers(): identifiers is supposed to be read, and
bindingPtr is supposed to be modified.

Fixes: QTBUG-123619
Change-Id: I02e164ea22416fc13202a119896ad21cc82e5d41
Reviewed-by: Ulf Hermann &lt;ulf.hermann@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Amends a44f21f19462cc79f82080404515c4322b7728ee that forgot to set the
bindingIdentifiers for object and array bindings (it only did script
bindings).

For some reasons, this makes
tst_qmlls_modules::documentFormatting(verbatimString.qml) crash. Fix
that crash by explicitly disabling scriptexpressions on the
(scriptexpression-)unsupported AST::TemplateLiteral.

Add a const to fieldMemberExpressionForQualifiedId()'s argument to be
able to distinguish between the "input" and "output" arguments of
setBindingIdentifiers(): identifiers is supposed to be read, and
bindingPtr is supposed to be modified.

Fixes: QTBUG-123619
Change-Id: I02e164ea22416fc13202a119896ad21cc82e5d41
Reviewed-by: Ulf Hermann &lt;ulf.hermann@qt.io&gt;
</pre>
</div>
</content>
</entry>
</feed>
