Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ subPackage {
sourceFiles \
"src/dmd/astbase.d" \
"src/dmd/parse.d" \
"src/dmd/transitivevisitor.d" \
"src/dmd/permissivevisitor.d" \
"src/dmd/strictvisitor.d"
"src/dmd/visitor/parse_time.d" \
"src/dmd/visitor/permissive.d" \
"src/dmd/visitor/semantic.d" \
"src/dmd/visitor/stoppable.d" \
"src/dmd/visitor/strict.d" \
"src/dmd/visitor/transitive.d"

dependency "dmd:lexer" version="*"
}
Expand Down
4 changes: 2 additions & 2 deletions src/dmd/aggregate.d
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import dmd.mtype;
import dmd.semantic2;
import dmd.semantic3;
import dmd.tokens;
import dmd.visitor;
import dmd.visitor.semantic;

enum Sizeok : int
{
Expand Down Expand Up @@ -737,7 +737,7 @@ extern (C++) abstract class AggregateDeclaration : ScopeDsymbol
return this;
}

override void accept(Visitor v)
override void accept(SemanticVisitor v)
{
v.visit(this);
}
Expand Down
10 changes: 5 additions & 5 deletions src/dmd/aggregate.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class AggregateDeclaration : public ScopeDsymbol
Symbol *sinit;

AggregateDeclaration *isAggregateDeclaration() { return this; }
void accept(Visitor *v) { v->visit(this); }
void accept(SemanticVisitor *v) { v->visit(this); }
};

struct StructFlags
Expand Down Expand Up @@ -195,7 +195,7 @@ class StructDeclaration : public AggregateDeclaration
bool isPOD();

StructDeclaration *isStructDeclaration() { return this; }
void accept(Visitor *v) { v->visit(this); }
void accept(SemanticVisitor *v) { v->visit(this); }
};

class UnionDeclaration : public StructDeclaration
Expand All @@ -205,7 +205,7 @@ class UnionDeclaration : public StructDeclaration
const char *kind() const;

UnionDeclaration *isUnionDeclaration() { return this; }
void accept(Visitor *v) { v->visit(this); }
void accept(SemanticVisitor *v) { v->visit(this); }
};

struct BaseClass
Expand Down Expand Up @@ -321,7 +321,7 @@ class ClassDeclaration : public AggregateDeclaration
Symbol *vtblsym;

ClassDeclaration *isClassDeclaration() { return (ClassDeclaration *)this; }
void accept(Visitor *v) { v->visit(this); }
void accept(SemanticVisitor *v) { v->visit(this); }
};

class InterfaceDeclaration : public ClassDeclaration
Expand All @@ -337,7 +337,7 @@ class InterfaceDeclaration : public ClassDeclaration
bool isCOMinterface() const;

InterfaceDeclaration *isInterfaceDeclaration() { return this; }
void accept(Visitor *v) { v->visit(this); }
void accept(SemanticVisitor *v) { v->visit(this); }
};

#endif /* DMD_AGGREGATE_H */
4 changes: 2 additions & 2 deletions src/dmd/aliasthis.d
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import dmd.identifier;
import dmd.mtype;
import dmd.opover;
import dmd.tokens;
import dmd.visitor;
import dmd.visitor.semantic;

/***********************************************************
* alias ident this;
Expand Down Expand Up @@ -55,7 +55,7 @@ extern (C++) final class AliasThis : Dsymbol
return this;
}

override void accept(Visitor v)
override void accept(SemanticVisitor v)
{
v.visit(this);
}
Expand Down
2 changes: 1 addition & 1 deletion src/dmd/aliasthis.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AliasThis : public Dsymbol
Dsymbol *syntaxCopy(Dsymbol *);
const char *kind() const;
AliasThis *isAliasThis() { return this; }
void accept(Visitor *v) { v->visit(this); }
void accept(SemanticVisitor *v) { v->visit(this); }
};

#endif
2 changes: 1 addition & 1 deletion src/dmd/apply.d
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module dmd.apply;
import dmd.arraytypes;
import dmd.dtemplate;
import dmd.expression;
import dmd.visitor;
import dmd.visitor.stoppable;

/**************************************
* An Expression tree walker that will visit each Expression e in the tree,
Expand Down
6 changes: 3 additions & 3 deletions src/dmd/argtypes.d
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import core.checkedint;
import dmd.declaration;
import dmd.globals;
import dmd.mtype;
import dmd.visitor;
import dmd.visitor.semantic;

/****************************************************
* This breaks a type down into 'simpler' types that can be passed to a function
Expand All @@ -35,9 +35,9 @@ import dmd.visitor;
*/
TypeTuple toArgTypes(Type t)
{
extern (C++) final class ToArgTypes : Visitor
extern (C++) final class ToArgTypes : SemanticVisitor
{
alias visit = Visitor.visit;
alias visit = SemanticVisitor.visit;
public:
TypeTuple result;

Expand Down
6 changes: 3 additions & 3 deletions src/dmd/arrayop.d
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import dmd.mtype;
import dmd.root.outbuffer;
import dmd.statement;
import dmd.tokens;
import dmd.visitor;
import dmd.visitor.semantic;

/**********************************************
* Check that there are no uses of arrays without [].
Expand Down Expand Up @@ -175,9 +175,9 @@ extern (C++) Expression arrayOp(BinAssignExp e, Scope* sc)
*/
private void buildArrayOp(Scope* sc, Expression e, Objects* tiargs, Expressions* args)
{
extern (C++) final class BuildArrayOpVisitor : Visitor
extern (C++) final class BuildArrayOpVisitor : SemanticVisitor
{
alias visit = Visitor.visit;
alias visit = SemanticVisitor.visit;
Scope* sc;
Objects* tiargs;
Expressions* args;
Expand Down
Loading