TranslationUnitContext
uses empty struct as a placeholder for forward declaration
#504
Labels
area:compiler
Related to code compilation or type checking
kind:refactor
Internal changes not affecting the compiler behavior
status:help-wanted
Open for contributors
See this snippet:
Cesium/Cesium.CodeGen/Contexts/TranslationUnitContext.cs
Lines 186 to 196 in 532fbec
From this, it looks like we use an empty struct (with no members) as a placeholder for a forward declaration, or something similar.
Empty structs is a useful standard extension, and we may choose to implement it later; thus this will break.
We should improve the architecture here and make the placeholder more explicit.
The text was updated successfully, but these errors were encountered: