コード例 #1
0
ファイル: Visitor.cs プロジェクト: fakoor/ERTMSFormalSpecs
 /// <summary>
 ///     Visits a LAST expression
 /// </summary>
 /// <param name="lastExpression"></param>
 protected virtual void VisitLastExpression(LastExpression lastExpression)
 {
     if (lastExpression != null)
     {
         VisitConditionBasedListExpression(lastExpression);
     }
 }
コード例 #2
0
        /// <summary>
        /// Gets the expression tree that was deserialized.
        /// </summary>
        /// <remarks>
        /// Used mainly for troubleshooting.
        /// </remarks>
        /// <returns>The expression tree.</returns>
        public string GetExpressionTree()
        {
            if (LastExpression == null)
            {
                return(string.Empty);
            }

            var result = LastExpression.AsEnumerable().ToString();

            LastExpression = null;
            return(result);
        }