/// <summary> /// Sets the Block edge. /// </summary> /// <param name="node">[in] The new end point of the Block edge.</param> /// <exception cref="Columbus.Csharp.Asg.CsharpException">Throws CsharpException if there's something wrong with the given node.</exception> public void setBlock(Columbus.Csharp.Asg.Nodes.Statement.BlockSyntax node) { if (m_Block != 0) { removeParentEdge(m_Block); } m_Block = node.Id; setParentEdge(m_Block, (uint)Types.EdgeKind.edkCatchClauseSyntax_Block); }
/// <summary> /// Sets the Body edge. /// </summary> /// <param name="node">[in] The new end point of the Body edge.</param> /// <exception cref="Columbus.Csharp.Asg.CsharpException">Throws CsharpException if there's something wrong with the given node.</exception> public void setBody(Columbus.Csharp.Asg.Nodes.Statement.BlockSyntax node) { if (m_Body != 0) { removeParentEdge(m_Body); } m_Body = node.Id; setParentEdge(m_Body, (uint)Types.EdgeKind.edkAccessorDeclarationSyntax_Body); }