Inference/src/TypeSystem/UnionType.cs
/// <summary>
/// Returns the type expression like a string
/// </summary>
/// <returns>string with the type expression associated.</returns>
Returns the type expression like a string
Returns the type expression like a string
public override string BuildTypeExpressionString(int depthLevel) {
            if (this.ValidTypeExpression) return this.typeExpression;
            if (depthLevel <= 0) return this.FullName;
            StringBuilder aux = new StringBuilder();
            aux.Append("\\/(");
            for (int i = 0; i < this.typeSet.Count; i++) {
                aux.AppendFormat("{0}", this.typeSet[i].BuildTypeExpressionString(depthLevel - 1));
                if (i < this.typeSet.Count - 1)
                    aux.AppendFormat(" ,");
            }
            aux.Append(")");
            this.typeExpression = aux.ToString();
            this.ValidTypeExpression = true;
            return this.typeExpression;
        }
public override string BuildTypeExpressionString ( int depthLevel ) { if ( this . ValidTypeExpression ) return this . typeExpression ; if ( depthLevel <= 0 ) return this . FullName ; StringBuilder aux = new StringBuilder ( ) ; aux . Append ( " \\ " ) ; for ( int i = 0 ; i < this . typeSet . Count ; i ++ ) { aux . AppendFormat ( " " , this . typeSet [ i ] . BuildTypeExpressionString ( depthLevel - 1 ) ) ; if ( i < this . typeSet . Count - 1 ) aux . AppendFormat ( " " ) ; } aux . Append ( " " ) ; this . typeExpression = aux . ToString ( ) ; this . ValidTypeExpression = true ; return this . typeExpression ; }
Returns the type expression like a string
Returns the type expression like a string
string with the type expression associated.
string with the type expression associated .
depthLevel
int