Skip to content

Commit

Permalink
These use types not available to the outside
Browse files Browse the repository at this point in the history
  • Loading branch information
singpolyma committed Jun 19, 2024
1 parent a564511 commit b2dcdaf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions snikket/Stanza.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b2dcdaf

Please sign in to comment.