/// <summary>
 /// Sets the Expression edge.
 /// </summary>
 /// <param name="node">[in] The new end point of the Expression edge.</param>
 /// <exception cref="Columbus.Csharp.Asg.CsharpException">Throws CsharpException if there's something wrong with the given node.</exception>
 public void setExpression(Columbus.Csharp.Asg.Nodes.Expression.ExpressionSyntax node)
 {
     if (m_Expression != 0)
     {
         removeParentEdge(m_Expression);
     }
     m_Expression = node.Id;
     setParentEdge(m_Expression, (uint)Types.EdgeKind.edkMemberAccessExpressionSyntax_Expression);
 }
Esempio n. 2
0
 /// <summary>
 /// Sets the Value edge.
 /// </summary>
 /// <param name="node">[in] The new end point of the Value edge.</param>
 /// <exception cref="Columbus.Csharp.Asg.CsharpException">Throws CsharpException if there's something wrong with the given node.</exception>
 public void setValue(Columbus.Csharp.Asg.Nodes.Expression.ExpressionSyntax node)
 {
     if (m_Value != 0)
     {
         removeParentEdge(m_Value);
     }
     m_Value = node.Id;
     setParentEdge(m_Value, (uint)Types.EdgeKind.edkEqualsValueClauseSyntax_Value);
 }
Esempio n. 3
0
 /// <summary>
 /// Sets the Condition edge.
 /// </summary>
 /// <param name="node">[in] The new end point of the Condition edge.</param>
 /// <exception cref="Columbus.Csharp.Asg.CsharpException">Throws CsharpException if there's something wrong with the given node.</exception>
 public void setCondition(Columbus.Csharp.Asg.Nodes.Expression.ExpressionSyntax node)
 {
     if (m_Condition != 0)
     {
         removeParentEdge(m_Condition);
     }
     m_Condition = node.Id;
     setParentEdge(m_Condition, (uint)Types.EdgeKind.edkWhereClauseSyntax_Condition);
 }
 /// <summary>
 /// Sets the FilterExpression edge.
 /// </summary>
 /// <param name="node">[in] The new end point of the FilterExpression edge.</param>
 /// <exception cref="Columbus.Csharp.Asg.CsharpException">Throws CsharpException if there's something wrong with the given node.</exception>
 public void setFilterExpression(Columbus.Csharp.Asg.Nodes.Expression.ExpressionSyntax node)
 {
     if (m_FilterExpression != 0)
     {
         removeParentEdge(m_FilterExpression);
     }
     m_FilterExpression = node.Id;
     setParentEdge(m_FilterExpression, (uint)Types.EdgeKind.edkCatchFilterClauseSyntax_FilterExpression);
 }
Esempio n. 5
0
 /// <summary>
 /// Sets the RightExpression edge.
 /// </summary>
 /// <param name="node">[in] The new end point of the RightExpression edge.</param>
 /// <exception cref="Columbus.Csharp.Asg.CsharpException">Throws CsharpException if there's something wrong with the given node.</exception>
 public void setRightExpression(Columbus.Csharp.Asg.Nodes.Expression.ExpressionSyntax node)
 {
     if (m_RightExpression != 0)
     {
         removeParentEdge(m_RightExpression);
     }
     m_RightExpression = node.Id;
     setParentEdge(m_RightExpression, (uint)Types.EdgeKind.edkJoinClauseSyntax_RightExpression);
 }
Esempio n. 6
0
 /// <summary>
 /// Sets the Expression edge.
 /// </summary>
 /// <param name="node">[in] The new end point of the Expression edge.</param>
 /// <exception cref="Columbus.Csharp.Asg.CsharpException">Throws CsharpException if there's something wrong with the given node.</exception>
 public void setExpression(Columbus.Csharp.Asg.Nodes.Expression.ExpressionSyntax node)
 {
     if (m_Expression != 0)
     {
         removeParentEdge(m_Expression);
     }
     m_Expression = node.Id;
     setParentEdge(m_Expression, (uint)Types.EdgeKind.edkAnonymousObjectMemberDeclaratorSyntax_Expression);
 }
Esempio n. 7
0
 /// <summary>
 /// Sets the Operand edge.
 /// </summary>
 /// <param name="node">[in] The new end point of the Operand edge.</param>
 /// <exception cref="Columbus.Csharp.Asg.CsharpException">Throws CsharpException if there's something wrong with the given node.</exception>
 public void setOperand(Columbus.Csharp.Asg.Nodes.Expression.ExpressionSyntax node)
 {
     if (m_Operand != 0)
     {
         removeParentEdge(m_Operand);
     }
     m_Operand = node.Id;
     setParentEdge(m_Operand, (uint)Types.EdgeKind.edkPostfixUnaryExpressionSyntax_Operand);
 }
Esempio n. 8
0
 /// <summary>
 /// Sets the Right edge.
 /// </summary>
 /// <param name="node">[in] The new end point of the Right edge.</param>
 /// <exception cref="Columbus.Csharp.Asg.CsharpException">Throws CsharpException if there's something wrong with the given node.</exception>
 public void setRight(Columbus.Csharp.Asg.Nodes.Expression.ExpressionSyntax node)
 {
     if (m_Right != 0)
     {
         removeParentEdge(m_Right);
     }
     m_Right = node.Id;
     setParentEdge(m_Right, (uint)Types.EdgeKind.edkAssignmentExpressionSyntax_Right);
 }
 /// <summary>
 /// Sets the WhenNotNull edge.
 /// </summary>
 /// <param name="node">[in] The new end point of the WhenNotNull edge.</param>
 /// <exception cref="Columbus.Csharp.Asg.CsharpException">Throws CsharpException if there's something wrong with the given node.</exception>
 public void setWhenNotNull(Columbus.Csharp.Asg.Nodes.Expression.ExpressionSyntax node)
 {
     if (m_WhenNotNull != 0)
     {
         removeParentEdge(m_WhenNotNull);
     }
     m_WhenNotNull = node.Id;
     setParentEdge(m_WhenNotNull, (uint)Types.EdgeKind.edkConditionalAccessExpressionSyntax_WhenNotNull);
 }
 /// <summary>
 /// Sets the Left edge.
 /// </summary>
 /// <param name="node">[in] The new end point of the Left edge.</param>
 /// <exception cref="Columbus.Csharp.Asg.CsharpException">Throws CsharpException if there's something wrong with the given node.</exception>
 public void setLeft(Columbus.Csharp.Asg.Nodes.Expression.ExpressionSyntax node)
 {
     if (m_Left != 0)
     {
         removeParentEdge(m_Left);
     }
     m_Left = node.Id;
     setParentEdge(m_Left, (uint)Types.EdgeKind.edkBinaryExpressionSyntax_Left);
 }
 /// <summary>
 /// Sets the WhenTrue edge.
 /// </summary>
 /// <param name="node">[in] The new end point of the WhenTrue edge.</param>
 /// <exception cref="Columbus.Csharp.Asg.CsharpException">Throws CsharpException if there's something wrong with the given node.</exception>
 public void setWhenTrue(Columbus.Csharp.Asg.Nodes.Expression.ExpressionSyntax node)
 {
     if (m_WhenTrue != 0)
     {
         removeParentEdge(m_WhenTrue);
     }
     m_WhenTrue = node.Id;
     setParentEdge(m_WhenTrue, (uint)Types.EdgeKind.edkConditionalExpressionSyntax_WhenTrue);
 }
Esempio n. 12
0
        // ---------- Edge setter function(s) ----------

        /// <summary>
        /// Adds a new Expressions edge to the node and inserts it after the other ones.
        /// </summary>
        /// <param name="node">[in] The end point of the new Expressions edge.</param>
        /// <exception cref="Columbus.Csharp.Asg.CsharpException">Throws CsharpException if there is something wrong with the given node.</exception>
        public void addExpressions(Columbus.Csharp.Asg.Nodes.Expression.ExpressionSyntax node)
        {
            addExpressions(node.Id);
        }