git » sdk » commit b2dcdaf

These use types not available to the outside

author Stephen Paul Weber
2024-06-19 15:01:51 UTC
committer Stephen Paul Weber
2024-06-19 15:01:51 UTC
parent a564511f869561b1972a878486a6983ab4c01465

These use types not available to the outside

snikket/Stanza.hx +4 -2

diff --git a/snikket/Stanza.hx b/snikket/Stanza.hx
index 06784fa..d29c324 100644
--- a/snikket/Stanza.hx
+++ b/snikket/Stanza.hx
@@ -133,14 +133,16 @@ class Stanza implements NodeInterface {
 		return this;
 	}
 
-	public function addChildren(children:Iterable<Stanza>) {
+	@:allow(snikket)
+	private function addChildren(children:Iterable<Stanza>) {
 		for (child in children) {
 			addChild(child);
 		}
 		return this;
 	}
 
-	public function addChildNodes(children:Iterable<Node>) {
+	@:allow(snikket)
+	private function addChildNodes(children:Iterable<Node>) {
 		for (child in children) {
 			addDirectChild(child);
 		}