Example #1
0
        public override string ToString(bool IncludesBase)
        {
            var sb = new StringBuilder();

            if (ModuleScopedIdentifier)
            {
                sb.Append('.');
            }

            if (IncludesBase && InnerDeclaration != null)
            {
                sb.Append(InnerDeclaration.ToString()).Append('.');
            }

            if (Identifier != null)
            {
                sb.Append(Identifier.ToString());
            }

            sb.Append('!');

            if (Arguments != null)
            {
                if (Arguments.Length > 1)
                {
                    sb.Append('(');
                    foreach (var e in Arguments)
                    {
                        if (e != null)
                        {
                            sb.Append(e.ToString()).Append(',');
                        }
                    }
                    if (sb[sb.Length - 1] == ',')
                    {
                        sb.Remove(sb.Length - 1, 1);
                    }
                    sb.Append(')');
                }
                else if (Arguments.Length == 1 && Arguments[0] != null)
                {
                    sb.Append(Arguments[0].ToString());
                }
            }

            return(sb.ToString());
        }
Example #2
0
 public override string ToString(bool IncludesBase)
 {
     return((IncludesBase && InnerDeclaration != null?(InnerDeclaration.ToString() + '.'):"") + DTokens.GetTokenString(Token));
 }
Example #3
0
 public override string ToString(bool IncludesBase)
 {
     return((IncludesBase && InnerDeclaration != null ? InnerDeclaration.ToString() : "") + "...");
 }
Example #4
0
 public override string ToString(bool IncludesBase)
 {
     return((ModuleScoped?".":"") + (IncludesBase && InnerDeclaration != null ? (InnerDeclaration.ToString() + ".") : "") + Id);
 }
Example #5
0
 public override string ToString(bool IncludesBase)
 {
     return((IncludesBase && InnerDeclaration != null ? (InnerDeclaration.ToString() + " ") : "") + "__vector(" + (Id != null ? Id.ToString() : "") + ")");
 }
Example #6
0
 public override string ToString(bool IncludesBase)
 {
     return((IncludesBase && InnerDeclaration != null ? (InnerDeclaration.ToString() + " ") : "") + "typeof(" + (Expression != null ? Expression.ToString() : "") + ")");
 }
Example #7
0
 public override string ToString(bool IncludesBase)
 {
     return((IncludesBase && InnerDeclaration != null ? (InnerDeclaration.ToString() + " ") : "") + DTokens.GetTokenString(Modifier) + "(" + (InnerType != null ? InnerType.ToString() : "") + ")");
 }
Example #8
0
 public override string ToString(bool IncludesBase)
 {
     return((IncludesBase && InnerDeclaration != null ? (InnerDeclaration.ToString() + ".") : "") + Convert.ToString(Value));
 }