public void addChild(IFXGNode child, Collection<ICompilerProblem> problems)
{
//Exception:Child node {0} is not supported by node {1}.
if (child == null)
{
problems.add(new FXGChildNodeNotSupportedProblem(getDocumentPath(), getStartLine(), getStartColumn(), getNodeName()));
}
else
{
problems.add(new FXGInvalidChildNodeProblem(getDocumentPath(), child.getStartLine(), child.getStartColumn(), child.getNodeName(), getNodeName()));
}