void AcceptType(AbstractType t) { if (t == null) { return; } if (pretty) { var aliasTag = t.Tag as TypeResolution.TypeDeclarationResolver.AliasTag; if (aliasTag != null) { sb.Append(aliasTag.typeBase != null ? aliasTag.typeBase.ToString() : aliasTag.aliasDefinition.ToString(false, false)).Append('='); } } if (t.Modifier != 0) { sb.Append(DTokens.GetTokenString(t.Modifier)).Append('('); } t.Accept(this); if (t.Modifier != 0) { sb.Append(')'); } }
ITypeDeclaration AcceptType(AbstractType t) { if (t == null) { return(null); } var aliasTag = t.Tag as TypeDeclarationResolver.AliasTag; if (aliasTag != null) { return(new IdentifierDeclaration(aliasTag.aliasDefinition.NameHash)); } var td = t.Accept(this); if (t.Modifier != 0) { td = new MemberFunctionAttributeDecl(t.Modifier) { InnerType = td } } ; return(td ?? t.DeclarationOrExpressionBase as ITypeDeclaration); }
void AcceptType(AbstractType t) { if (t == null) return; if (pretty) { var aliasTag = t.Tag<TypeDeclarationResolver.AliasTag>(TypeDeclarationResolver.AliasTag.Id); if (aliasTag != null) sb.Append(aliasTag.typeBase != null ? aliasTag.typeBase.ToString() : aliasTag.aliasDefinition.ToString(false, false)).Append('='); } if (t.Modifier != 0) sb.Append(DTokens.GetTokenString(t.Modifier)).Append('('); t.Accept(this); if (t.Modifier != 0) sb.Append(')'); }
void AcceptType(AbstractType t) { if (t == null) return; if (t.Modifier != 0) sb.Append(DTokens.GetTokenString(t.Modifier)).Append('('); t.Accept(this); if (t.Modifier != 0) sb.Append(')'); }