Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Latest commit

 

History

History
22 lines (13 loc) · 1.44 KB

CONTRIBUTING.md

File metadata and controls

22 lines (13 loc) · 1.44 KB

Contributing

Thanks for helping!

There's not great support (AFAIK) for debugging source generators on VSCode on mac (my go-to development machine). For this project, I use my Windows computer with Visual Studio 2022 to debug the source generator based on the tips here and here.

There are instructions in this article about how to install the .NET Compiler Platform SDK which allows you to view syntax trees for open source code in Visual Studio.

When you start playing with syntax trees it is hard to dig through all that Roslyn objects. I recommend to install .NET Compiler Platform SDK - it is available as separate component in Visual Studio Installer. After installing it in VS you have SyntaxVisualizer window that will visualize each file open currently in IDE. This gives you a quick way to see how syntax tree is structured.

About Source Generators

There are a number of great articles about source generators here. If you need a refresher, I recommend starting there.

SuperNodes is implemented as a incremental generator. Hopefully this will work out okay, but I am a little worried since incremental generators are relatively recent.