Skip to content

Commit

Permalink
Move Dsymbol::toDocBuffer into a visitor class
Browse files Browse the repository at this point in the history
  • Loading branch information
yebblies committed Feb 21, 2014
1 parent f8e708e commit d7be1b2
Show file tree
Hide file tree
Showing 6 changed files with 308 additions and 303 deletions.
3 changes: 0 additions & 3 deletions src/aggregate.h
Expand Up @@ -118,7 +118,6 @@ class AggregateDeclaration : public ScopeDsymbol
void searchCtor();

void emitComment(Scope *sc);
void toDocBuffer(OutBuffer *buf, Scope *sc);

const char *mangle(bool isv = false);

Expand Down Expand Up @@ -180,7 +179,6 @@ class StructDeclaration : public AggregateDeclaration
void finalizeSize(Scope *sc);
bool fill(Loc loc, Expressions *elements, bool ctorinit);
bool isPOD();
void toDocBuffer(OutBuffer *buf, Scope *sc);

PROT getAccess(Dsymbol *smember); // determine access to smember

Expand Down Expand Up @@ -302,7 +300,6 @@ class ClassDeclaration : public AggregateDeclaration
virtual int vtblOffset();
const char *kind();
const char *mangle(bool isv = false);
void toDocBuffer(OutBuffer *buf, Scope *sc);

PROT getAccess(Dsymbol *smember); // determine access to smember

Expand Down
6 changes: 0 additions & 6 deletions src/declaration.h
Expand Up @@ -137,7 +137,6 @@ class Declaration : public Dsymbol
Dsymbol *search(Loc loc, Identifier *ident, int flags = IgnoreNone);

void emitComment(Scope *sc);
void toDocBuffer(OutBuffer *buf, Scope *sc);

const char *mangle(bool isv = false);
bool isStatic() { return (storage_class & STCstatic) != 0; }
Expand Down Expand Up @@ -209,8 +208,6 @@ class TypedefDeclaration : public Declaration
Type *htype;
Type *hbasetype;

void toDocBuffer(OutBuffer *buf, Scope *sc);

void toObjFile(int multiobj); // compile to .obj file
void toDebug();

Expand Down Expand Up @@ -243,8 +240,6 @@ class AliasDeclaration : public Declaration
Type *htype;
Dsymbol *haliassym;

void toDocBuffer(OutBuffer *buf, Scope *sc);

AliasDeclaration *isAliasDeclaration() { return this; }
void accept(Visitor *v) { v->visit(this); }
};
Expand Down Expand Up @@ -687,7 +682,6 @@ class FuncDeclaration : public Declaration
virtual bool addPreInvariant();
virtual bool addPostInvariant();
const char *kind();
void toDocBuffer(OutBuffer *buf, Scope *sc);
FuncDeclaration *isUnique();
void checkNestedReference(Scope *sc, Loc loc);
bool needsClosure();
Expand Down

0 comments on commit d7be1b2

Please sign in to comment.