Skip to content

Commit

Permalink
Container
Browse files Browse the repository at this point in the history
- Documented
  • Loading branch information
deavmi committed Mar 18, 2024
1 parent 4424043 commit 48f0780
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions source/tlang/compiler/symbols/containers.d
Expand Up @@ -36,10 +36,33 @@ public Statement[] weightReorder(Statement[] statements)
// AND MCloneable
public interface Container : MStatementSearchable, MStatementReplaceable
{
/**
* Appends the given statement to
* this container's body
*
* Params:
* statement = the `Statement`
* to add
*/
public void addStatement(Statement statement);

/**
* Appends the list of statemnets
* (in order) to this container's
* body
*
* Params:
* statements = the `Statement[]`
* to add
*/
public void addStatements(Statement[] statements);

/**
* Returns the body of this
* container
*
* Returns: a `Statement[]`
*/
public Statement[] getStatements();
}

Expand Down

0 comments on commit 48f0780

Please sign in to comment.