}
@Override
public void emitLiteralContainer(ILiteralContainerNode node)
{
final ContainerNode cnode = node.getContentsNode();
final ContainerType type = cnode.getContainerType();
String postFix = "";
if (type == ContainerType.BRACES)
{
write(ASEmitterTokens.BLOCK_OPEN);
postFix = ASEmitterTokens.BLOCK_CLOSE.getToken();
}
else if (type == ContainerType.BRACKETS)
{
write(ASEmitterTokens.SQUARE_OPEN);
postFix = ASEmitterTokens.SQUARE_CLOSE.getToken();
}
else if (type == ContainerType.IMPLICIT)
{
// nothing to write, move along
}
else if (type == ContainerType.PARENTHESIS)
{
write(ASEmitterTokens.PAREN_OPEN);
postFix = ASEmitterTokens.PAREN_CLOSE.getToken();
}
final int len = cnode.getChildCount();
for (int i = 0; i < len; i++)
{
IASNode child = cnode.getChild(i);
getWalker().walk(child);
if (i < len - 1)
writeToken(ASEmitterTokens.COMMA);
}