<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/language-feature/modules/unscoped-enum-visibility, branch master</title>
<subtitle>Making it easier to work with shaders</subtitle>
<id>https://git.yummers.dev/slang.git/atom?h=master</id>
<link rel='self' href='https://git.yummers.dev/slang.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/'/>
<updated>2025-07-22T22:53:19+00:00</updated>
<entry>
<title>Fix public unscoped enum constants not visible across module boundaries (#7864)</title>
<updated>2025-07-22T22:53:19+00:00</updated>
<author>
<name>Copilot</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2025-07-22T22:53:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=8a36695f1f3abaf98831d4512e74ebd5bce1494e'/>
<id>urn:sha1:8a36695f1f3abaf98831d4512e74ebd5bce1494e</id>
<content type='text'>
* Initial plan

* Fix public unscoped enum constants visibility across module boundaries

Add visibility modifier copying in CompleteDecl for unscoped enum cases.
When synthesizing static const declarations for unscoped enum cases,
copy the visibility modifiers from the original enum declaration to
ensure they have the same visibility scope across module boundaries.

Co-authored-by: csyonghe &lt;2652293+csyonghe@users.noreply.github.com&gt;

* Create new visibility modifier instances instead of sharing existing ones

Address reviewer feedback to avoid sharing modifier instances between
declarations since modifiers form a linked list. Now creates new
instances of the appropriate visibility modifier type (Public, Private,
or Internal) instead of reusing the existing instance.

Co-authored-by: csyonghe &lt;2652293+csyonghe@users.noreply.github.com&gt;

* Move unscoped enum visibility tests into subdirectory structure

Co-authored-by: csyonghe &lt;2652293+csyonghe@users.noreply.github.com&gt;

* Use createByNodeType for visibility modifier creation as suggested

Co-authored-by: csyonghe &lt;2652293+csyonghe@users.noreply.github.com&gt;

* format code (#7867)

Co-authored-by: slangbot &lt;186143334+slangbot@users.noreply.github.com&gt;

---------

Co-authored-by: copilot-swe-agent[bot] &lt;198982749+Copilot@users.noreply.github.com&gt;
Co-authored-by: csyonghe &lt;2652293+csyonghe@users.noreply.github.com&gt;
Co-authored-by: slangbot &lt;ellieh+slangbot@nvidia.com&gt;
Co-authored-by: slangbot &lt;186143334+slangbot@users.noreply.github.com&gt;</content>
</entry>
</feed>
