Review suggestions.

This commit is contained in:
Daniel Kirchner
2020-04-16 16:42:12 +02:00
parent 3a5a4c6505
commit 6093982606
5 changed files with 9 additions and 5 deletions
+5 -1
View File
@@ -130,7 +130,11 @@ struct TypeDeclarationAnnotation: DeclarationAnnotation
struct StructDeclarationAnnotation: TypeDeclarationAnnotation
{
/// Whether the struct is recursive. Will be filled in by the DeclarationTypeChecker.
/// Whether the struct is recursive, i.e. if the struct (recursively) contains a member that involves a struct of the same
/// type, either in a dynamic array, as member of another struct or inside a mapping.
/// Only cases in which the recursive occurrence is within a dynamic array or a mapping are valid, while direct
/// recursion immediately raises an error.
/// Will be filled in by the DeclarationTypeChecker.
std::optional<bool> recursive;
};