Skip to content

Commit

Permalink
fix Issue 15404 (2) - Use TOKdot for DotExp
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Dec 4, 2015
1 parent c82fa39 commit f8b8f70
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions src/expression.d
Expand Up @@ -253,7 +253,7 @@ extern (C++) Expression resolvePropertiesX(Scope* sc, Expression e1, Expression
Dsymbol s;
Objects* tiargs;
Type tthis;
if (e1.op == TOKdotexp)
if (e1.op == TOKdot)
{
DotExp de = cast(DotExp)e1;
if (de.e2.op == TOKoverloadset)
Expand Down Expand Up @@ -474,7 +474,7 @@ extern (C++) Expression resolvePropertiesX(Scope* sc, Expression e1, Expression
}
}
}
else if (e1.op == TOKdotexp)
else if (e1.op == TOKdot)
{
e1.error("expression has no value");
return new ErrorExp();
Expand Down Expand Up @@ -546,7 +546,7 @@ extern (C++) Expression resolvePropertiesOnly(Scope* sc, Expression e1)
OverloadSet os;
FuncDeclaration fd;
TemplateDeclaration td;
if (e1.op == TOKdotexp)
if (e1.op == TOKdot)
{
DotExp de = cast(DotExp)e1;
if (de.e2.op == TOKoverloadset)
Expand Down Expand Up @@ -7913,7 +7913,7 @@ public:
// bypass checkPurity
return e1.type.dotExp(sc, e1, ident, 0);
}
if (e1.op == TOKdotexp)
if (e1.op == TOKdot)
{
}
else
Expand Down Expand Up @@ -7991,7 +7991,7 @@ public:
return e;
Expression eleft;
Expression eright;
if (e1.op == TOKdotexp)
if (e1.op == TOKdot)
{
DotExp de = cast(DotExp)e1;
eleft = de.e1;
Expand Down Expand Up @@ -8447,7 +8447,7 @@ public:
return true;
Expression e = new DotIdExp(loc, e1, ti.name);
e = e.semantic(sc);
if (e.op == TOKdotexp)
if (e.op == TOKdot)
e = (cast(DotExp)e).e2;
Dsymbol s = null;
switch (e.op)
Expand Down Expand Up @@ -8625,7 +8625,7 @@ public:
e = e.semantic(sc);
return e;
}
else if (e.op == TOKdotexp)
else if (e.op == TOKdot)
{
DotExp de = cast(DotExp)e;
e1 = de.e1; // pull semantic() result
Expand Down Expand Up @@ -9044,7 +9044,7 @@ public:
e1 = new VarExp(se.loc, se.var, 1);
e1 = e1.semantic(sc);
}
else if (e1.op == TOKdotexp)
else if (e1.op == TOKdot)
{
DotExp de = cast(DotExp)e1;
if (de.e2.op == TOKoverloadset)
Expand Down Expand Up @@ -10950,7 +10950,7 @@ extern (C++) final class DotExp : BinExp
public:
extern (D) this(Loc loc, Expression e1, Expression e2)
{
super(loc, TOKdotexp, __traits(classInstanceSize, DotExp), e1, e2);
super(loc, TOKdot, __traits(classInstanceSize, DotExp), e1, e2);
}

override Expression semantic(Scope* sc)
Expand Down
4 changes: 2 additions & 2 deletions src/mtype.d
Expand Up @@ -7830,7 +7830,7 @@ public:
sc2.pop();
return e;
}
if (e.op == TOKdotexp)
if (e.op == TOKdot)
{
DotExp de = cast(DotExp)e;
if (de.e1.op == TOKscope)
Expand Down Expand Up @@ -8540,7 +8540,7 @@ public:
{
printf("TypeClass::dotExp(e='%s', ident='%s')\n", e.toChars(), ident.toChars());
}
if (e.op == TOKdotexp)
if (e.op == TOKdot)
{
DotExp de = cast(DotExp)e;
if (de.e1.op == TOKscope)
Expand Down
2 changes: 1 addition & 1 deletion src/parse.d
Expand Up @@ -111,7 +111,7 @@ __gshared PREC[TOKMAX] precedence =
TOKdotti : PREC_primary,
TOKdotid : PREC_primary,
TOKdottd : PREC_primary,
TOKdotexp : PREC_primary,
TOKdot : PREC_primary,
TOKdottype : PREC_primary,
TOKplusplus : PREC_primary,
TOKminusminus : PREC_primary,
Expand Down

0 comments on commit f8b8f70

Please sign in to comment.