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