示例#1
0
 /// <summary>
 /// Sets the friend edge.
 /// </summary>
 /// <param name="node">[in] The new end point of the friend edge.</param>
 /// <exception cref="Columbus.Lim.Asg.LimException">Throws LimException if there's something wrong with the given node.</exception>
 public void setFriend(Columbus.Lim.Asg.Nodes.Logical.Scope node)
 {
     if (Common.getIsBaseClassKind(node.NodeKind, Types.NodeKind.ndkMethod) || Common.getIsBaseClassKind(node.NodeKind, Types.NodeKind.ndkClass))
     {
         if (m_friend != 0)
         {
         }
         m_friend = node.Id;
     }
     else
     {
         throw new LimException("Columbus.Lim.Asg.Nodes.Logical.Friendship.setFriend(NodeId)", "Invalid NodeKind (" + node.NodeKind.ToString() + ").");
     }
 }
示例#2
0
 /// <summary>
 /// Abstract end visitor, which calls the end visitor of the base class (Columbus.Lim.Asg.Nodes.Logical.Member) of the Columbus.Lim.Asg.Nodes.Logical.Scope node.
 /// </summary>
 /// <param name="node">[in] The node which is visited.</param>
 public virtual void visitEnd(Columbus.Lim.Asg.Nodes.Logical.Scope node, bool callVirtualBase)
 {
     visitEnd((Columbus.Lim.Asg.Nodes.Logical.Member)node, false);
 }