Roslyn: What are red and green nodes?

Created on 24 Oct 2015  路  13Comments  路  Source: dotnet/roslyn

I saw a reference to a "red-green" model in https://github.com/KirillOsenkov/XmlParser, and wanted to read up on it, but I couldn't find any obviously-related documentation, not even in GreenNode.cs. I've managed to gather that there are red nodes and green nodes, and it looks like one kind is internal and the other is public, and it looked like there's some hash consing going on, but I'd still like to see a "book of the compiler" on it, or at least a nice big comment reachable from the top of GreenNode.cs.

Area-Compilers Documentation Feature Request Question

All 13 comments

Hmm, well, that certainly helps, but it would sure be nice to have something about this in the tree ...

Oops, misclicked...

Is there an updated link for this? The microsoft link is broken and codeplex closed...

@jmarolf That's the broken msdn link.

@CyrusNajmabadi it loads for me, does that 404?

Crazy! I get:

image

weird, maybe because I am on the microsoft network?
image

Anyways, this should probably be ini the docs here anyway

I think @KirillOsenkov moved some of the codeplex stuff about red/green nodes to github.

Was this page helpful?
0 / 5 - 0 ratings