From e2280fbfa8ce9a34e9b36fa0d65d8e98da17388d Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Thu, 22 Apr 2021 10:40:44 +0200 Subject: [PATCH] Added comment for Struct class --- source/tlang/compiler/symbols/containers.d | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/tlang/compiler/symbols/containers.d b/source/tlang/compiler/symbols/containers.d index 37e9477..483827b 100644 --- a/source/tlang/compiler/symbols/containers.d +++ b/source/tlang/compiler/symbols/containers.d @@ -39,6 +39,13 @@ public class Module : Entity, Container } } +/** +* Struct +* +* A Struct can only contain Entity's +* that are Variables (TODO: Enforce in parser) +* TODO: Possibly enforce here too +*/ public class Struct : Type, Container { private Statement[] statements;