Skip to content

Preprocessor: Add synthetic token for trailing disabled branch trivia; - #1928

Open
AndrewNolte wants to merge 1 commit into
MikePopoloski:masterfrom
AndrewNolte:AndrewNolte/stack/28
Open

Preprocessor: Add synthetic token for trailing disabled branch trivia;#1928
AndrewNolte wants to merge 1 commit into
MikePopoloski:masterfrom
AndrewNolte:AndrewNolte/stack/28

Conversation

@AndrewNolte

@AndrewNolte AndrewNolte commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

View individual changes

This was breaking cst json round trip when ifdefs were present.
Added another round trip test for that case.

This also puts all of the disabled content back under disabledTokens, which is generally easier to work with.

AndrewNolte added a commit to AndrewNolte/slang that referenced this pull request Aug 6, 2026
This was breaking cst json round trip when ifdefs were present.
Added another round trip test for that case.

This also puts all of the disabled content back under disabledTokens, which is generally easier to work with.

stack-info: PR: MikePopoloski#1928, branch: AndrewNolte/stack/28
@AndrewNolte
AndrewNolte force-pushed the AndrewNolte/stack/28 branch 2 times, most recently from 02574ca to 0050674 Compare August 6, 2026 15:52
@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.01%. Comparing base (d69e890) to head (21a070f).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1928      +/-   ##
==========================================
- Coverage   96.05%   96.01%   -0.05%     
==========================================
  Files         247      247              
  Lines       56716    56866     +150     
==========================================
+ Hits        54481    54600     +119     
- Misses       2235     2266      +31     
Files with missing lines Coverage Δ
include/slang/syntax/CSTSerializer.h 100.00% <ø> (ø)
source/parsing/Preprocessor.cpp 99.78% <100.00%> (-0.01%) ⬇️
source/syntax/CSTSerializer.cpp 89.79% <100.00%> (-0.21%) ⬇️

... and 3 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d69e890...21a070f. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AndrewNolte

Copy link
Copy Markdown
Contributor Author

Going to clean this up a bit more

@AndrewNolte
AndrewNolte marked this pull request as draft August 6, 2026 21:11
AndrewNolte added a commit to AndrewNolte/slang that referenced this pull request Aug 6, 2026
This was breaking cst json round trip when ifdefs were present.
Added another round trip test for that case.

This also puts all of the disabled content back under disabledTokens, which is generally easier to work with.

stack-info: PR: MikePopoloski#1928, branch: AndrewNolte/stack/28
@AndrewNolte
AndrewNolte force-pushed the AndrewNolte/stack/28 branch from 21a070f to 5df66c0 Compare August 6, 2026 21:11
@AndrewNolte
AndrewNolte marked this pull request as ready for review August 6, 2026 21:11
This was breaking cst json round trip when ifdefs were present.
Added another round trip test for that case.

This also puts all of the disabled content back under disabledTokens, which is generally easier to work with.

stack-info: PR: MikePopoloski#1928, branch: AndrewNolte/stack/28
@AndrewNolte
AndrewNolte marked this pull request as draft August 6, 2026 21:13
@AndrewNolte
AndrewNolte force-pushed the AndrewNolte/stack/28 branch from add94ca to 2778bf4 Compare August 6, 2026 21:14
@AndrewNolte
AndrewNolte marked this pull request as ready for review August 6, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant